Skip to content

Conversation

@caseywebdev
Copy link
Contributor

I have an iOS project named Foo & Bar. When trying to run cordova plugin add <anything> an error is thrown:

Failed to install 'org.apache.cordova.splashscreen':CordovaError: could not find -Info.plist file, or config.xml file.
    at Object.module.exports.parseProjectFile (/Users/casey/projects/example/node_modules/cordova/node_modules/cordova-lib/src/plugman/platforms/ios.js:193:19)
    at Object.ActionStack.process (/Users/casey/projects/example/node_modules/cordova/node_modules/cordova-lib/src/plugman/util/action-stack.js:55:49)
    at handleInstall (/Users/casey/projects/example/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:575:20)
    at /Users/casey/projects/example/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:335:28
    at _fulfilled (/Users/casey/projects/example/node_modules/cordova/node_modules/q/q.js:787:54)
    at self.promiseDispatch.done (/Users/casey/projects/example/node_modules/cordova/node_modules/q/q.js:816:30)
    at Promise.promise.promiseDispatch (/Users/casey/projects/example/node_modules/cordova/node_modules/q/q.js:749:13)
    at /Users/casey/projects/example/node_modules/cordova/node_modules/q/q.js:509:49
    at flush (/Users/casey/projects/example/node_modules/cordova/node_modules/q/q.js:108:17)
    at process._tickCallback (node.js:355:11)
could not find -Info.plist file, or config.xml file.

The problem is that the xcode parser is saying that the plist path is Foo \& Bar-Info.plist, which is obviously wrong as there is no actual backslash. The ampersand seems to be escaped in the project.pbxproj file, so I'm not sure this is the best place for the fix, or if this might even be a bug in https://github.com/alunny/node-xcode

I have an iOS project named `Foo & Bar`. When trying to run `cordova plugin add <anything>` an error is thrown:

```
Failed to install 'org.apache.cordova.splashscreen':CordovaError: could not find -Info.plist file, or config.xml file.
    at Object.module.exports.parseProjectFile (/Users/casey/projects/example/node_modules/cordova/node_modules/cordova-lib/src/plugman/platforms/ios.js:193:19)
    at Object.ActionStack.process (/Users/casey/projects/example/node_modules/cordova/node_modules/cordova-lib/src/plugman/util/action-stack.js:55:49)
    at handleInstall (/Users/casey/projects/example/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:575:20)
    at /Users/casey/projects/example/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:335:28
    at _fulfilled (/Users/casey/projects/example/node_modules/cordova/node_modules/q/q.js:787:54)
    at self.promiseDispatch.done (/Users/casey/projects/example/node_modules/cordova/node_modules/q/q.js:816:30)
    at Promise.promise.promiseDispatch (/Users/casey/projects/example/node_modules/cordova/node_modules/q/q.js:749:13)
    at /Users/casey/projects/example/node_modules/cordova/node_modules/q/q.js:509:49
    at flush (/Users/casey/projects/example/node_modules/cordova/node_modules/q/q.js:108:17)
    at process._tickCallback (node.js:355:11)
could not find -Info.plist file, or config.xml file.
```

The problem is that the xcode parser is saying that the plist path is `Foo \& Bar-Info.plist`, which is obviously wrong as there is no actual backslash. The ampersand seems to be escaped in the `project.pbxproj` file, so I'm not sure this is the best place for the fix, or if this might even be a bug in https://github.com/alunny/node-xcode
@shazron
Copy link
Member

shazron commented Apr 2, 2015

Patch verified to work.

@asfgit asfgit merged commit cc76abd into apache:master Apr 2, 2015
@purplecabbage
Copy link
Contributor

Thanks Casey!
You should consider signing the CLA for future contributions.
http://cordova.apache.org/#contribute

btw, Best github picture evar!

@caseywebdev caseywebdev deleted the patch-1 branch April 2, 2015 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants