【发布时间】:2020-10-23 00:13:08
【问题描述】:
我正在尝试为 iOS 构建使用自动配置。在我的 Mac 上它可以正常工作,但是当我尝试在 Azure 管道上执行此操作时,我收到以下错误
error: There are no accounts registered with Xcode. Add your developer account to Xcode (in target 'XXX' from project 'XXXX')
error: No profiles for 'com.devhaus.ljdev' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'com.XXXX'. (in target 'XXXX' from project 'XXXX')
在我的 yaml 中,我只有成功运行的 InstallAppleCertificate 任务
- task: InstallAppleCertificate@2
inputs:
certSecureFile: $(p12File)
certPwd: $(p12Password)
- script: |
npx run ionic build
displayName: "build"
- script: |
npx ionic cordova platform add ios@6
displayName: "build for Apple"
# Didn't just do npx ionic cordova build ios here as there
# is a bug that will cause the build to hang.
- script: |
npx cordova build ios --device
displayName: "build for IOS"
【问题讨论】:
标签: ios cordova ionic-framework azure-pipelines