Why can't I test my program with iOS simulator?

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
zhangyouwen
Posts: 11
Joined: Tue Mar 31, 2015 2:14 pm

Why can't I test my program with iOS simulator?

Post by zhangyouwen » Tue Apr 21, 2015 2:04 pm

I am tying to test my app with iOS simulator but the test buttons are all grey. I have the latest xCode 6.3 and put it into livecode's preference. Also I checked build for iOS at standalone setting. However the test buttons are still grey and I could not even save my program as standalone application. I am using livened 8.0(d2). Please help me out!

LCNeil
Livecode Staff Member
Livecode Staff Member
Posts: 1223
Joined: Wed Oct 03, 2012 4:07 pm

Re: Why can't I test my program with iOS simulator?

Post by LCNeil » Tue Apr 21, 2015 2:19 pm

Hi zhangyouwen,

LiveCode is not yet compatible with Xcode 6.3 so you will not be able to test simulator deployment from this version. We should have a new release available shortly. Until this is ready, please use the latest 7.0.* release of LiveCode (8.0 has some deployment issues) and Xcode 6.2

Older version of Xcode can be downloaded from the iOS developer downloads portal here-

https://developer.apple.com/downloads/index.action

Kind Regards,

Neil Roger
--
LiveCode Support Team ~ http://www.livecode.com
--

zhangyouwen
Posts: 11
Joined: Tue Mar 31, 2015 2:14 pm

Re: Why can't I test my program with iOS simulator?

Post by zhangyouwen » Fri Apr 24, 2015 3:41 pm

Thank you, but I still couldn't test it with Xcode 6.2 using Livecode 7.0.4. Even when I am trying to save it as standalone app livecode answered"could not find a valid identity to use for the selected profile". What can I do to fix this?
LCNeil wrote:Hi zhangyouwen,

LiveCode is not yet compatible with Xcode 6.3 so you will not be able to test simulator deployment from this version. We should have a new release available shortly. Until this is ready, please use the latest 7.0.* release of LiveCode (8.0 has some deployment issues) and Xcode 6.2

Older version of Xcode can be downloaded from the iOS developer downloads portal here-

https://developer.apple.com/downloads/index.action

Kind Regards,

Neil Roger
--
LiveCode Support Team ~ http://www.livecode.com
--

LCNeil
Livecode Staff Member
Livecode Staff Member
Posts: 1223
Joined: Wed Oct 03, 2012 4:07 pm

Re: Why can't I test my program with iOS simulator?

Post by LCNeil » Fri Apr 24, 2015 6:01 pm

You will receive this error when trying to build an iOS standalone and there is a discrepancy in your iOS development setup.The sound like a certificate issue but I would double check both your profile and certificates are correct and valid.

Its worth noting that you should not receive this error when deploying to the simulator as no provisioning profile is required for this form of testing

Kind Regards,

Neil Roger
--
LiveCode Support Team ~ http://www.livecode.com
-

Gage
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 224
Joined: Tue Mar 26, 2013 8:59 pm

Re: Why can't I test my program with iOS simulator?

Post by Gage » Sat May 02, 2015 2:48 am

Neil,

I have this problem, as well.

I am trying to create an iOS standalone in both LiveCode ver 6.7 and 7.0.3, and LiveCode told me that I needed Xcode version 6.1, which contains the iOS 8.1 SDK. After deleting Xcode 6.3 and reverting to Xcode 6.1.1, which I verified does contain the right SDK, I am getting the "could not find a valid identity to use for the selected profile" error.

I have triple-checked that my Internal App ID was copy/pasted correctly from my Apple Developer account, and I selected the profile I made from the Apple Developer portal. What else could be mismatched to cause this error?

Thanks,
Phil E.

LCNeil
Livecode Staff Member
Livecode Staff Member
Posts: 1223
Joined: Wed Oct 03, 2012 4:07 pm

Re: Why can't I test my program with iOS simulator?

Post by LCNeil » Tue May 05, 2015 10:37 pm

Hi Phil,

I've deleted your new topic just to keep everything in the one place.

First, I would recommend upgrading to LiveCode 7.0.5 as this is now compatible with Xcode 6.3.

The could not find a valid identity to use for the selected profile generally means that a valid production certificate is not valid/present for the profile you are trying to use. I would double check that this is present in your key chain.

If everything looks ok, then the easiest thing to do would be to remove all profiles/certificates from your system and re-download them directly from your iOS develpoer account. This will ensure you are using the most recent and correct versions

Kind Regards,

Neil Roger
--
LiveCode Support Team ~ http://www.livecode.com
-

Gage
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 224
Joined: Tue Mar 26, 2013 8:59 pm

Re: Why can't I test my program with iOS simulator?

Post by Gage » Wed May 06, 2015 5:08 am

Hello Neil,

Thanks for your reply, and yes that's fine about the thread.

As for the versions, I went ahead and upgraded to LiveCode 7.0.5 rc2 and upgraded my Xcode to 6.3. I have had the same results. I even went ahead and recreated my Certificate and Provisioning Profile. Again, same results.

I have now deleted all Profiles and Certificates and Certificate Signing Requests from my computer to try and see if that somehow helps, but my hopes are not high.

Where do I look next?

Thanks,
Phil E.

Gage
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 224
Joined: Tue Mar 26, 2013 8:59 pm

Re: Why can't I test my program with iOS simulator?

Post by Gage » Wed May 06, 2015 5:55 am

Update:

I got it to give me a different error:

"code signing failed with Warning: --resource-rules has been deprecated in Mac OS X >= 10.10!
iPhone Developer: *Name* (*Code*): ambiguous (matches "iPhone Developer" *Name* (*Code*)" in *filepath*)"

What does this mean?

Thanks,
Phil

Gage
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 224
Joined: Tue Mar 26, 2013 8:59 pm

Re: Why can't I test my program with iOS simulator?

Post by Gage » Wed May 06, 2015 7:22 am

Never mind - I realized I needed to learn a little more about the Keychain. Went ahead and deleted a key that had been copied there, and things seem to be working well.

Thanks Neil for your help!

Phil E.

LCNeil
Livecode Staff Member
Livecode Staff Member
Posts: 1223
Joined: Wed Oct 03, 2012 4:07 pm

Re: Why can't I test my program with iOS simulator?

Post by LCNeil » Wed May 06, 2015 10:47 am

Hi Phil,

Its great to hear you are up and running :)

Kind Regards,

Neil Roger
--
LiveCode Support Team ~ http://www.livecode.com
-

sab2
Posts: 6
Joined: Sat Nov 22, 2014 2:44 pm

Re: Why can't I test my program with iOS simulator?

Post by sab2 » Tue Jan 19, 2016 4:41 am

I'm also trying to save it as standalone app livecode answered"could not find a valid identity to use for the selected profile". What can I do to fix this?
I'm using LiveCode 7.0.1 and Xcode 6.1.1. The iOS 7.1 simulator worked. My problem started in the new year. My apps no longer available on iPads.(blank icon left) I went to reload the file and get this error - a valid provisioning profile for this executable was not found.(IOs team provisioning profile expires April 26, 2016) The apps were built using LC 6.7 so i installed 7.0.1(rc2). Now I cannot save as a standalone - getting error "could not find a valid identity to use for selected profile". So I went back to LC 6.7 and i get error " iOS device build requires the iOS 7.1 sdk platform to be installed with Xcode 5.1.
Please let me know which version of LC works with which version of Xcode and how can i reload my file back onto iPads.
I made 6 test apps for testing on 6 iPads they all worked fine until January. Very frustrating.Thanks

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Why can't I test my program with iOS simulator?

Post by Klaus » Tue Jan 19, 2016 12:13 pm

Hi Sue,

take a look at this compatibility list:
http://forums.livecode.com/phpBB2/viewt ... 04#p136604


Best

Klaus

sab2
Posts: 6
Joined: Sat Nov 22, 2014 2:44 pm

Re: Why can't I test my program with iOS simulator?

Post by sab2 » Thu Jan 21, 2016 10:15 pm

Thank you for the compatibility list. Still cannot save my original files as standalone app in LC 7.0.1 or LC 6.7(original built in 6.7).When saving as standalone still get this error "could not find a valid identity to use for selected profile". And when trying to load the original file back onto iPad get error. valid provisioning profile for this executable not found.
If i update all to LiveCode 7.1.1 - Xcode 7.1- Mac OS 10.10/10.11 – iOS 9.1 and redo profile certificates, will i be able to open original stack in LC , save a standalone and load to iPad.

sab2
Posts: 6
Joined: Sat Nov 22, 2014 2:44 pm

Re: Why can't I test my program with iOS simulator?

Post by sab2 » Thu Jan 21, 2016 11:35 pm

sab2 wrote:Thank you for the compatibility list. Still cannot save my original files as standalone app in LC 7.0.1 (rc2)or LC 6.7(original built in 6.7).When saving as standalone still get this error "could not find a valid identity to use for selected profile". And when trying to load the original file back onto iPad get error. valid provisioning profile for this executable not found.
If i update all to LiveCode 7.1.1 - Xcode 7.1- Mac OS 10.10/10.11 – iOS 9.1 and redo profile certificates, will i be able to open original stack in LC , save a standalone and load to iPad.
Update: I can now save as standalone in LC 7.0.1(rc2) but when loading to device i get error - application does not specify CFBundleExecutable. How do i solve this error?? Thanks

sab2
Posts: 6
Joined: Sat Nov 22, 2014 2:44 pm

Re: Why can't I test my program with iOS simulator?

Post by sab2 » Fri Jan 22, 2016 2:23 pm

If I update all to LiveCode 7.1.1 - Xcode 7.1- Mac OS 10.10/10.11 – iOS 9.1 and have valid profile certificates, will I be able to open (app original stack LC files built using LC 6.7) in updated LC , save a standalone and load to iPad? Thank you

Post Reply