我有一个由Fastlane通过Gitlab构建的React Native应用程序,出现以下错误:
........ node_modules / react-native / ReactCommon / yoga / yoga / YGEnums.h:10:10:双引号包括框架标头中的“ YGMacros.h”,用尖括号括起来[-恐怖,加引号包含在框架标题中] #include“ YGMacros.h”
找到了这篇文章: https://developer.apple.com/forums/thread/651941
.gitlab-ci.yml具有以下脚本来构建IOS应用。
script:
- rm -rf node_modules
- nvm use
- npm install
- cd ios
- rm -rf ~/Library/Developer/Xcode/DerivedData/*
- rm -rf ~/Library/Caches/CocoaPods/
- sudo gem install bundler:1.17.2
- sudo bundle update
- sudo gem install cocoapods --pre
- bundle exec fastlane beta
cocoapods安装似乎获得正确的版本:
$ sudo gem install cocoapods --pre
Successfully installed cocoapods-1.10.0.rc.1
Parsing documentation for cocoapods-1.10.0.rc.1
我仍然遇到双引号错误
答案 0 :(得分:1)
通过将其放在ios文件夹中的Gemfile中修复: 宝石'cocoapods','1.10.0.rc.1'
感谢@PaulBeusterien的提示。
答案 1 :(得分:0)