New app wants to replace an existing app on iPad

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

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

Re: New app wants to replace an existing app on iPad

Post by jacque » Thu Jul 07, 2016 6:00 am

What you've done should work. Did you refresh profiles in XCode?

Look at the contents of the standalone app and check the info.plist file. Does it show the right info?
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

joel.epsteinBUS31vi
Posts: 135
Joined: Thu Sep 13, 2012 10:25 pm

Re: New app wants to replace an existing app on iPad

Post by joel.epsteinBUS31vi » Thu Jul 07, 2016 3:30 pm

Sorry to drag this on, but I'm still having problems.

Interestingly enough, when I look at my app's contents and dig into the "embedded.mobilprovision" file, I do see that the correct app ID is present. However, the "info.plist" file has my identifier as: "com.yourcompany.${PRODUCT_NAME:identifier}" and my version at 1.0 - and this is not what I specified in the standalone app settings in LiveCode.

It seems as if LiveCode is not writing the info.plist file correctly. However, I tried to change those values and in the info.plist file and install the app on my device, and I get an error: "The application does not have a valid signature."

Hmmm... Does any of this provide any additional clues?

I'd be terribly grateful for any advice folks might have.

Thanks

Joel

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 861
Joined: Fri Feb 06, 2015 4:03 pm

Re: New app wants to replace an existing app on iPad

Post by LiveCode_Panos » Fri Jul 08, 2016 4:54 pm

Hi Joel,

Which version of LiveCode are you using? Could it be the case that you have accidentally (or not) modified the IDE stack "revSaveAsIosStandalone"? Have you tried deleting the existing version of LiveCode and installing a fresh copy?

http://downloads.livecode.com/livecode/

Best,
Panos
--

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

Re: New app wants to replace an existing app on iPad

Post by jacque » Fri Jul 08, 2016 5:00 pm

Since the plist isn't reflecting changes, it sounds like a bug you should report. But before you do, make sure you are using the latest version of LC, it may have been fixed.

There are workarounds for now. The easiest is to manually delete the old app from the device before trying to install the new. EDIT: Never mind, this doesn't apply to your problem.

Or you can try including a corrected plist in the Copy Files pane of standalone settings. On Android this works to replace the default manifest, I haven't tried it on iOS but it may do the same thing.

Third, you can edit the plist in the built standalone, as you already tried to do. Altered apps can't be installed because the signature no longer matches, so you need to re-sign the app manually. There are a series of terminal commands to do that, but it's easier to use a utility like AppWrapper.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

joel.epsteinBUS31vi
Posts: 135
Joined: Thu Sep 13, 2012 10:25 pm

Re: New app wants to replace an existing app on iPad

Post by joel.epsteinBUS31vi » Fri Jul 08, 2016 10:37 pm

Hi all -

With everyone's help, I've come to a reasonable workaround. By manually editing the info.plist and then including it in a subsequent build (via the copy files pane), I'm able to deploy the app to my device.

However, I can fairly confidently say that for me, both LiveCode 8.0 and 8.1.0 (dp2) are not creating an info.plist that has the values for version and Identifier as specified in the Standalone settings pane.

Joel

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

Re: New app wants to replace an existing app on iPad

Post by jacque » Fri Jul 08, 2016 11:01 pm

Glad it worked for you. I think the team would appreciate a bug report about the problem.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply