Xcode Distribution Distribution Profile Problem

I am having a problem with the Provisioning Profile in Xcode. After a day of reading and following the IOS Provisioning Portal, and also to solve the problem, I seek help.

It seems to me that I must satisfy the following conditions in order to distribute the application in the App Store: 1) In my assembly, I should aim the DEVICE (i.e. Not a simulator). 2) The target device must be configured in the Xcode organizer with the Provisioning Distribution profile.

But I cannot satisfy these conditions through the Provisioning Portal, based on what I have experienced so far:

1) I created a distribution distribution profile. 2) Indicates null devices. 3) When I try to edit it, the devices turn gray if the “Application Store” is selected as “Distribution Method”, but not when “Ad Hoc” is selected. Therefore, I cannot add devices for distribution in the App Store. 4) I uploaded the distribution distribution profile (.mobileprovision file). 5) In Xcode Organizer, when I try to add a Provisioning Profile to my device, the distribution distribution profile that I downloaded is grayed out.

I am concerned that the Provisioning Distribution profile indicates null devices. Is it because only Provisioning Provisioning profiles can indicate devices?

I am also worried that I cannot add the distribution profile that I downloaded to the device in Xcode Organizer. DEVELOPMENT PREVENTION Profiling is not grayed out. Is it because only Provisioning Provisioning profiles can be added to the device?

When I make the assembly, I made sure the Signing Code section indicates “iPhone Distribution” and indicates my distribution distribution profile. The assembly completed successfully, but I get the following error and the program will not start on the device:

"A valid provisioning profile for this executable was not found"

I must have missed something, as many others did it successfully. Can someone point out what I am missing or something is wrong?

Any help is greatly appreciated.

+7
source share
1 answer

The second assumption is incorrect. You do not need to target the device in the distribution profile. Disconnect the devices from your computer, select the distribution profile and the target iOS device in the schema selector and build (without starting). Then the result can be archived and loaded into the apple.

+7
source

All Articles