【发布时间】:2021-11-07 12:17:40
【问题描述】:
我正在尝试通过 Codemagic 生成 ipa,但它通过了所有脚本并且无法生成 ipa
workflows:
prod-adhoc:
name: Production Build - AdHoc Distribution
environment:
vars:
XCODE_WORKSPACE: "project.xcworkspace"
XCODE_SCHEME: "project"
BUNDLE_ID: "com.project.app"
APP_STORE_CONNECT_ISSUER_ID: Encrypted()
APP_STORE_CONNECT_KEY_IDENTIFIER: Encrypted()
APP_STORE_CONNECT_PRIVATE_KEY: Encrypted()
CERTIFICATE_PRIVATE_KEY: Encrypted()
xcode: latest
cocoapods: default
scripts:
- find . -name "Podfile" -execdir pod install \;
- name: Set up keychain to be used for codesigning using Codemagic CLI 'keychain' command
script: keychain initialize
- name: Fetch signing files
script: # You can allow creating resources if existing are not found with `--create` flag
app-store-connect fetch-signing-files $BUNDLE_ID --type IOS_APP_ADHOC --create
- name: Set up signing certificate
script:
xcode-project use-profiles
- name: Increment build number
script: agvtool new-version -all $BUILD_NUMBER
- name: Build ipa for Adhoc
script: xcode-project build-ipa --workspace "$XCODE_WORKSPACE" --scheme "$XCODE_SCHEME" --verbose
artifacts:
- build/ios/ipa/*.ipa
- /tmp/xcodebuild_logs/*.log
- $HOME/Library/Developer/Xcode/DerivedData/**/Build/**/*.dSYM
publishing:
email:
recipients:
- neha@gmail.com
❌ 错误:未找到签名证书“iOS Distribution”:未找到与团队 ID“XXXXX”匹配的带有私钥的“iOS Distribution”签名证书。 (在项目“项目”的目标“项目”中)
❌ 错误:未找到签名证书“iOS Distribution”:未找到匹配团队 ID“xxxxxx”和私钥的“iOS Distribution”签名证书。 (在项目“项目”的目标“OneSignalNotificationServiceExtension”中)
我已检查项目设置是否为自动
【问题讨论】: