Skip to content

Merge Info.plist fails second build #1066

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
dtopuzov opened this issue Oct 15, 2015 · 1 comment
Closed

Merge Info.plist fails second build #1066

dtopuzov opened this issue Oct 15, 2015 · 1 comment

Comments

@dtopuzov
Copy link
Contributor

I have Info.plist located in platform folder of the plugin:
SimpleBackgroundHttp/node_modules/nativescript-background-http/platforms/ios/Info.plist

Content of Info.plist is:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>NSAppTransportSecurity</key>
    <dict>
        <key>NSAllowsArbitraryLoads</key>
        <true/>
    </dict>
</dict>
</plist>

When build iOS for first time everything is ok, but when build second time final plist looks like this:

    <key>NSAppTransportSecurity</key>
    <dict>
      <key>NSAllowsArbitraryLoads</key>
      <true/>
      <key>NSAllowsArbitraryLoads</key>
      <true/>
      <key>NSAllowsArbitraryLoads</key>
      <true/>
      <key>NSAllowsArbitraryLoads</key>
      <true/>
    </dict>
    <key>NSAppTransportSecurity</key>
    <key>NSAppTransportSecurity</key>
    <key>NSAppTransportSecurity</key>

It can be reproduced with nativescript-background-http with following steps:

  1. Clone the repo
  2. Install prerequisites
  3. Run "grunt tests --os-version 9.0 --device "iPhone 6 90" --verbose" twice

Result is:

>> ** BUILD FAILED **
>> 
>> 
>> The following build commands failed:
>> ProcessInfoPlistFile build/emulator/SimpleBackgroundHttp.app/Info.plist SimpleBackgroundHttp/SimpleBackgroundHttp-Info.plist
>> (1 failure)
>> Command xcodebuild failed with exit code 65
@Fatme
Copy link
Contributor

Fatme commented Oct 15, 2015

The problem happens only when the source code of the plugin that contains Info.plist file is modified.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants