Cordova iOS: 3.8.0 Cordova: 5.1.1
I have to create two additional targets (with different bundle id) to my project. When I do this, and when I do:
$ cordova prepare ios
I have this error in my Terminal:
could not find -Info.plist file, or config.xml file
Do I need to create a different config.xml file for each target? If yes, how should i do this?
Steps to do to reproduce the "bug":
Create an empty HelloWorld project:
cordova create hello com.example.hello HelloWorld
cordova platforms add ios
Open the project in xcode, duplicate a target.
Then do, for example:
cordova plugin add cordova-plugin-inappbrowser
The plugin will not get installed because of the same error.
Apparently Cordova has problems with multiple targets.
There is a pull request with a fix: https://github.com/apache/cordova-lib/pull/219
Until Codova fixes this issue, here's a manual workaround:
git clone http://github.com/ogoguel/cordova-lib
replace:
"dependencies": {
"cordova-lib": "5.0.0",
with
"dependencies": {
"cordova-lib": "file:PATH_TO_PATCHED_LIB/cordova-lib/cordova-lib",
(PATH_TO_PATCHED_LIB - should be the absolute path to the cordva-lib folder that you cloned in step 1)
cd /usr/local/lib/node_modules/cordova
sudo npm install
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With