fastlane-old / sigh

Because you would rather spend your time building stuff than fighting provisioning
https://fastlane.tools
959 stars 87 forks source link

sigh always creates new provisioning profiles #236

Closed johnlabarge closed 8 years ago

johnlabarge commented 8 years ago

Even when it just created them..

[20:55:03]: Starting login with user 'john.labarge@xxxxx'
Multiple teams found, please enter the number of the team you want to use: 
1) NR7RF5923T -- (Company/Organization)
2) BJ5PA3R3X7 -- (In-House)
3) AQNYKQRTDP -- (Company/Organization)
4) L98396R9NU -- (In-House)
1
[20:55:08]: Successfully logged in
[20:55:08]: Fetching profiles...
[20:55:10]: No existing profiles, creating a new one for you
[20:55:11]: The name '.Flourish AppStore' is already taken, using another one.
[20:55:11]: Creating new provisioning profile for '.Flourish' with name '.Flourish AppStore 1450328111'
[20:55:11]: Downloading provisioning profile...
[20:55:11]: Successfully downloaded provisioning profile...
[20:55:11]: Installing provisioning profile...
xxxx/Annie/Flourish/AppStore_.Flourish.mobileprovision
➜  flourish git:(master) ✗ vi fastlane/FastFile 
➜  flourish git:(master) ✗ ls *.mobileprovision
AdHoc_.*.mobileprovision                   
x.mobileprovision
x.mobileprovision         
x.mobileprovision
AppStore_*.mobileprovision                             
x.mobileprovision
-.mobileprovision   
-.mobileprovision
-.mobileprovision      
-.mobileprovision
➜  flourish git:(master) ✗ sigh --cert_id HK7AZM96GS

+------------+------------+
| Summary for sigh 1.2.1  |
+------------+------------+
| cert_id    | HK7AZM96GS |
+------------+------------+

[20:57:06]: Starting login with user 'john.labarge'
Multiple teams found, please enter the number of the team you want to use: 
1) NR7RF5923T -- (Company/Organization)
2) BJ5PA3R3X7 -- (In-House)
3) AQNYKQRTDP -- (Company/Organization)
4) L98396R9NU -- (In-House)

[20:57:09]: Successfully logged in
[20:57:09]: Fetching profiles...
[20:57:12]: No existing profiles, creating a new one for you
[20:57:13]: The name 'x.Flourish AppStore' is already taken, using another one.
[20:57:13]: Creating new provisioning profile for '.Flourish' with name 'x.Flourish AppStore 1450328233'
[20:57:13]: Downloading provisioning profile...
[20:57:13]: Successfully downloaded provisioning profile...
[20:57:13]: Installing provisioning profile...
/Annie/Flourish/AppStore_x.Flourish.mobileprovision
➜  flourish git:(master) ✗ 
KrauseFx commented 8 years ago

That means the certificate of the provisioning profile isn't installed locally. It is recommended to use match for easier code signing :rocket:

anton-matosov commented 8 years ago

@KrauseFx I have the same issue and only with ad-hoc profile. It works fine with the AppStore. Any suggestions how to fix that are very welcome.

KrauseFx commented 8 years ago

Basically this means, that you're missing a local code signing identity. You can run sigh --skip_certificate_verification to not verify the local certificates. In general, it's recommended to use match to setup code signing.

anton-matosov commented 8 years ago

Thanks! --skip_certificate_verification solved the problem. However I still don't understand how to fix the root cause missing a local code signing identity.

KrauseFx commented 8 years ago

@anton-matosov You should use match to automate the whole process - this tool will fix this issue for you.

anton-matosov commented 8 years ago

Ok, will give it a try

anton-matosov commented 8 years ago

match seems to be working fine. tried on one machine only

anton-matosov commented 8 years ago

I have faced the following problem with match https://github.com/fastlane/match/issues/58

KrauseFx commented 8 years ago

I'll close this sigh issue for now :+1:

fastlanebot commented 8 years ago

This issue was migrated to https://github.com/fastlane/fastlane/issues/2867. Please post all further comments there.

fastlane is now a mono repo, you can read more about the change in our blog post. All tools are now available in the fastlane main repo :rocket: