iOS app Azure pipeline fails on “Clear and archive” step.
The venture makes use of SPM solely. (There isn’t any Cocoapods).
The errors:
##[error]Bash exited with code ’65’.
Probably causes are:
…nanopb/Bundle.swift: error: nanopb_nanopb doesn’t help provisioning profiles. nanopb_nanopb doesn’t help provisioning profiles, however provisioning profile AppProvisioningProfile has been manually specified. Set the provisioning profile worth to “Automated” within the construct settings editor. (in goal ‘nanopb_nanopb’ from venture ‘nanopb’)
…firebase-ios-sdk/Bundle.swift: error: Firebase_FirebaseCoreExtension doesn’t help provisioning profiles. Firebase_FirebaseCoreExtension doesn’t help provisioning profiles, however provisioning profile AppProvisioningProfile has been manually specified. Set the provisioning profile worth to “Automated” within the construct settings editor. (in goal ‘Firebase_FirebaseCoreExtension’ from venture ‘Firebase’)
And many comparable.
The query is tips on how to signal the app goal with out signing SPM packages utilizing command line “xcodebuild” with guide signing? Perhaps there’s some one other strategy to remedy the pipeline.
set off: none
pool:
vmImage: 'macOS-latest'
steps:
- job: PowerShell@2
displayName: Choose Xcode Model
inputs:
targetType: 'inline'
script: |
echo Mac OS model:
sw_vers -productVersion
echo Put in Xcode variations:
ls /Functions | grep 'Xcode'
echo presently chosen xcode:
xcrun xcode-select --print-path
echo deciding on Xcode 16.2 ...
sudo xcode-select -s /Functions/Xcode_16.2.app
xcrun xcode-select --print-path
xcodebuild -version
- job: CmdLine@2
displayName: "Take away Derived Information"
inputs:
script: |
rm -rf ~/Library/Developer/Xcode/DerivedData/*
- job: InstallAppleCertificate@2
displayName: "Set up Apple Certificates"
inputs:
certSecureFile: 'AppCertificate.p12'
certPwd: '$(APPCERTIFICATEPASSWORD)'
keychain: 'temp'
deleteCert: true
- job: InstallAppleProvisioningProfile@1
displayName: "Set up Apple Provisioning Profile"
inputs:
provisioningProfileLocation: 'secureFiles'
provProfileSecureFile: 'AppProvisioningProfile.mobileprovision'
- job: CmdLine@2
displayName: "Clear and archive"
inputs:
script: |
xcodebuild -project App.xcodeproj -scheme AppScheme -sdk iphoneos -destination generic/platform=iOS -configuration Launch clear archive -archivePath "construct/App.xcarchive" CODE_SIGN_STYLE="Handbook" CODE_SIGN_IDENTITY="$(APPLE_CERTIFICATE_SIGNING_IDENTITY)" PROVISIONING_PROFILE="$(APPLE_PROV_PROFILE_UUID)" PROVISIONING_PROFILE_SPECIFIER=
- job: DownloadSecureFile@1
displayName: "Obtain ExportOptions.plist"
inputs:
secureFile: ExportOptions.plist
- job: CmdLine@2
displayName: "Export ipa file"
inputs:
script: |
xcodebuild -exportArchive -archivePath "construct/App.xcarchive" -exportOptionsPlist $(Agent.TempDirectory)/ExportOptions.plist -exportPath "construct/"
if [ $? -ne 0 ]; then
echo "Export ipa file failed";
exit 1;
fi
- job: CmdLine@2
displayName: "Add ipa file to Check Flight"
inputs:
script: |
xcrun altool --upload-app -f "construct/App.ipa" -t iOS -u "$(DeveloperAppleId)" -p "$(DeveloperAppleIdAppPassword)"
if [ $? -ne 0 ]; then
echo "Add ipa file failed";
exit 1;
fi