I am trying to archive an iOS project using Bitbucket Pipeline using a self hosted runner.
- I was able to build the ipa using a Repository Runner and used my local machine as a self hosted runner.
- On the second setup I am using Workspace Runner with another machine, however we cannot get a successful build.
error: No profile for team 'abc' matching 'xxx' found: Xcode couldn't find any provisioning profiles matching 'xxx'.
- The profile is okay
- Certificate is installed on the machine
here's is the working code for the no. 1
xcodebuild clean archive -workspace XXX.xcworkspace -scheme $SCHEME -archivePath $BITBUCKET_CLONE_DIR/build/app.xcarchive
My Alternative solution is to install the certificate via pipeline
- echo $IOS_CERTIFICATE | base64 -d > /tmp/certificate.p12
# Check if certificate exists
- ls -l /tmp/certificate.p12
- security import /tmp/certificate.p12 -k /Users/administrator/Library/Keychains/development-db -T /usr/bin/codesign -P ""
- security import /tmp/certificate.p12 -k /Users/administrator/Library/Keychains/login.keychain-db -T /usr/bin/codesign -P ""
- echo "Checking codesigning"
- security find-identity -v -p codesigning
BUT STILL NO LUCK.
+ security find-identity -v -p codesigning
0 valid identities found
Any possible solutions out there? Thanks!