最近几天我一直在尝试构建一个Azure Pipeline,用于构建iOS项目并将其部署到Test-flight。我已经成功地构建和生成了.ipa
文件,但是在执行AppStoreRelease@1任务时,我持续遇到以下错误:
ERROR ITMS-90174: “Missing Provisioning Profile - Apps must contain a provisioning profile in a file named embedded.mobileprovision.”
我过去几天查了多个类似的问题,但是没有一个答案能够解决这个问题。到目前为止,我已经尝试了 --buildFlag="-UseModernBuildSystem=0"
。以下是我的.yml
文件。此时,我几乎已经放弃了,所以任何帮助都将是巨大的帮助。
steps:
- task: InstallAppleCertificate@2
inputs:
certSecureFile: '$(certSecureFile)'
certPwd: '$(password)'
- task: InstallAppleProvisioningProfile@1
inputs:
provisioningProfileLocation: 'sourceRepository'
provProfileSourceRepository: 'sourcefile.mobileprovision'
- task: Xcode@5
inputs:
actions: 'build'
scheme: 'Scheme'
sdk: 'iphoneos'
packageApp: true
exportOptions: 'plist'
exportOptionsPlist: 'ExportOptions.plist'
signingOption: 'manual'
signingIdentity: '$(APPLE_CERTIFICATE_SIGNING_IDENTITY)'
provisioningProfileUuid: '$(APPLE_PROV_PROFILE_UUID)'
exportPath: "$(system.DefaultWorkingDirectory)"
args: 'CODE_SIGNING_ALLOWED=No -UseModernBuildSystem=0'
configuration: 'Release'
teamId: 'TeamId'
exportTeamId: 'TeamId'
xcWorkspacePath: '**/*.xcworkspace'
xcodeVersion: 'default' # Options: 8, 9, 10, default, specifyPath
- task: CopyFiles@2
inputs:
contents: '**/*.ipa'
targetFolder: '$(build.artifactStagingDirectory)'
- task: PublishBuildArtifacts@1
- task: AppStoreRelease@1
inputs:
authType: 'UserAndPass'
username: '$(user)'
password: '$(pass)'
appIdentifier: 'App Identifier'
appType: 'iOS'
ipaPath: '$(build.artifactStagingDirectory)/**/*.ipa'
releaseTrack: 'TestFlight'
teamId: 'Team ID'
teamName: 'Team Name'
fastlaneArguments: 'action increment_build_number'