conflicting provisioning settings for iOS distribution build in Xcode
I want to create iOS build, but having some problems. I tried to create certificates and provisioning profiles from the developer.apple.com but when I used them I was having errors :(. After research I found that it is important to create certificates and provisioning profiles only in Xcode (here is one of the links)
When I set the Xcode settings so that it will create certificates and provisioning profiles for developer it creates correct certificates with its provisioning profile. I import them into ue4 and package project. Great I have a developer build :).
But I need build for distribution.
So I change the Xcode settings so that it will create certificates and provisioning profiles for distribution, but Xcode says the following:
I'm using ue4 v4.16.1 and Xcode v8.3.3
Here is my questions:
1) Am I doing something wrong? 2) Is it Xcode bug? 3) How can I resolve this?
Ok here are the steps:
1) Create certificate from Xcode : Xcode->Preferences->account setup->Mange Certificate -> click on "+" button and choose iOS App Store
2) in KeyChain Access : find the certificate (iPhone Distribution) and export it. It will create file with .p12 extension
3) Goto Developer Account and create Provisioning profile for distribution(choose distribution certificate that created from Xcode (step 1)). Download it and double click for install
4) Copy-Past the provisioning profile to ProjectDir\Build\IOS and rename it to projectName
5) Open project in UE4. Goto project settings -> IOS -> import certificate -> import .p12 file (step 2). UE4 will automatically import the provisioning profile
if after this step provisioning status will be "no valid Certificate found" then you may restart Mac. After that It become "Valid" for me :)
6) turn off project settings -> IOS -> automatic signing
7) Goto project settings -> Packaging -> "Build Configuration" set to "Shipping" and turn on "for Distribution"
8) open ProjectDir\Intermediate\IOS\ProjectName.entitlements file and be sure that "get-task-allow" is set to "NO"
9) File -> package project -> IOS
answered Jul 04 '17 at 08:20 AM
I have same problem 3 weeks ago. When I woke up the next day, the error was lost. So I think you should wait a bit approval of the certificate .Goodluck :)
answered Jun 13 '17 at 01:29 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here