最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

react native - Bitbucket pipeline Workspace Runner Xcode can't detect the certificate installed on the server - Stack Ov

programmeradmin2浏览0评论

I am trying to archive an iOS project using Bitbucket Pipeline using a self hosted runner.

  1. I was able to build the ipa using a Repository Runner and used my local machine as a self hosted runner.

  1. 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!

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论