-
Notifications
You must be signed in to change notification settings - Fork 986
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
With cordova-ios 5.0.0, phonegap-plugin-push cannot be added #523
Comments
I can confirm the problem:
(Similar version setup as @martispaul) |
Just to confirm that this is a new thing: Works fine with
|
The |
Running the
Seems Cocoapods is run during installation of the plugin. As this is not available on Windows, it is causing problems :/ It even seems to be aware of that:
So why is it trying to read that file shortly after? Looking at the code blame shows that the code is a pretty recent addition: |
Ok, seems the "pod install does not exist on Windows" logic here might be just a tiny bit broken. Can you take a look @knight9999 as you authored the PR (and @erisu)? |
Thanks for the report and valuable comments. @janpio @martispaul ! |
PR #528 was merged, and will be part of [email protected] |
I have this issue too. How to fix this? |
@Jasphine probably you need to update your POD to latest, then go into platforms/ios, then |
Bug Report
Problem
With cordova-ios 5.0.0, phonegap-plugin-push cannot be added
What is expected to happen?
Created new cordova ios app with ios platform 5.0.0, adding phonegap-plugin-push should be successfully.
What does actually happen?
Adding the phonegap-plugin-push fails on a new created app (with [email protected]).
On the older cordova-ios version (4.5.4), adding the plugin was successfully.
Information
Using windows PC, create a blank cordova app
Add platform [email protected]
Add plugin [email protected]
C:\Users\martispa\Desktop\TestIOS\hello>cordova platform add [email protected]
Using cordova-fetch for [email protected]
Adding ios project...
Creating Cordova project for the iOS platform:
Path: platforms\ios
Package: com.example.hello
Name: HelloWorld
iOS project created with [email protected]
Installing "cordova-plugin-whitelist" for ios
--save flag or autosave detected
Saving ios@~5.0.0 into config.xml file ...
C:\Users\martispa\Desktop\TestIOS\hello>cordova plugin add [email protected]
Installing "phonegap-plugin-push" for ios
"framework" tag with type "podspec" is deprecated and will be removed. Please use the "podspec" tag.
Failed to install 'phonegap-plugin-push': Error: ENOENT: no such file or directory, open 'C:\Users\martispa\Desktop\TestIOS\hello\platforms\ios\Pods\Pods.xcodeproj\project.pbxproj'
at Object.fs.openSync (fs.js:646:18)
at Object.fs.readFileSync (fs.js:551:33)
at pbxProject.parseSync (C:\Users\martispa\Desktop\TestIOS\hello\node_modules\xcode\lib\pbxProject.js:61:28)
at Api.setSwiftVersionForCocoaPodsLibraries (C:\Users\martispa\Desktop\TestIOS\hello\platforms\ios\cordova\Api.js:587:18)
at C:\Users\martispa\Desktop\TestIOS\hello\platforms\ios\cordova\Api.js:448:26
at _fulfilled (C:\Users\martispa\Desktop\TestIOS\hello\node_modules\q\q.js:854:54)
at self.promiseDispatch.done (C:\Users\martispa\Desktop\TestIOS\hello\node_modules\q\q.js:883:30)
at Promise.promise.promiseDispatch (C:\Users\martispa\Desktop\TestIOS\hello\node_modules\q\q.js:816:13)
at C:\Users\martispa\Desktop\TestIOS\hello\node_modules\q\q.js:624:44
at runSingle (C:\Users\martispa\Desktop\TestIOS\hello\node_modules\q\q.js:137:13)
ENOENT: no such file or directory, open 'C:\Users\martispa\Desktop\TestIOS\hello\platforms\ios\Pods\Pods.xcodeproj\project.pbxproj'
Command or Code
cordova platform add [email protected]
cordova plugin add [email protected]
Version information
Node: v8.15.0
NPM: 6.4.1
Cordova: 8.1.2 ([email protected])
Cordova platform: [email protected]
[email protected]
Checklist
Can someone help me narrow the issue down to a platform ios maybe? Or should i raise this issue to the plugin specific github page (phonegap-plugin-push).
PS: Adding the plugin on platform [email protected] is successful.
The text was updated successfully, but these errors were encountered: