Skip to content
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

Failed to install 'cordova-plugin-firebasex' #108

Closed
hoangnk121 opened this issue Aug 20, 2019 · 7 comments
Closed

Failed to install 'cordova-plugin-firebasex' #108

hoangnk121 opened this issue Aug 20, 2019 · 7 comments
Labels
awaiting response If no response, issue will be closed build issue An issue related to build process ios relates to iOS platform

Comments

@hoangnk121
Copy link

When I add platform (ios) (Android worked):
ionic cordova platform add ios
I got error:

Running command: pod install --verbose

[!] The `HMP [Debug]` target overrides the `LD_RUNPATH_SEARCH_PATHS` build setting defined in `Pods/Target Support Files/Pods-HMP/Pods-HMP.debug.xcconfig'. This can lead to problems with the CocoaPods installation


[!] The `HMP [Release]` target overrides the `LD_RUNPATH_SEARCH_PATHS` build setting defined in `Pods/Target Support Files/Pods-HMP/Pods-HMP.release.xcconfig'. This can lead to problems with the CocoaPods installation

Failed to install 'cordova-plugin-firebasex': Error: ENOENT: no such file or directory, open '/Users/hoangnk121/Projects/HMP-Mobile/HMP/platforms/ios/
                HMP
        .xcodeproj/project.pbxproj'
    at Object.openSync (fs.js:448:3)
    at Object.readFileSync (fs.js:348:35)
    at pbxProject.parseSync (/Users/hoangnk121/Projects/HMP-Mobile/HMP/node_modules/xcode/lib/pbxProject.js:61:28)
    at Object.removeShellScriptBuildPhase (/Users/hoangnk121/Projects/HMP-Mobile/HMP/plugins/cordova-plugin-firebasex/scripts/ios/helper.js:87:22)
    at /Users/hoangnk121/Projects/HMP-Mobile/HMP/plugins/cordova-plugin-firebasex/scripts/ios/after_plugin_install.js:8:16
    at /Users/hoangnk121/Projects/HMP-Mobile/HMP/plugins/cordova-plugin-firebasex/scripts/ios/helper.js:19:13
    at /Users/hoangnk121/Projects/HMP-Mobile/HMP/plugins/cordova-plugin-firebasex/scripts/lib/utilities.js:27:11
    at Parser.<anonymous> (/Users/hoangnk121/Projects/HMP-Mobile/HMP/node_modules/xml2js/lib/parser.js:303:18)
    at Parser.emit (events.js:197:13)
    at SAXParser.onclosetag (/Users/hoangnk121/Projects/HMP-Mobile/HMP/node_modules/xml2js/lib/parser.js:261:26)
ENOENT: no such file or directory, open '/Users/hoangnk121/Projects/HMP-Mobile/HMP/platforms/ios/
                HMP
        .xcodeproj/project.pbxproj'

Try remove platforms, plugins, re-install but still not working.

@dlredden
Copy link

dlredden commented Aug 20, 2019

I get something similar but the last line is a litte different.
ENOENT: no such file or directory, open '/Users/dl/repos/LeagueCentral/platforms/ios/[object Object].xcodeproj/project.pbxproj'

Running command: pod install --verbose

[!] The `Pool League [Debug]` target overrides the `LD_RUNPATH_SEARCH_PATHS` build setting defined in `Pods/Target Support Files/Pods-Pool League/Pods-Pool League.debug.xcconfig'. This can lead to problems with the CocoaPods installation

[!] The `Pool League [Release]` target overrides the `LD_RUNPATH_SEARCH_PATHS` build setting defined in `Pods/Target Support Files/Pods-Pool League/Pods-Pool League.release.xcconfig'. This can lead to problems with the CocoaPods installation

Failed to install 'cordova-plugin-firebasex': Error: ENOENT: no such file or directory, open '/Users/dl/repos/LeagueCentral/platforms/ios/[object Object].xcodeproj/project.pbxproj'
    at Object.openSync (fs.js:436:3)
    at Object.readFileSync (fs.js:341:35)
    at pbxProject.parseSync (/Users/dl/repos/LeagueCentral/node_modules/xcode/lib/pbxProject.js:61:28)
    at Object.removeShellScriptBuildPhase (/Users/dl/repos/LeagueCentral/plugins/cordova-plugin-firebasex/scripts/ios/helper.js:87:22)
    at /Users/dl/repos/LeagueCentral/plugins/cordova-plugin-firebasex/scripts/ios/after_plugin_install.js:8:16
    at /Users/dl/repos/LeagueCentral/plugins/cordova-plugin-firebasex/scripts/ios/helper.js:19:13
    at /Users/dl/repos/LeagueCentral/plugins/cordova-plugin-firebasex/scripts/lib/utilities.js:27:11
    at Parser.<anonymous> (/Users/dl/repos/LeagueCentral/node_modules/xml2js/lib/parser.js:303:18)
    at Parser.emit (events.js:182:13)
    at SAXParser.onclosetag (/Users/dl/repos/LeagueCentral/node_modules/xml2js/lib/parser.js:261:26)
ENOENT: no such file or directory, open '/Users/dl/repos/LeagueCentral/platforms/ios/[object Object].xcodeproj/project.pbxproj'

@dlredden
Copy link

My issue turned out to be related to the <name></name> tab when the short attribute was used i.e. <name>My App</name> works but <name short="MyApp">My App</name> broke this step. I'll open another issue and PR to fix it.

@dpa99c dpa99c closed this as completed Aug 30, 2019
@dpa99c
Copy link
Owner

dpa99c commented Aug 30, 2019

On re-reading, PR #115 fixes #114 which is different from your issue @hoangnk121

It looks like the script cannot find your Xcode project. Please confirm the correct path to your project.pbxproj - the script is looking for /Users/hoangnk121/Projects/HMP-Mobile/HMP/platforms/ios/ HMP .xcodeproj/project.pbxproj

Also check you have no non-latin characters in your app name as this can cause path issues.

@dpa99c dpa99c reopened this Aug 30, 2019
@dpa99c dpa99c added awaiting response If no response, issue will be closed build issue An issue related to build process ios relates to iOS platform labels Aug 30, 2019
@dpa99c
Copy link
Owner

dpa99c commented Sep 4, 2019

Closed due to no response

@dpa99c dpa99c closed this as completed Sep 4, 2019
@Joaovtrc
Copy link

Joaovtrc commented Nov 12, 2019

Closed due to no response

I was having the same issue as him, figured out it was because I was using cordova-plugin-app-name with the name 'Colégio Sion', maybe it is because of the Acute accent on the 'Colégio' word?

@dpa99c can you open up this issue again?

@dbessa1
Copy link

dbessa1 commented May 5, 2021

this worked for me too. Thank Joaovtrc

@Bishoy-Samy
Copy link

Bishoy-Samy commented May 29, 2021

when I am installing the plugin I get this while my name tag is AlMashreq

[!] The AlMashreq [Debug] target overrides the LD_RUNPATH_SEARCH_PATHS build setting defined in `Pods/Target Support Files/Pods-AlMashreq/Pods-AlMashreq.debug.xcconfig'. This can lead to problems with the CocoaPods installation

[!] The AlMashreq [Release] target overrides the LD_RUNPATH_SEARCH_PATHS build setting defined in `Pods/Target Support Files/Pods-AlMashreq/Pods-AlMashreq.release.xcconfig'. This can lead to problems with the CocoaPods installation

[!] Your project does not explicitly specify the CocoaPods master specs repo. Since CDN is now used as the default, you may safely remove it from your repos directory via pod repo remove master. To suppress this warning please add warn_for_unused_master_specs_repo => false to your Podfile.

then when trying to build from the cli it fails but when running in xcode it runs and actually works... what is the cause of this and how to solve it... thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting response If no response, issue will be closed build issue An issue related to build process ios relates to iOS platform
Projects
None yet
Development

No branches or pull requests

6 participants