我实际上是AzureDevOps的新手,已经两天了,我似乎找不到在AzureDevOps上构建应用程序的解决方案。
这是我到目前为止所做的:
遵循本指南Install Apple Certificate的[p12认证上载并应用于管道中]
在管道Install Apple Provisioning Certificate中上载并应用的供应证书
现在,当我尝试使用Fastlane构建我的iOS应用程序时:
cd ios
捆绑安装
fastlane beta
setup_ci(force = true)
gym(scheme:'app',workspace:'./ios/workspace',verbose:true)
] >>我正在寻找一种将Azure DevOps的p12和预配配置文件证书用于我的健身房版本的方法。看了很多之后,我发现setup_ci会自动为我执行此操作。
这是我的Fastlane文件
platform :ios do lane :beta do setup_ci(force=true) gym( scheme: 'AlfaCarpeting', workspace: './ios/AlfaCarpeting', verbose: true ) end end
这是我的Azure管道yml文件:
# Node.js with React # Build a Node.js project that uses React. # Add steps that analyze code, save build artifacts, deploy, and more: # https://docs.microsoft.com/azure/devops/pipelines/languages/javascript trigger: - master pool: vmImage: 'macOS-10.15' variables: - group: React Native Variables steps: - task: InstallAppleCertificate@2 inputs: certSecureFile: Certificates.p12 certPwd: $(P12Password) keychain: 'temp' deleteCert: true displayName: Install Apple Certificate - task: InstallAppleProvisioningProfile@1 inputs: provisioningProfileLocation: 'secureFiles' provProfileSecureFile: 'alfaCarpetingBeta.mobileprovision' displayName: 'Install Apple Provisioning Profile' - task: NodeTool@0 inputs: versionSpec: '10.x' displayName: 'Install Node.js' - script: | cd ios bundle install fastlane ios beta displayName: 'Build iOS'
AzureDevops的日志
[05:38:20]: $ set -o pipefail && xcodebuild -workspace ./AlfaCarpeting.xcworkspace -scheme AlfaCarpeting -destination 'generic/platform=iOS' -archivePath /Users/runner/Library/Developer/Xcode/Archives/2020-03-21/AlfaCarpeting\ 2020-03-21\ 05.38.20.xcarchive archive | tee /Users/runner/Library/Logs/gym/AlfaCarpeting-AlfaCarpeting.log | xcpretty
[05:38:22]: ▸ ❌ error: /Users/runner/runners/2.165.2/work/1/s/ios/Pods/Target Support Files/Pods-AlfaCarpeting/Pods-AlfaCarpeting.release.xcconfig: unable to open file (in target "AlfaCarpeting" in project "AlfaCarpeting") (in target 'AlfaCarpeting' from project 'AlfaCarpeting')
[05:38:22]: ▸ ❌ error: /Users/runner/runners/2.165.2/work/1/s/ios/Pods/Target Support Files/Pods-AlfaCarpeting/Pods-AlfaCarpeting.release.xcconfig: unable to open file (in target "AlfaCarpeting" in project "AlfaCarpeting") (in target 'AlfaCarpeting' from project 'AlfaCarpeting')
[05:38:22]: ▸ ❌ error: /Users/runner/runners/2.165.2/work/1/s/ios/Pods/Target Support Files/Pods-AlfaCarpeting/Pods-AlfaCarpeting.release.xcconfig: unable to open file (in target "AlfaCarpeting" in project "AlfaCarpeting") (in target 'AlfaCarpeting' from project 'AlfaCarpeting')
[05:38:22]: ▸ ❌ error: No profiles for 'com.AlfaCarpeting' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'com.AlfaCarpeting'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild. (in target 'AlfaCarpeting' from project 'AlfaCarpeting')
[05:38:22]: ▸ ** ARCHIVE FAILED **
我实际上是AzureDevOps的新手,已经两天了,我似乎找不到在AzureDevOps上构建我的应用程序的解决方案。到目前为止,这是我所做的事情:已将p12证书上传并应用于...
如果您使用xcode打开项目并转到Build Settings