Page 1 of 2
IOS Standalone-error: "could not find a valid iden...[SOLVED
Posted: Sun Dec 14, 2014 8:43 pm
by yrlessFrank
Hi,
I'm starting on LiveCode and to test the IOS environment, I wanted to compile and try the hello apps (a button with a box that says "hello")
I followed the sheepherding instruction and from the developer . apple . com got the certificate, created the App identifier, registered the devices and created the profile.
The internal App ID and profile are selected in the Standalone Application Settings.
There is a green square in the Mobile Support Preferences with SDKs: 8.1 simulators: 8.1
When I do the Save as Standalone Application I get the following errors:
"could not find a valid identity to use for the selected profile"
"There was an error while saving the standalone application could not find a valid identity to use for the selected profile"
LiveCode 7.0.1 (rc 3)
Yosemite 10.10.1
Any ideas what I'm doing wrong ?
Françcois
Re: IOS Standalone-error: "could not find a valid identity..
Posted: Mon Dec 15, 2014 2:05 pm
by vedus
You have make a development or distribute profile on developer web page?
in ios apps >provisioning profiles
make a new one.
then open xCode go to preferences.
then Accounts.
if your name is there then click on your name and press the button with "view details"
in the top you see the "Signing identities
and bottom the "provisioning profiles".
If still you have problems then.
Open keychain Access from Utilities
go to certificates and Keys check if is there ?
if is there delete and re-download it..
Re: IOS Standalone-error: "could not find a valid identity..
Posted: Tue Dec 16, 2014 5:46 pm
by arkstar
I'm having the same problem!
Deleted, regenerated, downloaded, and installed new certs, profile, etc. Still getting same error.
Any fixes?
Re: IOS Standalone-error: "could not find a valid identity..
Posted: Tue Dec 16, 2014 6:04 pm
by vedus
arkstar wrote:I'm having the same problem!
Deleted, regenerated, downloaded, and installed new certs, profile, etc. Still getting same error.
Any fixes?
go to certificates and Keys check if is there ?
if is there delete all the keys from apple and the certificates
Close keychain
download them again from apple.
open xcode like i say in my first post and check the identities if is there.
Re: IOS Standalone-error: "could not find a valid identity..
Posted: Tue Dec 16, 2014 8:43 pm
by yrlessFrank
Ok
From the suggestion, I created an IOS project in Xcode and the signing issue became apparent.
I went back and fiddled with the signing process until Xcode was happy.
Now the Save as Standalone Application goes all the way and tells me "Standalone application saved successfully"
Now what ?
The Test button is greyed out and I can't find a way to invoke the IOS simulator.
In the directory where the standalone was compiled, there is a file I can't execute.
When I double click I get the following message:
You can't open the application "Hello"
because it is not supported on this type of Mac.
I tried with Xcode without any luck.
Thanks in advance for your input.
François
Re: IOS Standalone-error: "could not find a valid identity..
Posted: Tue Dec 16, 2014 9:27 pm
by vedus
yrlessFrank wrote:Ok
From the suggestion, I created an IOS project in Xcode and the signing issue became apparent.
I went back and fiddled with the signing process until Xcode was happy.
Now the Save as Standalone Application goes all the way and tells me "Standalone application saved successfully"
Now what ?
The Test button is greyed out and I can't find a way to invoke the IOS simulator.
In the directory where the standalone was compiled, there is a file I can't execute.
When I double click I get the following message:
You can't open the application "Hello"
because it is not supported on this type of Mac.
I tried with Xcode without any luck.
Thanks in advance for your input.
François
Do you have the sdk path in the preferences?
if yes then.
1> open xcode.
2 > go to menu > Window then >devices
make a new device
close xcode
open LC and check the test btn..
Hope that help
Re: IOS Standalone-error: "could not find a valid identity..
Posted: Tue Dec 16, 2014 10:13 pm
by yrlessFrank
Thanks for the quick response.
My IOS SDKs in Preferences is set to /Applications/Xcode.app/Contents/Developer
If I try to Add entry, the browsing windows doesn't let me move pass the Xcode directory (I click on Xcode to go deeper but it goes back to Preferences)
On the Xcode side, I have recreated a device and used it for the Xcode project I created and everything works.
Still have the Test button greyed out.
François
Re: IOS Standalone-error: "could not find a valid identity..
Posted: Wed Dec 17, 2014 5:35 pm
by jacque
Did you choose a test target from the development menu?
You don't need to build a standalone to test in the simulator, the stack alone is enough. The standalone app can only be opened on an iOS device and needs to be moved there and installed.
Re: IOS Standalone-error: "could not find a valid iden...[SO
Posted: Wed Dec 17, 2014 9:34 pm
by yrlessFrank
Thanks Jacqueline.
I was going nuts looking at the wrong places.
It was working on another Mac MINI in the office.
Now I can start making my apps.
Thank you for your kind patience with this newbie.
François
Re: IOS Standalone-error: "could not find a valid iden...[SO
Posted: Fri Dec 26, 2014 10:11 pm
by arkstar
Hi. I had done that already. I got it to compile once, and when I tried to upload to Apple, it said I was missing a code signing cert. But I couldn't compile again after that.
Re: IOS Standalone-error: "could not find a valid iden...[SO
Posted: Tue Dec 30, 2014 3:56 am
by SusanB
I'm having problems here, too. I've deleted and replaced. Then in Xcode preferences > Accounts > my name > under Signing Identities it has Platform: IOS and Status: Missing private key.Is this why it complains it can't find a valid identity to use for the selected profile when a try to save as a standalone? The Provisioning Profiles are there and the Certificates appear in keychain access. I would be so grateful for any help on this.
Re: IOS Standalone-error: "could not find a valid iden...[SO
Posted: Sun Jan 04, 2015 2:33 am
by FireWorx
Susan B are you building a standalone to load via a usb cable onto an iDevice (development) or building an app to submit to the Apple Istore (distribution). You need to have created a certificate in the keychain and finished it up on the Provisioning Portal of the Apple Developer web site for each purpose prior to passing each faze. When you build your standalone it should ask you which certificate to use. Make sure you select the correct one.
Dave
Re: IOS Standalone-error: "could not find a valid iden...[SO
Posted: Sun Jan 04, 2015 3:30 am
by SusanB
Thank you, Dave. I do have both a development and a distribution certificate and have used them in the past to test and upload to the App store. After I added a new device to my list of devices is when things broke down. I deleted and redownloaded my certificates and Provisioning Profiles. The certificates show up in the keychain, but don't have triangles on the left to show their key, and in XCode preferences, the IOS Development signing identity is listed, but its Status is "Missing private key". That must explain the "could not find a valid identity to use for the selected profile" pops up when I try to save as a standalone. In the mean time, anybody upgrading to IOS 8 for iPhone will not be able to use my App. Did I miss a step somewhere?
Re: IOS Standalone-error: "could not find a valid iden...[SO
Posted: Sun Jan 04, 2015 11:13 pm
by FireWorx
Hmmm.... In My Keychain on my mac I have a certificate named iPhone Developer MyFirstName MyLastname (345555SMAS) there is a triangle next to it that when clicked shows a private key below it. The private key is named MyFirstName MyLastname Dev Key. If you click on the private key it shows its kind as private key, RSA, 2048-bit.
I'm running OS X 10.10.1 Yosemite and having best luck building apps for IOS 8.1 with LiveCode 6.7 and X-code 6.1.1 although I am going to try LC 6.7.1 .
Livecode 7 has bugs that won't run my software so I dumped it for now. You can still build for IOS 8 with LC 6.7.
Dave
Re: IOS Standalone-error: "could not find a valid iden...[SO
Posted: Tue Jan 06, 2015 11:12 pm
by SusanB
Thanks, Dave. I tried with LC 6.7.1 and XCode 6.1.1. Same results, except I had to delete my Apple ID and add it back into XCode because 6.1.1 didn't recognize me as being a part of a development team. Now I'm going to look into revoking my certificate (scary). I have submitted a request for tech support on this to Apple. We'll see.....