I'm building an iOS app locally using Fastlane, without any problems.
I'm using match
with a separate repo, to keep track of certificates and provisioning profiles.
Locally it works fine.
On Bitrise, however, I get this error:
[05:23:16]: All required keys, certificates and provisioning profiles are installed π [05:23:16]: Setting Provisioning Profile type to 'app-store' [05:23:16]: ----------------------- [05:23:16]: --- Step: build_app --- [05:23:16]: ----------------------- [05:23:16]: $ xcodebuild -list -workspace Myapp.xcworkspace -configuration Debug [05:23:17]: $ xcodebuild -showBuildSettings -workspace Myapp.xcworkspace -scheme Myapp -configuration Debug [05:23:20]: Couldn't automatically detect the provisioning profile mapping [05:23:20]: Since Xcode 9 you need to provide an explicit mapping of what [05:23:20]: provisioning profile to use for each target of your app [05:23:20]: No such file or directory @ rb_sysopen - /Users/vagrant/git/Pods/Target Support Files/Pods-Myapp/Pods-Myapp.debug.xcconfig [05:23:20]: Detected provisioning profile mapping: {:"com.myapp.myapp"=>"match AppStore com.myapp.myapp"}
I tried explicitly mapping the provisioning profile in my Fastfile
:
lane :beta do
clear_derived_data
increment_build_number
match(app_identifier: "com.myapp.myapp", type: "appstore", clone_branch_directly: true)
build_app(
workspace: "Myapp.xcworkspace",
scheme: "Myapp",
configuration: "Debug",
export_options: {
method: "app-store",
provisioningProfiles: {
"com.myapp.myapp" => "match AppStore com.myapp.myapp"
}
}
)
upload_to_testflight(skip_waiting_for_build_processing: true)
end
Any idea what I need to resolve this?