change info.plist

  • 1
  • Question
  • Updated 4 years ago
so now that I have my export compliance doc approved through apple they gave me a key that I should add to all my builds. Problem is that I can only find documentation on how to do this via xcode but we didn't use excode we used dreamweaver to build our app and upload it to phone gap build. Any ideas on how or where I insert this into my build to upload to phonegap build so that it exports to the .ipa file?
Photo of Vanessa Byrem-Tangy

Vanessa Byrem-Tangy

  • 42 Posts
  • 0 Reply Likes
  • confused

Posted 4 years ago

  • 1
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@Vanessa

The config-file element in the config.xml should help you add this.

Docs -> Configuring -> Config File Elements -> iOS

If can be a bit tricky, so let us know how it is going.
Jesse
Photo of Joe Velocci

Joe Velocci

  • 10 Posts
  • 0 Reply Likes
Hey Jesse I don't see any corresponding preference code in the PGB documentation. I'm assuming it wants to follow the syntax

If so, can you please let me know what pref name I should be using. Thanks!
Photo of Joe Velocci

Joe Velocci

  • 10 Posts
  • 0 Reply Likes
Hey Jesse I don't see any corresponding preference code in the PGB documentation. I'm assuming it wants to follow the syntax

<preference name="NAME-versionCode" value="KEY" />

If so, can you please let me know what pref name I should be using. Thanks!
Photo of Joe Velocci

Joe Velocci

  • 10 Posts
  • 0 Reply Likes
I mean

<preference name="NAME" value="KEY" />
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@Joe,
START HERE: Docs

Then, Docs -> Configuring -> Preferences

There are other preferences. Each plugin, that has preferences available, will state so in the plugin documentation.

Is this what you were looking for?
If not, let us know.

If you need to build the iOS preference, use the config-file documentaiton list at the top of this thread.

Jesse
Photo of Joe Velocci

Joe Velocci

  • 10 Posts
  • 0 Reply Likes
Hey Jesse,

Apple told us to do this:

Use the key string value in your Info.plist file so you don't have to provide export compliance information with your next build.

ITSAppUsesNonExemptEncryption
ITSEncryptionExportComplianceCode [ Key Value ]

––––––––––––––––––––––––––––––––––––––––––––––––––––––––

I don't see a corresponding preference in the documentation.

All I see for global and iOS are:

• phonegap-version
• orientation
• fullscreen
• target-device
• prerendered-icon
• detect-data-types
• exit-on-suspend
• deployment-target
Photo of Joe Velocci

Joe Velocci

  • 10 Posts
  • 0 Reply Likes
sorry i keep forgetting to wrap the code

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><true/>
<key>ITSEncryptionExportComplianceCode</key><string> [ Key Value ] </string>
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@Joe,
AGAIN, you have to use the config-file, which has a link at the top of this thread.

This is the example from that page.
HOW iOS expects to see this:

<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
</array>


HOW you write in config.xml so Phonegap Build adds this to your final product:

<config-file platform="ios" parent="UISupportedInterfaceOrientations" mode="replace">
<array>
<string>UIInterfaceOrientationLandscapeOmg</string>
</array>
</config-file>


This outdated example is using the earlier syntax for config-file

config.xml

Is this helping?
Jesse
Photo of Joe Velocci

Joe Velocci

  • 10 Posts
  • 0 Reply Likes
I will give this a shot.

I KNOW that you are talking about the config.xml, I'm not an idiot. And I do NOT appreciate the nasty attitude.
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
Joe, please allow me to comment on that.
I don't think Jesse was being nasty here. He was - in my perception - merely helping by pointing out where to place the code...and he gave such code in a config-file element, too.

Yes, he emphasized several aspects...But I am absolutely certain that he (and I) doesn't consider you an idiot.
On the other hand, please understand that Jesse and I are on a daily basis in this forum, and we encounter many, many different types of beginner questions. Some of them, sometimes, appear to be borrowed from people who classify as idiots.
This prompts us (yes, me as well) to sometimes over-emphasize parts of our replies hoping to speed up the conversation a bit

Meanwhile, as a bystander, I'm curious to know whether or not 'your shot' led to the proper functionality..
Photo of Vanessa Byrem-Tangy

Vanessa Byrem-Tangy

  • 42 Posts
  • 0 Reply Likes
Hi Jesse and Petra,

I just wanted to jump in here. We DO appreciate your time and assistance with this. Joe and I understand that we need to put code into the config-file which then converts then to the output to the info.plist file and we have what Apple wants in the info.plist file, I think the disconnect lies in how we are trying to figure out what the code is that actually should go into the config-file that will render the resulting code in the info.plist file that apple needs.

We understand the samples that are given in the documentation but that doesn't apply to export compliance and what we are looking for is the actual code that relates to the export compliance so that we don't spend a lot more time than we have in trying to figure out that code. Do you happen to know the code that we need to put into the config-file that will render the result that apple is looking for based on what they gave us?
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
I don't know exactly, but I found this:
http://stackoverflow.com/questions/35...

Perhaps your question is asked elsewhere, too. I would suggest googling a bit on 'config-file ITSAppUsesNonExemptEncryption'
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@Joe,
you need to get over this sensitivity you are experiencing. I suggest you take the day off and go watch a movie. I think you are under too much stress.

There is a difference between NASTY and DIRECT. I am being direct.

Again, take the day off.

Best of Luck
Jesse
Photo of Vanessa Byrem-Tangy

Vanessa Byrem-Tangy

  • 42 Posts
  • 0 Reply Likes
Sorry Jesse, Joe can't take the day off today. I need him here to work with me. But soon maybe.

Anyway, Petra, I did google it and came up with lots of stuff prior but in reviewing the link that you sent over it seems that we are missing the gap name space. And that may trigger it but I also came across another post that says that putting target = *info.plist into the coding and not gap will work so I am going to start from there to see if I can get this resolved.

It looks like there have been a number of frustrated people about this. Is there any way to get in direct contact with Phonegap Build reps to discuss updating the documentation or providing a bit more guidance that you can recommend?
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@Vanessa,
On that day off, I recommend sooner than later.

On your issue _and_ Petra's suggestion, it appears this was recently an issue (Apple Export Compliance Alert). It is now resolved.

If you are still having trouble, please post your config.xml. One of us will look at it.

Best of Luck,
Jesse
Photo of Vanessa Byrem-Tangy

Vanessa Byrem-Tangy

  • 42 Posts
  • 0 Reply Likes
@Jesse, let's refocus on the troubleshooting if you don't mind? I am going to add some code to our build probably tomorrow and wanted to get your thoughts on this. I actually figured out the first part right before you sent that documentation so that seems hopeful for progress if it works the second part is the key value/string.

the code I was going to insert is this:

<gap:config-file platform="ios" parent="ITSAppUsesNonExemptEncryption" mode="add">
<true/>
</gap:config-file>


<gap:config-file platform="ios" parent="ITSEncryptionExportComplianceCode" value="insert our key code)"></gap:config-file>

I was thinking that value would create the string? What do you think? I appreciate the help from you and Petra.
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@Vanessa,
truthfully Petra knows this subject better than I do. As such, my suggestion should be taken with a grain of salt. Also, all the examples you have seen - so far - are with the old syntax.

Given the documentation (which has changed overtime), using the new syntax the following should also be valid:


<platform>
<config-file parent="ITSAppUsesNonExemptEncryption" mode="add">
<true/>
</config-file>
<config-file parent="ITSEncryptionExportComplianceCode" value="insert our key code)"></config-file>
</platform>


However, I think the second should be:

<config-file parent="ITSEncryptionExportComplianceCode" mode="add">
<array>
<string>insert our key code</string>
</array>
</config-file>
</platform>


To be clear, Petra will let us know - again, because this is not my forte.

Best of Luck
Jesse
Photo of Vanessa Byrem-Tangy

Vanessa Byrem-Tangy

  • 42 Posts
  • 0 Reply Likes
Great! looks like we are narrowing down some options to test. I look forward to hearing Petra's thoughts as well and then see if any of the solutions work. If they do, I will post them so that we all have it for future reference.

Thanks again Jesse!
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
I think you can specify the string (as above) without the parent array element. The ITSEncryptionExportComplianceCode can omly have one single value.