Page 1 of 2
Another problem about provisioning profiles…
Posted: Tue Jul 23, 2024 5:27 pm
by GoneToSail
Good afternoon,
I want to install a small app on an iPad, which was generated on a MacBook with Livecode, with the following versions:
MacOS Sonoma 14.4.1
Xcode 15.0.1
Livecode 9.6.11
I have created the following certificates or IDs on developer.apple.com :
• iOS Development, expiring 2025/05/26
• App ID with a valid description and a bundle ID in a wildcard format, i.e. com.domainname.*
• Development Provisioning Profile, expiring 2025/07/23, with the above App ID and valid for 5 devices, including the iPad.
The iOS Development certificate and the Provisioning Profile have been downloaded on the MacBook, the iOS Development certificate can be seen in Keychain Access.
However, when trying to generate a standalone, I get the following warning:
"There was an error while saving the standalone application
could not find a valid identity to use for the selected profile"
It seems to me that the same process was working fine a few months ago, and I can't identify where I was wrong…
I was interested to read another post named "What is up with provisioning profiles?" but my problem seems to be different.
Any idea to help me and try to solve this time consuming installation ?
Re: Another problem about provisioning profiles…
Posted: Thu Jul 25, 2024 8:26 am
by LiveCode_Panos
Hello GoneToSail,
Does the provisioning profile include the new iOS Development certificate, expiring 2025/05/26?
You can find out either in the Apple Dev portal, by editing the provisioning profile. If you scrill down at the bottom, it lists which certificates are included. Otherwise you can just navigate to /Users/<username>/Library/MobileDevice/Provisioning Profiles/ in your mac, find the new provisioning profile and press space to preview - at the bottom of the preview it lists the included certificates.
Hope this helps.
Kind regards,
Panos
--
Re: Another problem about provisioning profiles…
Posted: Thu Jul 25, 2024 11:07 am
by GoneToSail
Thanks Panos,
I attach a screen copy of the provisioning profile, where it seems that everything is normal…
Should I try to generate another development certificate and a new Provisioning Profile ?
Re: Another problem about provisioning profiles…
Posted: Thu Jul 25, 2024 12:23 pm
by LiveCode_Panos
Hello GoneToSail,
Ok, the provisioning profile looks good, indeed it does include the correct certificate.
Next thing to check is:
- In your KeyChain app, does the certificate iOS Development, expiring 2025/05/26, contain a private key? If you can click on the entry to expand it, then you should see a key in the expanded view (if it has one!)
- Have you installed Apple's Intermediate Certificate:
https://www.apple.com/certificateauthor ... DRCAG2.cer - if not, download it and install it (i.e. double-click on it and it should appear in your keychain)
Then quit LC and reopen it and try to build an iOS app again.
Kind regards,
Panos
--
Re: Another problem about provisioning profiles…
Posted: Thu Jul 25, 2024 2:27 pm
by GoneToSail
Thanks Panos,
Cannot trace a private key in my Developer Certificate (pls see 2 screen copies). Do I need one ?
I also attach a screen copy of my Keychain Access window where all certificates seem to be valid (I understand that the "non trusted" mention about the iPhone Developer Certificate is not critical…)
Your help would be much appreciated !
Re: Another problem about provisioning profiles…
Posted: Thu Jul 25, 2024 2:40 pm
by GoneToSail
Panos,
Continuation of my previous message.
As you can see, I have downloaded and installed the Apple's Intermediate Certificate, restarted LC, but I still get the same error message…
Re: Another problem about provisioning profiles…
Posted: Thu Jul 25, 2024 3:52 pm
by bn
GoneToSail wrote: ↑Tue Jul 23, 2024 5:27 pm
I want to install a small app on an iPad, which was generated on a MacBook with Livecode, with the following versions:
MacOS Sonoma 14.4.1
Xcode 15.0.1
Livecode 9.6.11
Hi François,
Could you look into the release notes of your version of LC 9.6.11 if your configuration of Xcode and LC version is supported?
I do not see mention of Xcode 15.0.1 and neither of Sonoma.
Maybe you have to use a later version of LC and a lower version of Xcode. I see only mention of Xcode 15.0. however.
But Panos will clarify this in seconds.
Kind regards
Bernd
Re: Another problem about provisioning profiles…
Posted: Thu Jul 25, 2024 6:27 pm
by LiveCode_Panos
Hello Bernd,
Both Sonoma and Xcode 15.0.1 are supported. For future reference, if an Xcode version X.Y is supported, so are any X.Y.Z versions (e.g. both 15.0 and 15.0.1 are supported)
@GoneToSail
From the screenshot, it does seem like you do have a private key - just click on the arrow at the left of the certificate as it appears in the keychain, and this will expand the view and show the private key that is associated with it.
The message that the certificate is not trusted is the reason why you get that error. The question is why it is not trusted. I am wondering if you are missing any other Apple's certificates in the certificate chain. Is that a new mac?
KInd regards,
Panos
--
Re: Another problem about provisioning profiles…
Posted: Thu Jul 25, 2024 6:35 pm
by LiveCode_Panos
@GoneToSail
It might be worth installing all 4 Apple'S Root certificates from here as well (top left):
https://www.apple.com/certificateauthority/
Kind regards,
Panos
--
Re: Another problem about provisioning profiles…
Posted: Thu Jul 25, 2024 8:30 pm
by GoneToSail
Thanks Panos !
No, it's not a new Mac, I bought it in 2021.
However, some progress indeed !
I downloaded the 4 Apple certificates, and after restarting my Mac and LC, I tried to build a standalone app. I noticed that the full standalone building process was nearly completed until I got the attached message for about 6-7 minutes, which unfortunately ended with the same error message as previously (... could not find a a valid identity to use for the selected profile)
Something is still missing…
Re: Another problem about provisioning profiles…
Posted: Thu Jul 25, 2024 9:04 pm
by istech
Hi GoneToSail,
I had a similar situation like this I had to go into the certificate and manually set it to "always trust". Not sure if this will help but solved my problem.
Regards,
T
Re: Another problem about provisioning profiles…
Posted: Thu Jul 25, 2024 10:04 pm
by GoneToSail
@istech,
Thanks for the advice. I opened my iPhone Developer Certificate in Keychain Access and I could easily remove the "not trusted" mention in the header (see attached screen copy).
However after restarting my Mac and LC, I still get the attached new error message…
Any idea ?
Re: Another problem about provisioning profiles…
Posted: Fri Jul 26, 2024 9:54 am
by LiveCode_Panos
Hello GoneToSail,
Manually tweaking the Trust section of the certificate is not recommended - I would suggest you set it back to "Use System Defaults".
BTW, I noticed you are saving the app in the Documents folder - is that an iCloud-synced folder? If yes, could you try saving the standalone in a different folder, that is not iCloud-synced?
I think you get this error because something in the certificate chain is missing. You should have these certificates:
- Apple Root CA --> in your "System Roots" keychain
- Apple WWDR certificate --> In the "System" keychain. From the screenshot, it looks like this is in your login Keychain. Maybe try copying it across
- iPhone Developer: Name (Team) --> In the login keychain
Kind regards,
Panos
--
Re: Another problem about provisioning profiles…
Posted: Fri Jul 26, 2024 11:49 am
by GoneToSail
Thks Panos,
I have set back the trust param to "use system defaults".
As per your advice, I have put the certificates in their respective keychains (see attachments) using File/Import Items in Keychain Access.
However after restarting my Mac, Xcode and LC, I still get the same message "... could not find a valid identity etc…"
1. Should I delete the other "old" certificates which may not be in their correct location ?
2. As the problem may originate from my Developer certificate, would you suggest that I issue a new certificate and delete the existing one ?
Re: Another problem about provisioning profiles…
Posted: Fri Jul 26, 2024 11:55 am
by GoneToSail
@Panos
Additional information: When my last attempt to build a standalone failed, I tried to save it on a USB key which is not synced…