Beginners guide to INFO.PLIST

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
KimD
Posts: 225
Joined: Wed Jul 08, 2015 5:51 am

Beginners guide to INFO.PLIST

Post by KimD » Wed Jun 29, 2016 12:30 am

Where can I find a beginners guide to editing the info.plist file (for Livecode apps)? I've already found a bunch of posts in the forum, but they all seem to assume an existing level of knowledge about info.plist. I've found the Livecode users guide. That was helpful but it didn't answer my specific questions.

What I'm trying to achieve:

1) ITunes Connect is telling me that I need to "If your build is not using encryption, use the key string value in your Info.plist file so you don't have to provide export compliance information with your next build. <key>ITSAppUsesNonExemptEncryption</key><false/>". From the Livecode users guide I've worked out how to open the info.plist file in the Xcode editor - but I can't see anywhere to set an ITSAppUsesNonExemptEncryption value.

2) I had been wondering how I restrict my app to iPhones only. My app is designed for a small screen. It will look "lost" on an iPad. While searching the forums for info on Q1 - I've started to realise that the Info.plist file MAY be the tool that I need to restrict my app to iPhones only.

Thanks in advance

Kim

KimD
Posts: 225
Joined: Wed Jul 08, 2015 5:51 am

Re: Beginners guide to INFO.PLIST

Post by KimD » Wed Jun 29, 2016 12:42 am

Please scratch my 2nd bullet point under "Trying to achieve". I've just re-read the options under IOS Standalone Settings. Restricting to iPhone (and ipOd) is covered there.

ValiantCuriosity
Posts: 128
Joined: Thu Jun 30, 2016 3:08 am

Re: Beginners guide to INFO.PLIST

Post by ValiantCuriosity » Sat Jul 02, 2016 3:20 am

Hi Kim,
Please forgive me. I may be off base as to what you are asking. I'm not sure this answer will help you, but you can set the encryption after uploading your .ipa(app) to AppleConnect. I haven't figured out how to add Apple's "key" to Xcode yet myself. The HowTo isn't clearly described on the AppleConnect site. I suspect that an Xcode update will solve the issue for us, but until then, for me, it is just easier to give the answer on AppleConnect.

I'm new to LC, so this may not be what your are asking, but you may want to try compiling and uploading your app. Use Testflight to test the app. Then select the new uploaded version of your app and follow the prompts to answer the encryption questions.

I've search Stackoverflow and haven't found an answer for this issue nor have I found one in Apple's docs. If you find an answer that is specific would you let us know?

Good Luck,
-Rachel
May I never be cured of my curiosity! :D

KimD
Posts: 225
Joined: Wed Jul 08, 2015 5:51 am

Re: Beginners guide to INFO.PLIST

Post by KimD » Mon Jul 04, 2016 12:46 am

Hi Rachel

Thanks for the info. I've got about 6 months LC experience, but I'm completely new to everything Apple related. I'm probably un-neccessarily spooked by Apple's warning text (but they do have rather a intimidating reputation).

1) I'm at the stage of preparing my app for submission. My app does use encryption, but I believe that it meets the criteria for EXEMPT encryption. If I go through and tick the "I believe its EXEMPT encryption box" on iTunes connect, then I get the "If your build is not using encryption, use the key string value in your Info.plist file so you don't have to provide export compliance information with your next build.
<key>ITSAppUsesNonExemptEncryption</key><false/>".

So - it seems to me that I have to put <key>ITSAppUsesNonExemptEncryption</key><false/> into my info.plist

2) I've been in contact with the AMAZINGLY HELPFUL support team at Livecode. What they have worked out for me is:
- Navigate to LC Application Folder / Contents / Tools / Runtime / iOS / Device-8_2
- Copy the settings.plist file, and paste it to my desktop
- Open Desktop / settings.plist with Atom plist editor (which I had to download first)
- Insert <key>ITSAppUsesNonExemptEncryption</key><false/> into settings.plist
- Save
- LC > Myapp > Standalone App Settings - add the desktop settings.plist file into the Copy Files
- LC > Myapp > Build Standalone Application

I don't think that I'll know whether this will make Apple happy until I submit my app for review. I'll report back then.

Regards

Kim

dave.kilroy
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 858
Joined: Wed Jun 24, 2009 1:17 pm
Contact:

Re: Beginners guide to INFO.PLIST

Post by dave.kilroy » Fri Oct 14, 2016 1:34 pm

Thanks for info on this trick Kim, I've just tried it prior to building an app and submitting it to iTunesConnect - and it's looking good!

I've only submitted it for TestFlight internal testing as I already have another build waiting for Beta App Review and don't want to mess that up by submitted another one just yet. But according to the little pop-up table in the TestFlight internal Testing section the build shows as having "Approved" Export Compliance

So nice job to both you and LiveCode support!

Dave

PS: I did the above with LiveCode 8.1.1(rc2) on OS X 10.11.6
"...this is not the code you are looking for..."

Post Reply