I had the same problem when I came across this topic. Melvin's answer above was what I already tried, and I was sure that was correct. Then I read a comment from Gary, saying: “At first, it didn’t work for me when I just changed the Release setting. I changed all the code signature identification parameters from Developer to Distribution, and then it worked.”
It turns out that Gary was corrected for me. But this is not a solution, but it indicates a problem with the root. In my case, this worked because my "Ad Hoc Distribution" scheme was not configured correctly. I suspect this applies to Gary.
Here is how I fixed it:
- Select an Ad Hoc Distribution scheme (for example, use the Scheme button to select it)
- Select "Edit Schema ..."
- Select "Archive" in the left column
- Select the correct "build configuration" in the selection box (for example, "Release" or "Ad Hoc" or whatever you called your Ad Hoc configuration).
In my case, I had an assembly configuration configured for the storage assembly configuration in the App Store. Thus, the archived version of Ad Hoc was signed for the App Store. Naturally, when I try to install it on a special test device, it will not be installed.
Melvin's answer is also needed to fix this. You must use the correct code identifier for your custom build configuration.
Braeburn
source share