You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2020/01/10 21:14:55 UTC

[GitHub] [cordova-ios] leogoesger opened a new issue #764: could not find -Info.plist file, or config.xml file after adding extension, cordova build

leogoesger opened a new issue #764: could not find -Info.plist file, or config.xml file after adding extension, cordova build
URL: https://github.com/apache/cordova-ios/issues/764
 
 
   
   
   # Bug Report
   
   I have included the fix on the bottom. I am pretty new at Cordova, someone else should take the lead and figure out a better solution than mine.
   
   ## Problem
   Cannot find `*-info.plist or config.xml` error when adding extension in Xcode. In a new cordova repo. After an extension is installed, depends on how you name the extension in Xcode, it will trigger a build error when running `cordova build ios`
   
   ## How to reproduce
   <!-- Include all relevant information that might help understand and reproduce the problem -->
   1. Start a fresh repo
   2. Run all the cordova install, build commands
   3. Open xcode, add extension, name it `OneTwoThree`, I used 
   4. Run cordova build
   5. Failes
   
   ## How we solve it
   
   In `ios/cordova/lib/projectFile.js`, we found this.
   
   ```
   var xcBuildConfiguration = xcodeproj.pbxXCBuildConfigurationSection();
     var plist_file_entry = _.find(xcBuildConfiguration, function(entry) {
       return entry.buildSettings && entry.buildSettings.INFOPLIST_FILE;
     });
   ```
   
   Log `plist_file_entry` returns the path of the `OneTwoThree` extension, instead of the project path.
   
   We fixed it by adding one more condition:
   
   ```
   var projectName = fs
       .readdirSync(project_dir)
       .find(d => d.includes(".xcworkspace"))
       .replace(".xcworkspace", "");
   
     var xcBuildConfiguration = xcodeproj.pbxXCBuildConfigurationSection();
     var plist_file_entry = _.find(xcBuildConfiguration, function(entry) {
       return (
         entry.buildSettings &&
         entry.buildSettings.INFOPLIST_FILE &&
         entry.buildSettings.INFOPLIST_FILE.includes(projectName)
       );
     });
   ```
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you experiencing the issue? -->
   IOS
   
   
   ### Version information
   Latest
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-ios] leogoesger commented on issue #764: could not find -Info.plist file, or config.xml file after adding extension, cordova build, with FIX

Posted by GitBox <gi...@apache.org>.
leogoesger commented on issue #764: could not find -Info.plist file, or config.xml file after adding extension, cordova build, with FIX
URL: https://github.com/apache/cordova-ios/issues/764#issuecomment-585568904
 
 
   @NiklasMerz any update on this?
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-ios] NiklasMerz commented on issue #764: could not find -Info.plist file, or config.xml file after adding extension, cordova build, with FIX

Posted by GitBox <gi...@apache.org>.
NiklasMerz commented on issue #764: could not find -Info.plist file, or config.xml file after adding extension, cordova build, with FIX
URL: https://github.com/apache/cordova-ios/issues/764#issuecomment-574038869
 
 
   I know this error from a pretty complex app with two extensions. I did not investigate that, yet and would love to see this fixed. 
   
   If you find something, please post here or create a pull request. I may look at this deeper, later.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-ios] leogoesger commented on issue #764: could not find -Info.plist file, or config.xml file after adding extension, cordova build, with FIX

Posted by GitBox <gi...@apache.org>.
leogoesger commented on issue #764: could not find -Info.plist file, or config.xml file after adding extension, cordova build, with FIX
URL: https://github.com/apache/cordova-ios/issues/764#issuecomment-575320598
 
 
   https://github.com/apache/cordova-ios/pull/765
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-ios] NiklasMerz commented on issue #764: could not find -Info.plist file, or config.xml file after adding extension, cordova build, with FIX

Posted by GitBox <gi...@apache.org>.
NiklasMerz commented on issue #764: could not find -Info.plist file, or config.xml file after adding extension, cordova build, with FIX
URL: https://github.com/apache/cordova-ios/issues/764#issuecomment-574049685
 
 
   If I run `cordova run ios --verbose`, I get this stacktrace which might help
   
   ```
   Could not parse /Users/me/path/platforms/ios/MyApp.xcodeproj/project.pbxproj: Could not find *-Info.plist file, or config.xml file.
   CordovaError: Could not parse /Users/me/path/platforms/ios/MyApp.xcodeproj/project.pbxproj: Could not find *-Info.plist file, or config.xml file.
       at handleBuildSettings (/Users/me/path/platforms/ios/cordova/lib/prepare.js:333:25)
       at updateProject (/Users/me/path/platforms/ios/cordova/lib/prepare.js:228:12)
       at /Users/me/path/platforms/ios/cordova/lib/prepare.js:56:21
       at _fulfilled (/Users/me/path/node_modules/q/q.js:854:54)
       at /Users/me/path/node_modules/q/q.js:883:30
       at Promise.promise.promiseDispatch (/Users/me/path/node_modules/q/q.js:816:13)
       at /Users/me/path/node_modules/q/q.js:570:49
       at runSingle (/Users/me/path/node_modules/q/q.js:137:13)
       at flush (/Users/me/path/node_modules/q/q.js:125:13)
       at processTicksAndRejections (internal/process/task_queues.js:76:11)
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-ios] NiklasMerz commented on issue #764: could not find -Info.plist file, or config.xml file after adding extension, cordova build, with FIX

Posted by GitBox <gi...@apache.org>.
NiklasMerz commented on issue #764: could not find -Info.plist file, or config.xml file after adding extension, cordova build, with FIX
URL: https://github.com/apache/cordova-ios/issues/764#issuecomment-585583892
 
 
   Plese check the reviews in #765 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-ios] NiklasMerz edited a comment on issue #764: could not find -Info.plist file, or config.xml file after adding extension, cordova build, with FIX

Posted by GitBox <gi...@apache.org>.
NiklasMerz edited a comment on issue #764: could not find -Info.plist file, or config.xml file after adding extension, cordova build, with FIX
URL: https://github.com/apache/cordova-ios/issues/764#issuecomment-574049685
 
 
   If I run `cordova run ios --verbose`, I get this stacktrace which might help
   
   ```
   Need to update build settings because project is using our launch storyboard.
   Could not parse /Users/me/path/platforms/ios/MyApp.xcodeproj/project.pbxproj: Could not find *-Info.plist file, or config.xml file.
   CordovaError: Could not parse /Users/me/path/platforms/ios/MyApp.xcodeproj/project.pbxproj: Could not find *-Info.plist file, or config.xml file.
       at handleBuildSettings (/Users/me/path/platforms/ios/cordova/lib/prepare.js:333:25)
       at updateProject (/Users/me/path/platforms/ios/cordova/lib/prepare.js:228:12)
       at /Users/me/path/platforms/ios/cordova/lib/prepare.js:56:21
       at _fulfilled (/Users/me/path/node_modules/q/q.js:854:54)
       at /Users/me/path/node_modules/q/q.js:883:30
       at Promise.promise.promiseDispatch (/Users/me/path/node_modules/q/q.js:816:13)
       at /Users/me/path/node_modules/q/q.js:570:49
       at runSingle (/Users/me/path/node_modules/q/q.js:137:13)
       at flush (/Users/me/path/node_modules/q/q.js:125:13)
       at processTicksAndRejections (internal/process/task_queues.js:76:11)
   ```
   
   I am trying the fix and try to understand the history of this bug.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-ios] NiklasMerz commented on issue #764: could not find -Info.plist file, or config.xml file after adding extension, cordova build, with FIX

Posted by GitBox <gi...@apache.org>.
NiklasMerz commented on issue #764: could not find -Info.plist file, or config.xml file after adding extension, cordova build, with FIX
URL: https://github.com/apache/cordova-ios/issues/764#issuecomment-574073325
 
 
   Your proposed fix works for my app in question! We need tests for that to get a successfull PR?
   
   @leogoesger Would you like to create the pull request?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-ios] NiklasMerz edited a comment on issue #764: could not find -Info.plist file, or config.xml file after adding extension, cordova build, with FIX

Posted by GitBox <gi...@apache.org>.
NiklasMerz edited a comment on issue #764: could not find -Info.plist file, or config.xml file after adding extension, cordova build, with FIX
URL: https://github.com/apache/cordova-ios/issues/764#issuecomment-574038869
 
 
   I know this error from a pretty complex app with two extensions. I did not investigate that, yet and would love to see this fixed. 
   
   If you find something,please create a pull request. I may look at this deeper, later.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-ios] leogoesger commented on issue #764: could not find -Info.plist file, or config.xml file after adding extension, cordova build, with FIX

Posted by GitBox <gi...@apache.org>.
leogoesger commented on issue #764: could not find -Info.plist file, or config.xml file after adding extension, cordova build, with FIX
URL: https://github.com/apache/cordova-ios/issues/764#issuecomment-589118334
 
 
   #795 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-ios] leogoesger edited a comment on issue #764: could not find -Info.plist file, or config.xml file after adding extension, cordova build, with FIX

Posted by GitBox <gi...@apache.org>.
leogoesger edited a comment on issue #764: could not find -Info.plist file, or config.xml file after adding extension, cordova build, with FIX
URL: https://github.com/apache/cordova-ios/issues/764#issuecomment-573890257
 
 
   @brodybits 
   
   Basically, after adding extension in xcode, in our case we need `OneSignal`, so we name it OneSignal. `plist_file_entry ` should return the plist file for the project, but instead it returns the path of OneSignal. For some reason it is not finding the correct folder path. 
   
   The error is in here, it does not return what it intends to after you add an extension.
   
   ```
   var plist_file_entry = _.find(xcBuildConfiguration, function(entry) {
       return entry.buildSettings && entry.buildSettings.INFOPLIST_FILE;
     });
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-ios] NiklasMerz edited a comment on issue #764: could not find -Info.plist file, or config.xml file after adding extension, cordova build, with FIX

Posted by GitBox <gi...@apache.org>.
NiklasMerz edited a comment on issue #764: could not find -Info.plist file, or config.xml file after adding extension, cordova build, with FIX
URL: https://github.com/apache/cordova-ios/issues/764#issuecomment-574073325
 
 
   Your proposed fix works for my app in question! I am checking the PR.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-ios] NiklasMerz commented on issue #764: could not find -Info.plist file, or config.xml file after adding extension, cordova build, with FIX

Posted by GitBox <gi...@apache.org>.
NiklasMerz commented on issue #764: could not find -Info.plist file, or config.xml file after adding extension, cordova build, with FIX
URL: https://github.com/apache/cordova-ios/issues/764#issuecomment-586187554
 
 
   @leogoesger There are some reviews now. Would you like to address them?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-ios] leogoesger commented on issue #764: could not find -Info.plist file, or config.xml file after adding extension, cordova build

Posted by GitBox <gi...@apache.org>.
leogoesger commented on issue #764: could not find -Info.plist file, or config.xml file after adding extension, cordova build
URL: https://github.com/apache/cordova-ios/issues/764#issuecomment-573859873
 
 
   Checking in again, if someone has taken a look at this issue yet. OR am I doing something wrong here? 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-ios] NiklasMerz edited a comment on issue #764: could not find -Info.plist file, or config.xml file after adding extension, cordova build, with FIX

Posted by GitBox <gi...@apache.org>.
NiklasMerz edited a comment on issue #764: could not find -Info.plist file, or config.xml file after adding extension, cordova build, with FIX
URL: https://github.com/apache/cordova-ios/issues/764#issuecomment-574049685
 
 
   If I run `cordova run ios --verbose`, I get this stacktrace which might help
   
   ```
   Need to update build settings because project is using our launch storyboard.
   Could not parse /Users/me/path/platforms/ios/MyApp.xcodeproj/project.pbxproj: Could not find *-Info.plist file, or config.xml file.
   CordovaError: Could not parse /Users/me/path/platforms/ios/MyApp.xcodeproj/project.pbxproj: Could not find *-Info.plist file, or config.xml file.
       at handleBuildSettings (/Users/me/path/platforms/ios/cordova/lib/prepare.js:333:25)
       at updateProject (/Users/me/path/platforms/ios/cordova/lib/prepare.js:228:12)
       at /Users/me/path/platforms/ios/cordova/lib/prepare.js:56:21
       at _fulfilled (/Users/me/path/node_modules/q/q.js:854:54)
       at /Users/me/path/node_modules/q/q.js:883:30
       at Promise.promise.promiseDispatch (/Users/me/path/node_modules/q/q.js:816:13)
       at /Users/me/path/node_modules/q/q.js:570:49
       at runSingle (/Users/me/path/node_modules/q/q.js:137:13)
       at flush (/Users/me/path/node_modules/q/q.js:125:13)
       at processTicksAndRejections (internal/process/task_queues.js:76:11)
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-ios] leogoesger commented on issue #764: could not find -Info.plist file, or config.xml file after adding extension, cordova build, with FIX

Posted by GitBox <gi...@apache.org>.
leogoesger commented on issue #764: could not find -Info.plist file, or config.xml file after adding extension, cordova build, with FIX
URL: https://github.com/apache/cordova-ios/issues/764#issuecomment-573890257
 
 
   @brodybits 
   
   Basically, after adding extension in xcode, in our case we need `OneSignal`, so we name it OneSignal. `plist_file_entry ` should return the plist file for the project, but instead it returns the path of OneSignal. For some reason it is not finding the correct folder path. 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-ios] NiklasMerz commented on issue #764: could not find -Info.plist file, or config.xml file after adding extension, cordova build, with FIX

Posted by GitBox <gi...@apache.org>.
NiklasMerz commented on issue #764: could not find -Info.plist file, or config.xml file after adding extension, cordova build, with FIX
URL: https://github.com/apache/cordova-ios/issues/764#issuecomment-574217511
 
 
   Sorry for spamming this issue. I was trying this code in our fork.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-ios] brodybits commented on issue #764: could not find -Info.plist file, or config.xml file after adding extension, cordova build, with FIX

Posted by GitBox <gi...@apache.org>.
brodybits commented on issue #764: could not find -Info.plist file, or config.xml file after adding extension, cordova build, with FIX
URL: https://github.com/apache/cordova-ios/issues/764#issuecomment-573862602
 
 
   Thanks. I personally don't understand your proposed fix very well since I generally build iOS from Xcode.
   
   A PR with tests would be much easier for us to review and integrate.
   
   Unfortunately maintainers are a bit overloaded. I highly recommend that you follow up with us on Slack or mailing list, find contact from footer of cordova.io or cordova.apache.org.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-ios] NiklasMerz edited a comment on issue #764: could not find -Info.plist file, or config.xml file after adding extension, cordova build, with FIX

Posted by GitBox <gi...@apache.org>.
NiklasMerz edited a comment on issue #764: could not find -Info.plist file, or config.xml file after adding extension, cordova build, with FIX
URL: https://github.com/apache/cordova-ios/issues/764#issuecomment-586187554
 
 
   > @NiklasMerz any update on this?
   
   @leogoesger There are some reviews now. Would you like to address them?
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-ios] jj449 commented on issue #764: could not find -Info.plist file, or config.xml file after adding extension, cordova build, with FIX

Posted by GitBox <gi...@apache.org>.
jj449 commented on issue #764: could not find -Info.plist file, or config.xml file after adding extension, cordova build, with FIX
URL: https://github.com/apache/cordova-ios/issues/764#issuecomment-582277461
 
 
   @leogoesger  thank you, your fix work for me . 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org