-
Notifications
You must be signed in to change notification settings - Fork 984
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
could not find -Info.plist file, or config.xml file after adding extension, cordova build, with FIX #764
Comments
Checking in again, if someone has taken a look at this issue yet. OR am I doing something wrong here? |
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. |
@brodybits Basically, after adding extension in xcode, in our case we need The error is in here, it does not return what it intends to after you add an extension.
|
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. |
If I run
I am trying the fix and try to understand the history of this bug. |
Fix "Could not parse *-info.plist or config.xml". Proposed fix, see apache#764 Co-Authored-By: Leo Qiu <leogoesger@users.noreply.github.com>
Fix "Could not parse *-info.plist or config.xml". Proposed fix, see apache#764 Co-Authored-By: Leo Qiu <leogoesger@users.noreply.github.com>
Your proposed fix works for my app in question! I am checking the PR. |
Fix "Could not parse *-info.plist or config.xml". Proposed fix, see apache#764 Co-Authored-By: Leo Qiu <leogoesger@users.noreply.github.com>
Fix "Could not parse *-info.plist or config.xml". Proposed fix, see apache#764 Co-Authored-By: Leo Qiu <leogoesger@users.noreply.github.com>
Fix "Could not parse *-info.plist or config.xml". Proposed fix, see apache#764 Co-Authored-By: Leo Qiu <leogoesger@users.noreply.github.com>
Fix "Could not parse *-info.plist or config.xml". Proposed fix, see apache#764 Co-Authored-By: Leo Qiu <leogoesger@users.noreply.github.com>
Fix "Could not parse *-info.plist or config.xml". Proposed fix, see apache#764 Co-Authored-By: Leo Qiu <leogoesger@users.noreply.github.com>
Fix "Could not parse *-info.plist or config.xml". Proposed fix, see apache#764 Co-Authored-By: Leo Qiu <leogoesger@users.noreply.github.com>
Fix "Could not parse *-info.plist or config.xml". Proposed fix, see apache#764 Co-Authored-By: Leo Qiu <leogoesger@users.noreply.github.com>
Fix "Could not parse *-info.plist or config.xml". Proposed fix, see apache#764 Co-Authored-By: Leo Qiu <leogoesger@users.noreply.github.com>
Sorry for spamming this issue. I was trying this code in our fork. |
@leogoesger thank you, your fix work for me . |
@NiklasMerz any update on this? |
Plese check the reviews in #765 |
@leogoesger There are some reviews now. Would you like to address them? |
We are using Cordova 9.0 After adding watch app extension to my existing iOS mobile app. getting below error. CordovaError: Could not parse /Users/pblrmac/Desktop/Eswar_Watch/watch_With_Notifications/working/myapp_watch_working_Bak/platforms/ios/myapp.xcodeproj/project.pbxproj: CordovaError: *Could not find -Info.plist file, or config.xml file. To fix this issue, as @leogoesger mentioned I have added following code. This issue got resolved. But I am facing another issue when I run cordova build iOS command (log added below). Could you help me in resolving following issue? @leogoesger suggested code: var projectName = fs var xcBuildConfiguration = xcodeproj.pbxXCBuildConfigurationSection(); New issue after adding @leogoesger code: Running command: xcodebuild -workspace myapp.xcworkspace -scheme myapp-configuration Debug -sdk iphonesimulator -destination platform=iOS Simulator,name=iPhone 11 Pro Max build CONFIGURATION_BUILD_DIR=/Users/pblrmac/Desktop/Eswar_Watch/watch_With_Notifications/myapp_watch_working_Bak/platforms/ios/build/emulator SHARED_PRECOMPS_DIR=/Users/pblrmac/Desktop/Eswar_Watch/watch_With_Notifications/myapp_watch_working_Bak/platforms/ios/build/sharedpch note: Using new build system ** BUILD FAILED ** Command finished with error code 65: xcodebuild -workspace,myapp.xcworkspace,-scheme,myapp,-configuration,Debug,-sdk,iphonesimulator,-destination,platform=iOS Simulator,name=iPhone 11 Pro Max,build,CONFIGURATION_BUILD_DIR=/Users/pblrmac/Desktop/Eswar_Watch/watch_With_Notifications/myapp_watch_working_Bak/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/pblrmac/Desktop/Eswar_Watch/watch_With_Notifications/myapp_watch_working_Bak/platforms/ios/build/sharedpch |
I am struggling to over come this issue. Any help on this issue is very much appreciated. |
I got this error in august after adding a today extension, and the workaround by @leogoesger worked for me. |
@nicozenf thanks for your response. i have tried with cordova ios 6.1.1 as well but faced same issue. I am building watch app on macOS: Mojave (version:10.14.4) , Cordova 9.0 |
I don't believe WatchOS supports the webkit sdk, so I don't think Cordova is going to work for you. |
My stack is the following : |
@breautek Thanks for your quick reply, we already have a watch app which is included in existing ios app (built on cordova ios 4.5.5) now we have upgraded cordova ios from 4.5.5 to 6.1.0. After upgradation when we try to run cordova build ios command its throwing below error. after cordova ios 6.1.0 upgrade ios app and Watch app are working fine and able to share information in ios simulator. But when I run cordova build ios command its failing with above error. |
@nicozenf our watch app code is in Objective-C. I have tried with sample "HelloWorld" app also like below. Information error: unable to resolve product type 'com.apple.product-type.watchkit2-extension' for platform 'iphonesimulator' (in target 'myapp Extension' from project 'myapp'). |
Sorry, I can't help you further, but it look like a different problem to the one describe in the thread. Good luck ;) |
As @nicozenf mentioned I will update xcode from 11.3.1 to 12 and try once. |
Can someone verify this is fixed? I will close the issue. |
I think this is not fixed, people have just been discussing workarounds. |
As @nicozenf suggested, I have upgraded XCODE from 11.3.1 to 12.3. Facing same issue after xcode upgrade also. Again giving log for your reference: note: Using new build system ** BUILD FAILED ** Command finished with error code 65: xcodebuild -workspace,myapp.xcworkspace,-scheme,myapp,-configuration,Debug,-sdk,iphonesimulator,-destination,platform=iOS Simulator,name=iPhone 11 Pro Max,build,CONFIGURATION_BUILD_DIR=/Users/pblrmac/Desktop/Eswar_Watch/watch_With_Notifications/myapp_watch_working_Bak/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/pblrmac/Desktop/Eswar_Watch/watch_With_Notifications/myapp_watch_working_Bak/platforms/ios/build/sharedpch |
Still I am struggling to over come this issue. Any help on this issue is very much appreciated. |
Dear Cordova team, any help on this issue is very much appreciated. |
I already submitted the bugfix with testing included in PR #795 but it was never reviewed and there are now many conflicts. I think we will have to do this in 2 parts:
Unfortunately I cannot promise when I will get a chance to work on this due to some other priorities. I would recommend following up through the dev email forum or through slack, follow the links in the footer of cordova.io or cordova.apache.org for the contact information. |
Dear team, any help on this issue is very much appreciated. |
@ejonnadula I created a fix that worked for my org, by forking the branch. You could just use @bradfol 's fork? It seems to me this project is not actively being maintained, so not sure waiting is the best thing to do here. |
Our organization doesn't want to take code from anyone's personal branch. |
Your solution works also for me. Great! Thank you. |
Hey @petermeester, can you mention the soultion you have followed. I see multiple solutions down the thread. |
Hey @abhishek-2102, the solution of @leogoesger worked for me. Changing the projectFile.js file in the ios/cordova/lib directory. See #764 (comment). |
Solution was found in: apache/cordova-ios#764 Had to change the "projectFile.js" Former-commit-id: a26f459
This is still a major nasty BUG. Unable to even add a plugin if we have an extension on the project. The workaround above works ok |
Root issue with quotes and INFOPLIST_FILE should be linked to Main target
to
|
Bug Report
I have included the fix on the bottom. I am pretty new at Cordova, someone else should take a look.
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 runningcordova build ios
How to reproduce
OneTwoThree
How did we solve it
In
ios/cordova/lib/projectFile.js
, we found this.Log
plist_file_entry
returns the path of theOneTwoThree
extension, instead of the project path.We fixed it by adding one more condition, it basically search through that path, and find your project name by finding a file name ending with
.xcworkspace
. Not sure how reliable is this.Environment, Platform, Device
IOS
Version information
Latest
Checklist
The text was updated successfully, but these errors were encountered: