执行 react-native init AwesomeProject
的时候,
建立完的项目里边只有package.json
和yarn-error.log
。react
提示npm仓库里找不到文件,
后来发如今执行react-native init AwesomeProject
后启动了yarn add
,
好像意识到是yarn的问题了,运行:ios
yarn config set registry https://registry.npm.taobao.org --global yarn config set disturl https://npm.taobao.org/dist --global
个人解决办法:git
react-native link react-native-vector-icons
;react-native start --reset-cache
;react-native run-ios
从新启动;个人解决办法:github
npm start
;react-native run-ios
;解决办法:npm
Signing for "sMobile" requires a development team. Select a development team in the project editor.json
Code signing is required for product type 'Application' in SDK 'iOS 11.2'
解决:
一、首先确保你在xcode已登录你的apple帐号;react-native
二、点击你已经导入的项目主文件夹xcode
三、这一项与你的手机系统保持一致app
四、点击运行按钮!fetch
若是提示Build Success,而且链接手机后提示:Development cannot be enabled while your device is locked.
解决:
一、去手机:设置 --> 通用 --> 还原 --> 还原位置和隐私
二、拔掉数据线、退出Xcode,在从新打开xcode,在插入数据线提示是否信任的时候点击信任!
ok~
fsevents
unavailable (this watcher can only be used on Darwin)解决办法:https://github.com/expo/expo/...
参考@Meekohi的解决办法。
缘由是watchman版本过旧或者错误,从新安装了watchman再试一下就能够了。
npm r -g watchman brew install watchman