在Appcenter和本地计算机上运行时,Xcode构建成功,但是在Azure Devops中,它失败并显示以下错误:
2018-12-04T13:52:16.3073570Z ▸ Building Pods/yoga [Release]
2018-12-04T13:52:16.3074360Z ▸ Check Dependencies
2018-12-04T13:52:16.3240800Z ▸ Compiling Utils.cpp
2018-12-04T13:52:16.5059270Z ▸ Compiling YGConfig.cpp
2018-12-04T13:52:16.5102080Z ▸ Compiling YGEnums.cpp
2018-12-04T13:52:16.5118980Z ▸ Compiling YGFloatOptional.cpp
2018-12-04T13:52:16.6545200Z ** BUILD FAILED **
2018-12-04T13:52:16.6555360Z
2018-12-04T13:52:16.6572620Z
2018-12-04T13:52:16.6573340Z The following build commands failed:
2018-12-04T13:52:16.6575530Z CompileC /Users/vsts/Library/Developer/Xcode/DerivedData/blifrisk-gvluwxrlajuavqdihtlqxntditwq/Build/Intermediates.noindex/Pods.build/Release-iphoneos/yoga.build/Objects-normal/armv7/YGEnums.o /Users/vsts/agent/2.142.1/work/1/s/node_modules/react-native/ReactCommon/yoga/yoga/YGEnums.cpp normal armv7 c++ com.apple.compilers.llvm.clang.1_0.compiler
2018-12-04T13:52:16.6576600Z (1 failure)
该应用程序是本地响应的,并在本地和Azure Devops上使用XCode 9.4.1构建。
YML代码段是:
- task: CocoaPods@0
displayName: 'pod install using the CocoaPods task with defaults'
inputs:
workingDirectory: './ios'
forceRepoUpdate: true
- task: Xcode@5
inputs:
sdk: 'iphoneos'
scheme: 'blifrisk'
configuration: 'Release'
xcodeVersion: 'default' # Options: default, 10, 9, 8, specifyPath
exportPath: '$(agent.buildDirectory)/output/$(sdk)/$(configuration)'
xcWorkspacePath: './iOS/blifrisk.xcworkspace'
signingOption: 'manual'
signingIdentity: $(APPLE_CERTIFICATE_SIGNING_IDENTITY)
provisioningProfileUuid: $(APPLE_PROV_PROFILE_UUID)
packageApp: false
我尝试将React和react-native更新为最新版本。 Yoga Pod仅以Pod文件形式出现,因此不确定下一步该怎么做。