IOS Standalone-error: "could not find a valid iden...[SOLVED

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

yrlessFrank
Posts: 4
Joined: Sun Dec 14, 2014 5:23 pm

IOS Standalone-error: "could not find a valid iden...[SOLVED

Post by yrlessFrank » Sun Dec 14, 2014 8:43 pm

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
Last edited by yrlessFrank on Wed Dec 17, 2014 9:23 pm, edited 1 time in total.

vedus
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 153
Joined: Tue Feb 26, 2013 9:23 am

Re: IOS Standalone-error: "could not find a valid identity..

Post by vedus » Mon Dec 15, 2014 2:05 pm

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..

arkstar
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 70
Joined: Mon Dec 21, 2009 1:51 am

Re: IOS Standalone-error: "could not find a valid identity..

Post by arkstar » Tue Dec 16, 2014 5:46 pm

I'm having the same problem!

Deleted, regenerated, downloaded, and installed new certs, profile, etc. Still getting same error.
Any fixes?
Rob Glassman
ArkStar

vedus
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 153
Joined: Tue Feb 26, 2013 9:23 am

Re: IOS Standalone-error: "could not find a valid identity..

Post by vedus » Tue Dec 16, 2014 6:04 pm

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.

yrlessFrank
Posts: 4
Joined: Sun Dec 14, 2014 5:23 pm

Re: IOS Standalone-error: "could not find a valid identity..

Post by yrlessFrank » Tue Dec 16, 2014 8:43 pm

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

vedus
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 153
Joined: Tue Feb 26, 2013 9:23 am

Re: IOS Standalone-error: "could not find a valid identity..

Post by vedus » Tue Dec 16, 2014 9:27 pm

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

yrlessFrank
Posts: 4
Joined: Sun Dec 14, 2014 5:23 pm

Re: IOS Standalone-error: "could not find a valid identity..

Post by yrlessFrank » Tue Dec 16, 2014 10:13 pm

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

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7389
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: IOS Standalone-error: "could not find a valid identity..

Post by jacque » Wed Dec 17, 2014 5:35 pm

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.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

yrlessFrank
Posts: 4
Joined: Sun Dec 14, 2014 5:23 pm

Re: IOS Standalone-error: "could not find a valid iden...[SO

Post by yrlessFrank » Wed Dec 17, 2014 9:34 pm

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

arkstar
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 70
Joined: Mon Dec 21, 2009 1:51 am

Re: IOS Standalone-error: "could not find a valid iden...[SO

Post by arkstar » Fri Dec 26, 2014 10:11 pm

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.
Rob Glassman
ArkStar

SusanB
Posts: 111
Joined: Mon Nov 07, 2011 4:10 am
Contact:

Re: IOS Standalone-error: "could not find a valid iden...[SO

Post by SusanB » Tue Dec 30, 2014 3:56 am

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.

FireWorx
Posts: 362
Joined: Wed Sep 07, 2011 9:39 pm

Re: IOS Standalone-error: "could not find a valid iden...[SO

Post by FireWorx » Sun Jan 04, 2015 2:33 am

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

SusanB
Posts: 111
Joined: Mon Nov 07, 2011 4:10 am
Contact:

Re: IOS Standalone-error: "could not find a valid iden...[SO

Post by SusanB » Sun Jan 04, 2015 3:30 am

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?

FireWorx
Posts: 362
Joined: Wed Sep 07, 2011 9:39 pm

Re: IOS Standalone-error: "could not find a valid iden...[SO

Post by FireWorx » Sun Jan 04, 2015 11:13 pm

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

SusanB
Posts: 111
Joined: Mon Nov 07, 2011 4:10 am
Contact:

Re: IOS Standalone-error: "could not find a valid iden...[SO

Post by SusanB » Tue Jan 06, 2015 11:12 pm

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.....

Post Reply