xcode安装与使用(坑点)
1.app store安装xcode、react native debugger
2.使用xcode打开.xcodeproj格式文件
2.1安装依赖时提示连接不上https://registry.nlark.com/
解决:在package-lock中替换成https://registry.npmmirror.com
2.2缺少文件libarclite
Showing Recent Issues SDK does not contain 'libarclite' at the path '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphonesimulator.a'; try increasing the minimum deployment target
解决:下载:https://github.com/kamyarelyasi/Libarclite-Files中的libarclite_iphonesimulator.a;
将下载下来的文件粘贴到/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc下
2.3Error: `fsevents` unavailable (this watcher can only be used on Darwin)
解决:安装wtach man;brew install watchman
2.4未找到boost/config/user.hpp文件
解决:是npm i时候安装文件丢失,重新安装,安装完成即可解决
2.5给xcode、react native debugger读写磁盘权限、打开文件夹的权限
3.需要build项目后才能xcode启动
4.需要设置所有模式

5.选择rosetta模式

6.react native debugger使用,直接打开即可;cmd+d调出菜单open debugger即可

浙公网安备 33010602011771号