3rd days struggling with certificates, identifiers & Profiles

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
trevix
Posts: 958
Joined: Sat Feb 24, 2007 11:25 pm
Location: Italy
Contact:

3rd days struggling with certificates, identifiers & Profiles

Post by trevix » Sun Mar 21, 2021 4:51 pm

OSX 10.14.6 LC 9.6.2(rc2)
Everything was working fine 3 days ago: my iOS App "SegnaPunto" was published on the apple store, I could test it on a hadware iPhone, etc.
I had received from Apple a "Your Distribution Certificate will no longer be valid in 30 days" (that is 18 of march), but I delayed taking care of this until the date passed (too busy).
When, trying to run a new version of the Ap on my hardware iOS, I received the first message that was denying me to do so, I went to my developer account to try to fix the problem.
Schermata 2021-03-21 alle 16.30.30.png
It was a nightmare of complications and things got worse, so that i decided to reset all certificates, profiles, identifiers (where i was allowed to do so), since i knew that if an App is already published, there is no risk of doing damages.
I also did some cleaning in the key holder of the Mac, deleting my certificates, and keys that i could directely relate to my developer account.
To complicate things, I never know if to generate certificates signing request using as Common name my name or the company name (they are both listed on the Apple developer account).

But i am stuck and don't know what else to try.
I have repeated the LC lesson over and over, trying different solutions, but i always receive the message above.
Can someone suggest me a different approach to this problem?
Trevix
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 818
Joined: Fri Feb 06, 2015 4:03 pm

Re: 3rd days struggling with certificates, identifiers & Profiles

Post by LiveCode_Panos » Mon Mar 22, 2021 5:40 pm

Hello Trevix,

I suggest looking at ~/Library/MobileDevice/Provisioning Profiles/

Find the Provisioning profile you used to sign the app, and press the space key to preview the profile. You should see some certificates that are included in this profile. Are these certificates present in your KeyChain app? And do they have a private key?

Kind regards,
Panos
--

trevix
Posts: 958
Joined: Sat Feb 24, 2007 11:25 pm
Location: Italy
Contact:

Re: 3rd days struggling with certificates, identifiers & Profiles

Post by trevix » Mon Mar 22, 2021 6:09 pm

Yes, thankyou for your answer. Is the first thing that I checked.

Note that, as from this last post viewtopic.php?f=7&t=22341&sid=883c06775 ... 3&start=15, my new certificates where "issuing authority was not trusted", so I had to :
- get info on the certificate
- Attendibility: trust always.

If thing could go worse in the last few days my iphone got iOS updated to 14.3.
I hope that this doen't have anything to do with all this mess.

Regards
Trevix
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>

trevix
Posts: 958
Joined: Sat Feb 24, 2007 11:25 pm
Location: Italy
Contact:

Re: 3rd days struggling with certificates, identifiers & Profiles

Post by trevix » Mon Mar 22, 2021 7:14 pm

LAST MINUTE:
now i can compile my standalone and install it in the iPhone.
But when I launch it (or any other LC standalone installed) it open and close instantly.
Trevix
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>

trevix
Posts: 958
Joined: Sat Feb 24, 2007 11:25 pm
Location: Italy
Contact:

Re: 3rd days struggling with certificates, identifiers & Profiles

Post by trevix » Tue Mar 23, 2021 12:42 pm

Could it be because I am still using Xcode 11.3.1?
Trevix
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 818
Joined: Fri Feb 06, 2015 4:03 pm

Re: 3rd days struggling with certificates, identifiers & Profiles

Post by LiveCode_Panos » Tue Mar 23, 2021 12:54 pm

@Roberto

Xcode 11.3 is fine, I use this version on my Mac that runs Mojave and it works as expected.

Does your app include a PDF widget? If yes, this is a bug in LC 9.6.2 rc2, which is fixed in LC 9.6.2 rc3

Kind regards,
Panos
--

trevix
Posts: 958
Joined: Sat Feb 24, 2007 11:25 pm
Location: Italy
Contact:

Re: 3rd days struggling with certificates, identifiers & Profiles

Post by trevix » Tue Mar 23, 2021 3:01 pm

Nope. It wasn't that.
I have a feeling that is related to the certificates being NOT trusted:
Schermata 2021-03-23 alle 14.59.38.png
I also found this, that did not know it existed...
https://developer.apple.com/support/expiration/

Now I have two choices:
- keep trying (uh)
- update to Catalina and to the compatible version of Xcode, hoping that everything will go to the right places.

Any suggestion?
Thanks for the help
Trevix
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 818
Joined: Fri Feb 06, 2015 4:03 pm

Re: 3rd days struggling with certificates, identifiers & Profiles

Post by LiveCode_Panos » Tue Mar 23, 2021 5:06 pm

I also found this, that did not know it existed...
https://developer.apple.com/support/expiration/
Ah that must be it. If you download the certificate that is linked ^^ above, and double-click on it, it will be installed in your KeyChain, and the certificate "Apple Development" that is now marked as "not trusted" will be marked as "trusted". Then create again an iOS standalone - hopefully this time it will work :)

Let us know how it goes.

Kind regards,
Panos
--

trevix
Posts: 958
Joined: Sat Feb 24, 2007 11:25 pm
Location: Italy
Contact:

Re: 3rd days struggling with certificates, identifiers & Profiles

Post by trevix » Tue Mar 23, 2021 7:04 pm

Apparently not.
I am now able to get a standalone (that's something) but dragging it to Xcode Devices result in: Unable to install "Segnapunto".
I guess i have to start over the development certificates stuff...
Trevix
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>

trevix
Posts: 958
Joined: Sat Feb 24, 2007 11:25 pm
Location: Italy
Contact:

Somehow SOLVED: 3rd days struggling with certificates, identifiers & Profiles

Post by trevix » Fri Mar 26, 2021 10:18 am

After so many changes, restart, reading, I was able to fix everything. Now I can install and distribute.
Ok...I don't really know how I did it, tough.

I asked Apple for support but they never really give me an answer. The fact that one day I was able to complete the procedure, while the day before I could not, means to me that they either fixed something or, for a chance, I modified the correct thing.
I have a lot of left over from my repeated tests, but I don't dare to touch anything. Will see.

I think that for such important thing, LC should update their lesson on how to create install and distribution profiles, with more details, particularly on certificates handling.
Anyway, thanks Panos. You are the best.

Trevix
Trevix
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>

okk
Posts: 176
Joined: Wed Feb 04, 2015 11:37 am

Re: 3rd days struggling with certificates, identifiers & Profiles

Post by okk » Fri Apr 23, 2021 9:11 am

Hi, I had the same issue, this tip from the apple forum helped me:
https://developer.apple.com/forums/thread/662300
It somehow has to do with Xcode 11.3 not automatically updating the "Apple Worldwide Developer Relations Intermediate Certificate" that expired on January 28, 2021. Therefore my Apple Development certificate in keychange was "Not Trusted". But after installing manually the certificate linked in the forum article it changed back to "trusted" and things went back to normal.

Best
Oliver

Post Reply

Return to “iOS Deployment”