实施 Flavors 后,我的 iOS 构建在 CodeMagic 上失败。这是我在 xcodebuild.log 中看到的主要错误
Runner has conflicting provisioning settings. Runner is automatically signed for development, but a conflicting code signing identity iPhone Distribution has been manually specified. Set the code signing identity value to "iPhone Developer" in the build settings editor, or switch to manual signing in the project editor.
正如许多stackoverflow问题导致的那样,我确实将代码签名身份更改为iOS开发人员,但没有帮助。
CodeMagic 中失败的构建工件的 XCodebuild.log 中的第一行有Runner
scheme 而不是我的自定义 scheme uat
。
来自 XCodebuild.log - /Applications/Xcode-10.3.app/Contents/Developer/usr/bin/xcodebuild -workspace /Users/builder/clone/ios/Runner.xcworkspace -scheme Runner -archivePath /Users/builder/build.xcarchive -config Release archive DEVELOPMENT_TEAM=xxxxx CODE_SIGN_IDENTITY='iPhone Distribution'