Software Archive
Read-only legacy content
17060 Discussions

iOS build - switching between ad_hoc and production

Marek_Š_
Beginner
698 Views

Hi,

yesterday I built a project for iOS under production profile - it required to upload production Apple certificate on the build screen. Today, I wanted to build another project using ad_hoc profile as it's not finished yet (I did it many times before for this project). Unfortunately it looks like the production certificate, I uploaded for different project yesterday, is used for this one as well as my build crashes with the error message:

Signing Identity:     "iPhone Distribution: Foxtrot Technologies s.r.o. (TR9X822V33)"
Provisioning Profile: "Testy_adhoc"
                      (e272f795-f572-4bbd-a363-bc690e4d9c8e)

    /usr/bin/codesign --force --sign 3BF861F3161BE03354E667124B416CE4E46DF802 --resource-rules=.../Testy/platforms/ios/build/device/Testy.app/ResourceRules.plist --entitlements .../Testy/platforms/ios/build/Testy.build/Release-iphoneos/Testy.build/Testy.app.xcent .../Testy/platforms/ios/build/device/Testy.app
3BF861F3161BE03354E667124B416CE4E46DF802: no identity found
Command /usr/bin/codesign failed with exit code 1

** BUILD FAILED **

Does it mean I have to upload certificates each time I work on a project with different profile - ad-hoc / production?

Marek

0 Kudos
5 Replies
John_H_Intel2
Employee
698 Views

I see you have some successful builds and assume that you have got the issue fixed?

Expired cert?

0 Kudos
Marek_Š_
Beginner
698 Views

I am not sure, it's an "issue" - the approach is very simple - in case I want to build ad-hoc, I have to upload ah-hod Apple certificate, in case I want to build production (AppStore) I have to upload production certificate. I was just surprised, that the certificates are not linked to build type from the build profile (adhoc / production) as provisioning files are and that they are shared between projects. So, that's why I asked ....

Marek

0 Kudos
John_H_Intel2
Employee
698 Views

You should be able to use the same iOS distribution cert for ad hoc and production builds, as long as each provisioning profile was created with the same cert.

0 Kudos
Marek_Š_
Beginner
698 Views

Thanks John for the comment, I'll review my certificates / p. profiles and I'll test it.

Marek

0 Kudos
Marek_Š_
Beginner
698 Views

I rebuilt the p. files and tested the build - it works great. Thanks a lot.

Marek

0 Kudos
Reply