我是新手的反应本机和Xcode。
当我npm安装react-native-svg时,我会得到以下内容:
开始下载performanceBeier到/Users/username/AwesomeProject/node_modules/react-native-svg/ios/PerformanceBezier
从GitHub下载PerformanceBezier Library失败了:{错误:Enotempty:目录不为空,命名/users/username/useName/aveverproject/node_modules/react-native-svg/1511988242148-420716547165471078973078973/users/user/user/user/userame/userame/userame/AwesomeProject/node_modules/react-native-svg/ios/performanceBeier' errno:-66, 代码:" Enotempty", Syscall:"重命名", 路径:'/users/userame/aveakeproject/node_modules/react-native-svg/1511988242148-4207165471078973/performanceBezier-Master' dest:'/users/userame/aveakeproject/node_modules/react-native-svg/ios/performancebeier'}下载PerformanceBeier图书馆成功!
开始下载QuartzbookPack到/Users/username/AwesomeProject/node_modules/react-native-svg/ios/QuartzBookPack
从GitHub下载Quartzbookpack库,因为错误:{错误:Enotempty:目录不为空,命名'/users/userName/useName/aveveproject/node_modules/react-native-svg/1511988243034-90505050505050505063333810649857/quartzbookpack-master/users/users/>/AwesomeProject/node_modules/react-native-svg/ios/quartzbookpack' errno:-66, 代码:" Enotempty", Syscall:"重命名", 路径:'/user/userame/aveakeProject/node_modules/react-native-svg/1511988243034-9050633810649857/QUARTZBOODPACK-MASTER' dest:'/users/userame/avesomeproject/node_modules/react-native-svg/ios/quartzbookpack'}下载QuartzbookPack库成功! react-native-svg@6.0.1-rc.0
显然这是一个问题,但后来说它们都成功地安装了。当我尝试构建Xcode项目时,我会收到一个错误,说Xcode无法打开他们的.xcodeproject文件。
这是我最后出现的问题,还是存储库中这些文件的问题是一个问题?
i具有反应式CLI:2.0.1和反应:0.50.4。并正在尝试安装react-native-svg@6.0.1-rc.0。
在这里报告了这样的报告:https://github.com/react-native-community/react-native-native-svg/issues/530
解决方法是运行以下操作:
$ cd node_modules/react-native-svg/
$ rm -rf ios/PerformanceBezier/ ios/QuartzBookPack/
$ npm run postinstall