Closed mcekol closed 7 years ago
Just tested the plugin with the following config and it builds fine with XCode 9 (see console output below):
<config-file parent="LSApplicationQueriesSchemes" target="*-Info.plist">
<array>
<string>myapp</string>
<string>myapp2</string>
<string>myapp3</string>
</array>
</config-file>
<config-file parent="CFBundleURLTypes" target="*-Info.plist">
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>CFBundleURLSchemes</key>
<array>
<string>three</string>
</array>
</dict>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLSchemes</key>
<array>
<string>one</string>
<string>two</string>
</array>
</dict>
</array>
</config-file>
Give this config a try in a clean Cordova project to eliminate the possibility of other plugins in the project conflicting with this one.
I'll give it a go. Thanks for the prompt response. However, are you running it from the command line using 'cordova build ios' or actually through XCode 9?
In the console output above, I used cordova build ios
, however the build also succeeds in the XCode GUI: cordova build ios
uses the xcodebuild
tool so the underlying build process is the same as the XCode GUI.
Right, it seems like there is an issue on my side with some other plugin. I'll investigate further. Thanks!
cordova-cli: 7.0.1 cordova-custom-config: 4.0.2 XCode 9.0
I have a setup where I'm running 'cordova prepare' in my project's Build Phases through Run Script. The plugin modifies the *.Info.plist file by adding 'LSApplicationQueriesSchemes' and 'CFBundleURLTypes'. The plugin works as expected and modified the plist file, but I'm unable to build anything with XCode. Removal of the plugin enables the 'cordova prepare' command to execute without interrupting the build process.
Would this be a plugin issue or perhaps an XCode issue?