[iOS] Local build for release
Hi there, I am trying to build my iOS app for release and it fails using SideKick, I have updated the build.xcconfig like this:
DEVELOPMENT_TEAM = 6W9G86W4T4
CODE_SIGN_IDENTITY = iPhone Distribution
PROVISIONING_PROFILE = 2a475f3b-c13f-48e2-b6f9-17ae05fe51b1
This is the error I am getting:
2018-12-10 15:40:36.550 xcodebuild[29291:24178340] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/0v/034z5q516y3gg8_z75hbm6sm0000gn/T/MyAppName2_2018-12-10_15-40-36.549.xcdistributionlogs'.
error: exportArchive: "MyAppName.app" requires a provisioning profile.
Error Domain=IDEProvisioningErrorDomain Code=9 ""MyAppName.app" requires a provisioning profile." UserInfo={NSLocalizedDescription="MyAppName.app" requires a provisioning profile., NSLocalizedRecoverySuggestion=Add a profile to the "provisioningProfiles" dictionary in your Export Options property list.}
Any idea???
Thanks!
@relez, I was able to reproduce the reported issue and it seems that the PROVISIONING_PROFILE option is causing the code signing error. Can you please remove this option (or comment it out), delete the platforms/ios folder and try to build the app again. The provided development team should be sufficient and the Sidekick (through the CLI) will be able to get all the necessary code signing information from the keychain.
Please, let me know if this helps and in the meantime, we will have to investigate further why the PROVISIONING_PROFILE option seems to be causing problems.
Hi there, any news on this issue?
Thanks!
I am still having this error if I comment the PROVISIONING_PROFILE line:
[19-04-04 15:40:03.570] Build failed. Command xcodebuild failed with exit code 70 Error output: 2019-04-04 15:40:02.203 xcodebuild[57282:519945] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/0v/034z5q516y3gg8_z75hbm6sm0000gn/T/MyApp_2019-04-04_15-40-02.202.xcdistributionlogs'. error: exportArchive: "YourApp.app" requires a provisioning profile. Error Domain=IDEProvisioningErrorDomain Code=9 ""MyApp.app" requires a provisioning profile." UserInfo={NSLocalizedDescription="YourApp.app" requires a provisioning profile., NSLocalizedRecoverySuggestion=Add a profile to the "provisioningProfiles" dictionary in your Export Options property list.} [19-04-04 15:49:22.641] Build failed. Command xcodebuild failed with exit code 65 Error output: ** ARCHIVE FAILED **
Any news on this?