How do I distinguish between "Ad Hoc" and "App Store" code signing IDs in xcconfig files?

I am trying to create a Unity iOS project to trigger automatic builds through Jenkins. While I have Jenkins running a Unity build that generates an XCode project. Then, using xcodebuild with XCode 4.5.2, I am trying to create an Ad-Hoc IPA file to distribute to Testflight.

To specify the code signing ID in the Xcode project, I pass a very simple xcconfig file to xcodebuild. The xcconfig file looks like this:

//:configuration = Release
CODE_SIGN_IDENTITY[sdk=iphoneos*] = iPhone Distribution: Company Name

//:completeSettings = none

      

The problem is that "iPhone Distribution: Company Name" is ambiguous; this applies to "Ad Hoc" and "App Store" signature identifiers. And of course, when I run the build, Xcode picks the App Store ID over Ad-Hoc, which is the opposite of what I would like in this case.

Is it possible to specify that I would like to use the Ad-Hoc ID via the xcconfig file? It seems strange that I couldn't explicitly specify the ID in this way.

+3


source to share


1 answer


I haven't used Unity and TestFlight yet.



But the general solution would be to use two different AppIds for AdHoc and AppStore. This way xCode can choose the correct one automatically.

+1


source







All Articles