【问题标题】:React native - Codemagic ios build failed to publish反应本机 - Codemagic ios 构建未能发布
【发布时间】:2021-04-10 21:53:29
【问题描述】:

预期:我需要在飞行模式下将 ipa 上传到应用商店。

面对: 以下是build ios 部分中的响应(coademagic.yaml 响应)-

Successfully created archive at build/ios/xcarchive/Projname_6don6ptw.xcarchive
Export build/ios/xcarchive/Projname_6don6ptw.xcarchive to build/ios/ipa
Execute "xcodebuild -exportArchive -archivePath build/ios/xcarchive/Projname_6don6ptw.xcarchive -exportPath build/ios/ipa -exportOptionsPlist /Users/builder/export_options.plist COMPILER_INDEX_STORE_ENABLE=NO"

▸ Export Succeeded
Successfully exported ipa to build/ios/ipa/Projname.ipa
Raw xcodebuild logs stored in /tmp/xcodebuild_logs/Projname_4fqjb9bq.log

publishing 块中(codemagic.yaml):

== Gathering artifacts ==

== Publishing artifacts ==

Publishing artifact AppReactNative_40_artifacts.zip
Skip publishing to App Store Connect: no IPAs found

项目 ipa 已创建,但我不明白为什么它在 artifact.zip 文件中丢失。

【问题讨论】:

    标签: ios react-native ipa apple-developer codemagic


    【解决方案1】:

    您的 codemagic.yaml 文件中有下一行吗?

        artifacts:
          - build/ios/ipa/*.ipa
    

    您可以在此处找到完整示例 https://docs.codemagic.io/getting-started/building-a-react-native-app/#ios-workflow-example

    【讨论】:

    • 除此之外,我必须从项目的根目录而不是在 ios 文件夹中运行构建命令。就这样。 :)
    猜你喜欢
    • 2021-10-01
    • 2020-06-10
    • 2020-12-20
    • 2020-12-07
    • 2020-06-30
    • 2022-08-02
    • 2016-11-07
    • 1970-01-01
    • 2021-06-24
    相关资源
    最近更新 更多