Page 1 of 2

Load a Standalone onto an iPhone

Posted: Sun Jul 22, 2018 2:38 am
by trags3
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

Re: Load a Standalone onto an iPhone

Posted: Sun Jul 22, 2018 2:36 pm
by Mikey
Use Xcode, then hit shift-command 2 to bring up the device list. Hit the plus and add the app.

Re: Load a Standalone onto an iPhone

Posted: Sun Jul 22, 2018 5:28 pm
by trags3
Thanks Mikey

Re: Load a Standalone onto an iPhone

Posted: Tue Jul 24, 2018 7:25 pm
by trags3
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

Re: Load a Standalone onto an iPhone

Posted: Tue Jul 24, 2018 11:27 pm
by Mikey
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.

Re: Load a Standalone onto an iPhone

Posted: Wed Jul 25, 2018 3:30 pm
by trags3
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

Re: Load a Standalone onto an iPhone

Posted: Wed Aug 01, 2018 2:52 pm
by trags3
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

Re: Load a Standalone onto an iPhone

Posted: Sat Aug 25, 2018 2:47 am
by marksmithhfx
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

Re: Load a Standalone onto an iPhone

Posted: Sat Aug 25, 2018 3:02 am
by marksmithhfx
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.

Re: Load a Standalone onto an iPhone

Posted: Sat Aug 25, 2018 3:18 am
by Mikey
~/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

Re: Load a Standalone onto an iPhone

Posted: Sat Aug 25, 2018 9:36 pm
by marksmithhfx
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

Re: Load a Standalone onto an iPhone

Posted: Sat Aug 25, 2018 10:33 pm
by marksmithhfx
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

Re: Load a Standalone onto an iPhone

Posted: Sun Aug 26, 2018 3:50 am
by Mikey
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.

Re: Load a Standalone onto an iPhone

Posted: Sun Aug 26, 2018 10:29 pm
by jacque
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.

Re: Load a Standalone onto an iPhone

Posted: Mon Aug 27, 2018 3:42 am
by marksmithhfx
Bingo, thanks guys. It is indeed to slow to load the simulator. Jackie, launching the simulator first did the trick.

Mark