Load a Standalone onto an iPhone

Getting into LiveCode for iOS? Ask your questions here.

Moderators: heatherlaine, Klaus, FourthWorld, robinmiller, kevinmiller

Post Reply
trags3
Posts: 233
Joined: Wed Apr 09, 2014 1:58 am
Location: Las Vegas, NV

Load a Standalone onto an iPhone

Post by trags3 » Sun Jul 22, 2018 2:38 am

I know this is got to be something really basic but....
I have created an app for iPhone.
I successfully saved the file as a StandAlone.
My iPhone is on the list of devices in my Development Certificate.

I don't know how to get the app installed on my iPhone to be able to test it on a device.

Tom

Mikey
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 631
Joined: Fri Jun 27, 2008 9:00 pm

Re: Load a Standalone onto an iPhone

Post by Mikey » Sun Jul 22, 2018 2:36 pm

Use Xcode, then hit shift-command 2 to bring up the device list. Hit the plus and add the app.

trags3
Posts: 233
Joined: Wed Apr 09, 2014 1:58 am
Location: Las Vegas, NV

Re: Load a Standalone onto an iPhone

Post by trags3 » Sun Jul 22, 2018 5:28 pm

Thanks Mikey

trags3
Posts: 233
Joined: Wed Apr 09, 2014 1:58 am
Location: Las Vegas, NV

Re: Load a Standalone onto an iPhone

Post by trags3 » Tue Jul 24, 2018 7:25 pm

OK, Now everything seems to work until I drag the executable onto my test device.
I am using LC 9.0.1 (rc 1) on a MacBook Air with High Sierra v 10.13.6 and Xcode 9.4.1
I have an iPhone 8+ with iOS 11.4.1 (My Test Device)
I have deleted ALL mobileprovision Profiles except the one I use when saving as standalone app from my Mac.
The Standalone is built successfully. When I drag the app to my connected device in Xcode I get the error message "App Installation failed A valid provisioning profile for this executable was not found"

Any suggestions?

Thanks
Tom

Mikey
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 631
Joined: Fri Jun 27, 2008 9:00 pm

Re: Load a Standalone onto an iPhone

Post by Mikey » Tue Jul 24, 2018 11:27 pm

I have a QR in with LC regarding old provisioning profiles gumming up the works.
First, check to make sure that combo of XC and LC are ok with each other (check the release notes for LC on which XC version you should be using).

Here's a pretty good procedure to follow next for testing:
https://stackoverflow.com/questions/331 ... s-executab

I want you to delete all provisioning profiles from your Mac manually at the location on the stackoverflow site, then use XC to reinstall them. It will only install the current ones. Then do a build in LC again and try to install it. Let us know what you get.

trags3
Posts: 233
Joined: Wed Apr 09, 2014 1:58 am
Location: Las Vegas, NV

Re: Load a Standalone onto an iPhone

Post by trags3 » Wed Jul 25, 2018 3:30 pm

Hi Mikey, Thanks for the Tip.
I already deleted all provisioning profiles except the latest one (which was new).
The Standalone at least then could be generated.
The release notes tell me that LC 9.0.1 (rc 1) and XC 9.4.1 are not yet compatible.
Perhaps more significantly the iOS version on my test devices is 11.4.1 and is not yet fully supported/tested with LC 9.0.1.
The problem I am now having is installing the App on the device.
I'll wait to get a test device with an older iOS version probably next week.
In the future I'll pay attention to the release notes!
Thanks, I'll keep you posted.
Tom

trags3
Posts: 233
Joined: Wed Apr 09, 2014 1:58 am
Location: Las Vegas, NV

Re: Load a Standalone onto an iPhone

Post by trags3 » Wed Aug 01, 2018 2:52 pm

The Error Message I get when trying to install the Standalone on my iPhones (using Xcode) is:

on My iPhone 8+ I get the msg "A valid provisioning profile for this executable was not found"

On my iPhone 6S I get the msg "The entitlements specified in your appl;ication's Code Signing Entitlements file are invalid, not permitted, or do not match those specified in your provisioning profile (0xE8008016)."

The iPhone 6s is running iOS 11.4
The iPhone 8+is running iOS 11.4.1

Using LC 9.0.1 (RC 1) (Wont generate standalone with LC 9.0.0.)

Mac OS is High Sierra 10.13.6

Xcode ver 9.4.1

marksmithhfx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 483
Joined: Thu Nov 13, 2008 6:48 am
Location: Winnipeg, Manitoba

Re: Load a Standalone onto an iPhone

Post by marksmithhfx » Sat Aug 25, 2018 2:47 am

Ok, i just got the same error while trying to transfer a file from my mac to iPhone. Anyone know where to start debugging this one???

The entitlements specified in your application’s Code Signing Entitlements file are invalid, not permitted, or do not match those specified in your provisioning profile. (0xE8008016).

Thanks
Mark
macOS 10.13.6 High Sierra, Xcode 9.4, LC 9.0.1, iOS 11.4.1
Targets: Mac, iOS

marksmithhfx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 483
Joined: Thu Nov 13, 2008 6:48 am
Location: Winnipeg, Manitoba

Re: Load a Standalone onto an iPhone

Post by marksmithhfx » Sat Aug 25, 2018 3:02 am

While I am here and on the topic, how does LC know where to find your provisioning profile? and which one to use? When I look in my downloads folder I see 3 different copies of the same file...

IOS_Team_Provisioning_Profile-3.mobileprovision Today at 8:32
IOS_Team_Provisioning_Profile-2.mobileprovision Feb 9, 2018
IOS_Team_Provisioning_Profile.mobileprovision Dec 1, 2017

But in LC in the Profile section of IOS I see just "IOS_Team_Provisioning_Profile"

So I decided to delete the oldest two, rename the newest one to "IOS_Team_Provisioning_Profile" and recompile. Same result.
macOS 10.13.6 High Sierra, Xcode 9.4, LC 9.0.1, iOS 11.4.1
Targets: Mac, iOS

Mikey
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 631
Joined: Fri Jun 27, 2008 9:00 pm

Re: Load a Standalone onto an iPhone

Post by Mikey » Sat Aug 25, 2018 3:18 am

~/Library/MobileDevices/Provisioning Profiles
Delete all of them
Launch XCode
Hit command-comma to bring up the settings
Second tab is accounts
Download Manual Profiles

marksmithhfx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 483
Joined: Thu Nov 13, 2008 6:48 am
Location: Winnipeg, Manitoba

Re: Load a Standalone onto an iPhone

Post by marksmithhfx » Sat Aug 25, 2018 9:36 pm

Thanks Mikey, but nope, that didn't work. Frustrated, I just let it sit for awhile. This morning I decided to review all the things I had done differently that might have contributed to the problem. The first was the simplest: I had checked the "Beta version" box in the application settings. What if I was to uncheck that? (In my mind, since this was the very first version of the program, it was definitely beta. Why not declare it as such?). Anyway, problem solved. I obviously have some reading to do to find out what that "beta version" checkbox does.

Thanks for the advice and help though, It kept my hope alive, and I learned something about installing profiles :)

M
Last edited by marksmithhfx on Sat Aug 25, 2018 10:34 pm, edited 2 times in total.
macOS 10.13.6 High Sierra, Xcode 9.4, LC 9.0.1, iOS 11.4.1
Targets: Mac, iOS

marksmithhfx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 483
Joined: Thu Nov 13, 2008 6:48 am
Location: Winnipeg, Manitoba

Re: Load a Standalone onto an iPhone

Post by marksmithhfx » Sat Aug 25, 2018 10:33 pm

Now that I have it running on my iPhone 6s, I have another question errgh, problem. I thought I would try it on the Xcode simulator. So I followed along with Elanor's instructions, a screen comes up that looks like an iPhone 5s 11.4 (which is what it was compiled for) and it says Launching App... but it never launches anything (and I get warning's that it is taking a long time, "Do I want to continue?"). Any suggestions?

Mark
macOS 10.13.6 High Sierra, Xcode 9.4, LC 9.0.1, iOS 11.4.1
Targets: Mac, iOS

Mikey
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 631
Joined: Fri Jun 27, 2008 9:00 pm

Re: Load a Standalone onto an iPhone

Post by Mikey » Sun Aug 26, 2018 3:50 am

Continue. The simulator can be slow to launch. Sometimes you have to abort it back to the home screen and then try again. I think this is a simulator issue not a LC issue.

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4624
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Load a Standalone onto an iPhone

Post by jacque » Sun Aug 26, 2018 10:29 pm

I had the same problem recently. If Continue doesn't work, close and reload the simulator image fully before trying to test the app. It seems to work more reliably if it is already running before LC tries to use it.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

marksmithhfx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 483
Joined: Thu Nov 13, 2008 6:48 am
Location: Winnipeg, Manitoba

Re: Load a Standalone onto an iPhone

Post by marksmithhfx » Mon Aug 27, 2018 3:42 am

Bingo, thanks guys. It is indeed to slow to load the simulator. Jackie, launching the simulator first did the trick.

Mark
macOS 10.13.6 High Sierra, Xcode 9.4, LC 9.0.1, iOS 11.4.1
Targets: Mac, iOS

Post Reply

Return to “iOS Deployment”