简体   繁体   English

在使用Xcode自动代码签名时如何使用Fastlane和Crashlytics进行构建?

[英]How to use Fastlane and Crashlytics to build while using Xcode automatic code signing?

We can archive build on Xcode and distribute via Crashlytics Beta via the Fabric desktop app; 我们可以在Xcode上归档构建文件,并通过Fabric桌面应用程序通过Crashlytics Beta进行分发; however, the fastlane distribution fails. 但是,fastlane分发失败。 The build uploads but the testers are not able to install it. 内部版本已上传,但测试人员无法安装。 Below is part of the Fastfile. 以下是Fastfile的一部分。

build_app(scheme: "The-App-Fabric",
          workspace: "The-App.xcworkspace",
          configuration: "QA",
          output_directory: "./build",
          clean: true,
          include_bitcode: false)
crashlytics(api_token: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
            build_secret: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
            ipa_path:"./build/The-App-Fabric.ipa",
            groups: ["ios-qa"])

Inspection of the .ipa via ProvisionQL reveals that build_app was automatically choosing the wrong provisioning profile. 通过ProvisionQL对.ipa的检查显示,build_app自动选择了错误的配置文件。 Specifying export_team_id and export_method solves the issue. 指定export_team_idexport_method解决了此问题。 Find your team id here . 在此处找到您的团队ID。

        build_app(scheme: "The-App-Fabric",
            workspace: "The-App.xcworkspace",
            configuration: "QA",
            output_directory: "./build",
            clean: true,
            export_team_id: "XXXXXXXXXX",
            export_method: "development",
            include_bitcode: false)
        crashlytics(api_token: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                build_secret: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
                ipa_path:"./build/The-App-Fabric.ipa",
                groups: ["ios-qa"])

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM