[
https://issues.apache.org/jira/browse/CB-9033?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14574716#comment-14574716
]
ASF GitHub Bot commented on CB-9033:
------------------------------------
Github user ogoguel commented on a diff in the pull request:
https://github.com/apache/cordova-lib/pull/219#discussion_r31824683
--- Diff: cordova-lib/src/plugman/platforms/ios.js ---
@@ -184,13 +192,65 @@ module.exports = {
var xcBuildConfiguration =
xcodeproj.pbxXCBuildConfigurationSection();
- var plist_file_entry = _.find(xcBuildConfiguration, function
(entry) { return entry.buildSettings && entry.buildSettings.INFOPLIST_FILE; });
- var plist_file = path.join(project_dir,
plist_file_entry.buildSettings.INFOPLIST_FILE.replace(/^"(.*)"$/g,
'$1').replace(/\\&/g, '&'));
- var config_file = path.join(path.dirname(plist_file),
'config.xml');
- if (!fs.existsSync(plist_file) || !fs.existsSync(config_file)) {
+ // CB-9033
+ var plist_file_index;
+ var plist_file_entry = _.find(xcBuildConfiguration, function
(entry,index) {
+ if (entry.buildSettings && entry.buildSettings.INFOPLIST_FILE
&& entry.buildSettings.SKIP_INSTALL != 'YES') {
--- End diff --
ok, I will change it, even though I don't believe it would make a
difference... unless there are cases I've missed.
if it is part of the cordova-lib coding requirements, it would be good to
update the jslint rules accordingly so it is catched during the test phase
> Plugins fail to install on Apple Watch based Cordova project
> ------------------------------------------------------------
>
> Key: CB-9033
> URL: https://issues.apache.org/jira/browse/CB-9033
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS
> Affects Versions: 5.0.0
> Reporter: Olivier Goguel
>
> After having added the Watch Kit target to an iOS Cordova project, plugins
> cannot be added any more through the CLI.
> An error is thrown "'could not find -Info.plist file, or config.xml file." as
> the plugin manager is confused by the plist files from the WatchKit App and
> WatchKit Extension and fails to find the proper plist file of the projet.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]