我在 azure devops 中配置了一个管道,将应用程序上传到 testflight,但是当我更新到 xcode 14 时,我的管道针对具有资源的 SPM 返回了以下错误:
note: Building targets in dependency order
/Users/runner/Library/Developer/Xcode/DerivedData/DesignSystem-ghbaswrmnadtfsdcsbiiyhnaybhc/SourcePackages/checkouts/firebase-ios-sdk/Package.swift: error: Firebase_FirebaseInAppMessaging_iOS does not support provisioning profiles. Firebase_FirebaseInAppMessaging_iOS does not support provisioning profiles, but provisioning profile Design System has been manually specified. Set the provisioning profile value to "Automatic" in the build settings editor. (in target 'Firebase_FirebaseInAppMessaging_iOS' from project 'Firebase')
** BUILD FAILED **
##[error]Error: The process '/usr/bin/xcodebuild' failed with exit code 65
任何具有资源的 SPM 都会给我这个错误,到目前为止我的任务是:
- task: InstallAppleCertificate@2
displayName: 'Install .p12 certificate'
inputs:
certSecureFile: $(project.p12)
certPwd: $(project.p12.password)
keychain: 'temp'
- task: InstallAppleProvisioningProfile@1
displayName: 'Install .mobileprovision certificate'
inputs:
provisioningProfileLocation: 'secureFiles'
provProfileSecureFile: Design_System.mobileprovision
- task: Xcode@5
displayName: 'Xcode Build'
inputs:
actions: 'clean build'
sdk: $(project.sdk)
scheme: '$(schemeName)'
configuration: $(project.configuration.release)
xcWorkspacePath: $(project.workspace)
xcodeVersion: 'specifyPath'
xcodeDeveloperDir: '/Applications/Xcode_14.3.1.app/'
archivePath: '$(system.defaultworkingdirectory)'
exportPath: 'output/$(project.sdk)/$(project.configuration.release)'
exportMethod: 'app-store'
signingOption: 'manual'
useXcpretty: false
packageApp: true
signingIdentity: '$(APPLE_CERTIFICATE_SIGNING_IDENTITY)'
provisioningProfileUuid: '$(APPLE_PROV_PROFILE_UUID)'
args: '-verbose'
我已经尝试在这个任务中提出一些论点,但没有结果。我已经尝试过以下参数:
CODE_SIGN_IDENTITY
,DEVELOPMENT_TEAM
,-UseModernBuildSystem=0
,-allowProvisioningUpdates
,TEAM_ID
,-resolvePackageDependencies
,-forceResolvedPackageVersions
,CODE_SIGNING_REQUIRED=Yes
,CODE_SIGNING_ALLOWED=No
,某些参数甚至禁用我需要上传到 testflight 的代码签名。
我该如何解决或解决这个问题?
有运气发现吗?我可能需要解决方案