-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Cannot Reproduce
-
Affects Version/s: 5.1.2
-
Fix Version/s: None
-
Component/s: cordova-ios
-
Labels:
-
Environment:
OSX
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
<config-file target="*-Info.plist" parent="CFBundleURLTypes"> <array> <dict> <key>CFBundleURLSchemes</key> <array> <string>$URL_SCHEME</string> </array> </dict> </array> </config-file>
in facebook plugin.xml
<config-file target="*-Info.plist" parent="CFBundleURLTypes"> <array> <dict> <key>CFBundleURLSchemes</key> <array> <string>fb$APP_ID</string> </array> </dict> </array> </config-file>
after first build (or platform add) in file *-Info.plist
<array> <dict> <key>CFBundleURLSchemes</key> <array> <string>fbXXXXX</string> </array> </dict> <dict> <key>CFBundleURLSchemes</key> <array> <string>mycoolapp</string> </array> </dict> </array>
after second build (or platform add) in file *-Info.plist
<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>
duplicate values are added each time after build