[ad_1]
I’m fairly new on deploying CICD. Presently that is my .yml file:
title: Launch IOS
on:
push:
branches:
- github-action
jobs:
construct:
title: Construct IPA and add to TestFlight
runs-on: macos-latest
steps:
- title: Checkout
makes use of: actions/checkout@v2
- title: Choose Xcode Model
makes use of: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- title: Setup SSH
makes use of: webfactory/ssh-agent@v0.5.4
with:
ssh-private-key: ${{ secrets and techniques.SSH_PRIVATE_KEY }}
- title: Setup ruby
makes use of: ruby/setup-ruby@v1
with:
ruby-version: 2.7.2
bundler-cache: true
- title: Setup Node.js
makes use of: actions/setup-node@v1
with:
node-version: 14.17.0
- title: Set up Cordova, Ionic, and cordova-res
run: npm set up -g cordova@10.0.0 @ionic/cli cordova-res
- title: Set up app dependencies
run: npm set up
- title: npx gulp
run: npx gulp
- title: cordova assets
run: ionic cordova assets
- title: Take away Ios platform
run: ionic cordova platform take away ios
- title: Add Ios platform
run: ionic cordova platform add ios
- title: Repair translations issues in IOS
run: ionic cordova plugin add cordova-plugin-ionic-webview
- title: Set up @ionic-native/ionic-webview
run: npm set up @ionic-native/ionic-webview
- title: Prebuild iOS manufacturing
run: npm run prod:ios
- title: Uninstall outdated gems
run: gem cleanup
- title: Publish as inside testing
makes use of: yukiarrr/ios-build-action@v1.5.0
with:
project-path: ./platforms/ios/MyProject.xcodeproj
p12-base64: ${{ secrets and techniques.IOS_P12_BASE64 }}
certificate-password: ${{ secrets and techniques.IOS_P12_PASSWORD }}
mobileprovision-base64: ${{ secrets and techniques.IOS_PROVISION_FILE }}
code-signing-identity: iOS Distribution
team-id: ${{ secrets and techniques.TEAM_ID }}
workspace-path: ./platforms/ios/MyProject.xcworkspace # elective
And that is what I find yourself with:
[17:53:21]: $ set -o pipefail && xcodebuild -workspace ./platforms/ios/MyProject.xcworkspace -scheme MyProject -configuration Launch -destination 'generic/platform=iOS' -archivePath /Customers/runner/Library/Developer/Xcode/Archives/2022-05-16/output 2022-05-16 17.53.21.xcarchive clear archive | tee /Customers/runner/Library/Logs/gymnasium/MyProject-MyProject.log | xcpretty
[17:53:29]: ▸ Clear Succeeded
[17:53:39]: ▸ ❌ error: No certificates for crew '***' matching 'iOS Distribution' discovered: Choose a unique signing certificates for CODE_SIGN_IDENTITY, a crew that matches your chosen certificates, or change to computerized provisioning. (in goal 'MyProject' from mission 'MyProject')
[17:53:39]: ▸ ** ARCHIVE FAILED **
▸ Clear Succeeded
❌ error: No certificates for crew '***' matching 'iOS Distribution' discovered: Choose a unique signing certificates for CODE_SIGN_IDENTITY, a crew that matches your chosen certificates, or change to computerized provisioning. (in goal 'MyProject' from mission 'MyProject')
** ARCHIVE FAILED **
[17:53:39]: Exit standing: 65
[17:53:39]:
[17:53:39]: Perhaps the error proven is induced through the use of the mistaken model of Xcode
[17:53:39]: Discovered a number of variations of Xcode in '/Functions/'
[17:53:39]: Be sure to chosen the correct model in your mission
[17:53:39]: This construct course of was executed utilizing '/Functions/Xcode_13.2.1.app'
[17:53:39]: If you wish to replace your Xcode path, both
[17:53:39]:
[17:53:39]: - Specify the Xcode model in your Fastfile
[17:53:39]: ▸ xcversion(model: "8.1") # Selects Xcode 8.1.0
[17:53:39]:
[17:53:39]: - Specify an absolute path to your Xcode set up in your Fastfile
[17:53:39]: ▸ xcode_select "/Functions/Xcode8.app"
[17:53:39]:
[17:53:39]: - Manually replace the trail utilizing
[17:53:39]: ▸ sudo xcode-select -s /Functions/Xcode.app
[17:53:39]:
+---------------+--------------------------------+
| Construct setting |
+---------------+--------------------------------+
| xcode_path | /Functions/Xcode_13.2.1.app |
| gym_version | 2.205.2 |
| export_method | app-store |
| sdk | iPhoneOS15.2.sdk |
+---------------+--------------------------------+
I’m fairly positive that my certificates, code signal id and provisioning profile are all right, however this error nonetheless exhibits when Publish as inside testing fails. What is the right option to debug it?
(I add fastlane tag as a result of this plugin is constructed primarily based on it)
[ad_2]
