We can archive build on Xcode and distribute via Crashlytics Beta via the Fabric desktop app; however, the fastlane distribution fails. The build uploads but the testers are not able to install it. Below is part of the 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. Specifying export_team_id
and export_method
solves the issue. Find your team id here .
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"])
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.