Aivars Akots created CB-9213:
--------------------------------
Summary: Cordova plugins modifying “*-Info.plist” CFBundleURLTypes
Key: CB-9213
URL: https://issues.apache.org/jira/browse/CB-9213
Project: Apache Cordova
Issue Type: Bug
Components: CLI, CordovaLib
Affects Versions: 5.1.2
Environment: OSX
Reporter: Aivars Akots
??The issues is found in version 5.1.1, but for some reasons I can not specify
this version submitting this issue.??
When cordova plugin is modifying the property CFBundleURLTypes, duplicate
entries are added each time cordova build ios is run.
I.e.:
https://github.com/EddyVerbruggen/LaunchMyApp-PhoneGap-Plugin.git
https://github.com/Wizcorp/phonegap-facebook-plugin
in launch my app plugin.xml
{code:xml}
<config-file target="*-Info.plist" parent="CFBundleURLTypes">
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>$URL_SCHEME</string>
</array>
</dict>
</array>
</config-file>
{code}
in facebook plugin.xml
{code:xml}
<config-file target="*-Info.plist" parent="CFBundleURLTypes">
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>fb$APP_ID</string>
</array>
</dict>
</array>
</config-file>
{code}
after first build (or platform add) in file *-Info.plist
{code:xml}
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>fbXXXXX</string>
</array>
</dict>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>mycoolapp</string>
</array>
</dict>
</array>
{code}
after second build (or platform add) in file *-Info.plist
{code:xml}
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>fbXXXXX</string>
</array>
</dict>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>mycoolapp</string>
</array>
</dict>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>fbXXXXX</string>
</array>
</dict>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>mycoolapp</string>
</array>
</dict>
</array>
{code}
duplicate values are added each time after build
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]