建造失败:|步骤7脚本
Build .ipa
带有状态代码66我没有工作空间,只有项目。当Xcode中的档案取得成功时。退出
以及我的代码在build ipa的yaml文件中是,
Xcode-project build-ipa -project“ $ xcode_project” - -scheme“ $ xcode_scheme”
代码魔术屏幕截图:
https://ibb.co/yjfg0gh我下面的完整yaml文件,
workflows:
ios-testApp:
name: ios_testApp
environment:
vars:
XCODE_PROJECT:: “TestApp.xcodeproj" # <-- Put the name of your workspace here.
XCODE_SCHEME: "TestApp" # <-- Put the name of your scheme here.
# Set up env vars for manual codesigning (See - https://docs.codemagic.io/code-signing-yaml/signing-ios/)
CM_CERTIFICATE: Encrypted(…….) # <-- Put your encrypted distribution certificate here.
CM_CERTIFICATE_PASSWORD: Encrypted(…….) # <-- Put your encrypted distribution certificate password here.
CM_PROVISIONING_PROFILE: Encrypted(…….) # <-- Put your encrypted provisioning profile here.
xcode: 12.4
cocoapods: default
triggering:
events:
- push
- tag
- pull_request
branch_patterns:
- pattern: 'master'
include: true
source: true
scripts:
- name: Initialize keychain to be used for codesigning using Codemagic CLI 'keychain' command
script: |
keychain initialize
- name: set up provisioning profiles
script: |
PROFILES_HOME="/Users/vadivel/Library/MobileDevice/Provisioning Profiles"
mkdir -p "$PROFILES_HOME"
PROFILE_PATH="$(mktemp "$PROFILES_HOME"/$(uuidgen).mobileprovision)"
echo ${CM_PROVISIONING_PROFILE} | base64 --decode > $PROFILE_PATH
echo "Saved provisioning profile $PROFILE_PATH"
- name: Add signing certificate to keychain
script: |
echo $CM_CERTIFICATE | base64 --decode > /tmp/certificate.p12
keychain add-certificates --certificate /tmp/certificate.p12 --certificate-password $CM_CERTIFICATE_PASSWORD
- name: Set up code signing settings on Xcode project
script: |
xcode-project use-profiles
- name: Build .ipa
script: |
xcode-project build-ipa --project "$XCODE_PROJECT" --scheme "$XCODE_SCHEME"
artifacts:
- build/ios/ipa/*.ipa
- /Users/vadivel/Library/Developer/Xcode/DerivedData/**/Build/**/*.dSYM
publishing:
email:
recipients:
- [email protected]
notify:
success: true
failure: true
我知道这是一个古老的问题,但是今天我们遇到了类似的错误(2025-01-31)。
Archive myreactapp.xcworkspace
Execute "xcodebuild -workspace /Users/builder/clone/ios/myreactapp.xcworkspace -scheme myreactapp -destination generic/platform=iOS -archivePath build/ios/xcarchive/myreactapp_xxxxx.xcarchive archive COMPILER_INDEX_STORE_ENABLE=NO DEVELOPMENT_TEAM=E6SUQF7E9W 'CODE_SIGN_IDENTITY=Apple Distribution' CODE_SIGN_STYLE=Manual"
Failed to archive /Users/builder/clone/ios/myreactapp.xcworkspace
事实证明,错误是由于已过期的配置配置文件所致。今天浪费了几个小时,因为这个愚蠢的错误。