将 Azure 构建 CI 管道从 Xcode 12 升级到 14.2 后,构建开始失败,并出现以下错误:
[email protected]: error: Signing for "AppCenter_AppCenterDistribute" requires a development team. Select a development team in the Signing & Capabilities editor. (in target 'AppCenter_AppCenterDistribute' from project 'AppCenter')
这是触发构建的命令:
xcodebuild -sdk iphoneos -configuration Release -workspace <project_name.xcworkspace> -scheme <target_name> build
DSTROOT=<path/build.ds>
OBJROOT=<path/build.obj>
SYMROOT<path/build.sy> SHARED_PRECOMPS_DIR=<path/build.pch> -allowProvisioningUpdates -clonedSourcePackagesDirPath /Users/runner/work/1/s/temp "CODE_SIGN_IDENTITY=<identity_name>
AppCenter是通过SPM添加的依赖项,在项目中没有自己的目标。目标在本地构建和存档正常,只是在管道中失败并出现上述错误。我已经仔细检查了管道中的所有签名参数(分发、团队、配置)是否正确,并且在 Xcode 的目标中设置是否正确。有什么想法可能是什么原因或如何解决吗?即使可以跳过签名也没关系,因为该应用程序未在 App Store 上分发。