react-native项目移到mac上

来源:互联网 发布:java报错 编辑:程序博客网 时间:2024/06/10 15:37

Windows上开发的Android项目,准备搞IOS版本,需要移植到mac上,记录一下错误,

1、编译不过

chmod 755 /Users/xiongge/my-app/demo/node_modules/react-native/packager/launchPackager.command

2、编译不过

chmod 755 /Users/xiongge/my-app/demo/node_modules/react-native/packager/react-native-xcode.sh

3、运行报错


chmod 755 /Users/xiongge/my-app/demo/node_modules/react-native/local-cli/setup_env.sh

4、相机和相册需要单独设置

右键添加RCTCameraRoll.xcodeproj这个Libraries,添加的位置在:node_modules\react-native\Libraries\CameraRoll文件下


添加Linked


Info.plist配置: