Closed ctfrancia closed 4 years ago
Please try building the example project to rule out conflicts with other plugins in your project and to validate your build environment.
Alright, it says that the build was successful... which means there is nothing more you can do for me, thanks anyways 😭
Thanks for you reply
how did you fix the issue @ctfrancia ?
Hi,
I installed example project clean. I ran: npm install sudo cordova platform add ios
It gave me this error: Failed to install 'cordova-plugin-firebasex': undefined Failed to restore plugin "cordova-plugin-firebasex" from config.xml. You might need to try adding it again. Error: /Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:439:in `help!': [!] You cannot run CocoaPods as root. (CLAide::Help)
@sajberek I faced some problems like you, and I used firebasex for android, and firebase for ios. it is silly yeap, but it worked.
Bug report
Current behavior:
Currently I cannot add the plugin to the project with ios. all the other plugs install correctly on ios and android, however, when arriving to ios with this plugin I get this error.
Expected behavior:
I don't know how this could be a problem with my code as all others work. I understand that it says that 'unable to CocoaPods as root` but with all the other files cocoapods has no problem installing. Why what makes this plugin different? That's why I think that there might be a problem with the plugin.
Steps to reproduce:
Screenshots
Environment information
cordova -v
: 9.0.0 (cordova-lib@9.0.1)cordova platform ls
com-badrit-base64 0.2.0 "Base64" cordova-android-support-gradle-release 2.1.0 "cordova-android-support-gradle-release" cordova-open-native-settings 1.5.2 "Native settings" cordova-plugin-android-permissions 1.0.0 "Permissions" cordova-plugin-androidx 1.0.2 "cordova-plugin-androidx" cordova-plugin-androidx-adapter 1.1.0 "cordova-plugin-androidx-adapter" cordova-plugin-camera 4.0.3 "Camera" cordova-plugin-device 2.0.2 "Device" cordova-plugin-file 6.0.1 "File" cordova-plugin-file-transfer 1.7.1 "File Transfer" cordova-plugin-firebasex 6.1.0 "Google Firebase Plugin" cordova-plugin-googleplus 8.0.0 "Google SignIn" cordova-plugin-inappbrowser 3.0.0 "InAppBrowser" cordova-plugin-ionic-keyboard 2.1.3 "cordova-plugin-ionic-keyboard" cordova-plugin-ionic-webview 4.1.1 "cordova-plugin-ionic-webview" cordova-plugin-splashscreen 5.0.2 "Splashscreen" cordova-plugin-statusbar 2.4.2 "StatusBar" cordova-plugin-whitelist 1.3.3 "Whitelist" cordova-plugin-x-socialsharing 5.4.7 "SocialSharing" cordova-sqlite-storage 3.2.0 "Cordova sqlite storage plugin - cordova-sqlite-storage plugin version" cordova.plugins.diagnostic 4.0.12 "Diagnostic" es6-promise-plugin 4.2.2 "Promise" onesignal-cordova-plugin 2.6.0 "OneSignal Push Notifications"
ProductName: Mac OS X ProductVersion: 10.14.6 BuildVersion: 18G95
insert any relevant code here such as plugin API calls / input parameters
Podfile found in platforms/ios Install complete for cordova-plugin-file-transfer on ios. Finding scripts for "after_plugin_install" hook from plugin cordova-plugin-file-transfer on ios platform only. No scripts found for hook "after_plugin_install". Installing plugin "cordova-plugin-firebasex" following successful platform add of ios Found variables for "cordova-plugin-firebasex". Processing as cli_variables. Installing "cordova-plugin-firebasex" for ios Running command: /Users/c.francia/Desktop/dicus/dicus/application/app/platforms/ios/cordova/version Command finished with error code 0: /Users/c.francia/Desktop/dicus/dicus/application/app/platforms/ios/cordova/version Running command: /Users/c.francia/Desktop/dicus/dicus/application/app/platforms/ios/cordova/version Command finished with error code 0: /Users/c.francia/Desktop/dicus/dicus/application/app/platforms/ios/cordova/version Dependencies detected, iterating through them... Requesting plugin "cordova-plugin-androidx@^1.0.2". Plugin dependency "cordova-plugin-androidx@1.0.2" already fetched, using that version. Dependent plugin "cordova-plugin-androidx" already installed on ios. Requesting plugin "cordova-plugin-androidx-adapter@^1.1.0". Plugin dependency "cordova-plugin-androidx-adapter@1.1.0" already fetched, using that version. Dependent plugin "cordova-plugin-androidx-adapter" already installed on ios. Finding scripts for "before_plugin_install" hook from plugin cordova-plugin-firebasex on ios platform only. No scripts found for hook "before_plugin_install". Install start for "cordova-plugin-firebasex" on ios. Beginning processing of action stack for ios project... Action stack processing complete. pods.json found in platforms/ios Podfile found in platforms/ios Adding pods since the plugin contained
Set pods.json for '\n"
at /usr/local/lib/node_modules/cordova/bin/cordova:29:15
at processTicksAndRejections (internal/process/task_queues.js:85:5)
[ERROR] An error occurred while running subprocess cordova.
declarations
-use_frameworks!
Added declaration line foruse_frameworks!
Set pods.json forsources
-https://github.com/CocoaPods/Specs.git
Added source line forhttps://github.com/CocoaPods/Specs.git
Set pods.json forlibraries
-Firebase/Core
Added pod line forFirebase/Core
Set pods.json forlibraries
-Firebase/Auth
Added pod line forFirebase/Auth
Set pods.json forlibraries
-Firebase/Messaging
Added pod line forFirebase/Messaging
Set pods.json forlibraries
-Firebase/Performance
Added pod line forFirebase/Performance
Set pods.json forlibraries
-Firebase/RemoteConfig
Added pod line forFirebase/RemoteConfig
Set pods.json forlibraries
-Fabric
Added pod line forFabric
Set pods.json forlibraries
-Crashlytics
Added pod line forCrashlytics
Wrote to pods.json. Wrote to Podfile. Runningpod install
(to install plugins) Failed to install 'cordova-plugin-firebasex': undefined CordovaError: Promise rejected with non-error: "/Library/Ruby/Gems/2.3.0/gems/claide-1.0.3/lib/claide/command.rb:439:inhelp!': \u001b[31m[!] You cannot run CocoaPods as root.\u001b[39m (CLAide::Help)\n" + '\n' + '\u001b[4mUsage:\u001b[24m\n' + '\n' + ' $ \u001b[32mpod\u001b[39m \u001b[32mCOMMAND\u001b[39m\n' + '\n' + ' CocoaPods, the Cocoa library package manager.\n' + '\n' + '\u001b[4mCommands:\u001b[24m\n' + '\n' + ' \u001b[32m+ cache\u001b[39m Manipulate the CocoaPods cache\n' + ' \u001b[32m+ env\u001b[39m Display pod environment\n' + ' \u001b[32m+ init\u001b[39m Generate a Podfile for the current directory\n' + ' \u001b[32m+ install\u001b[39m Install project dependencies according to versions from a\n' + ' Podfile.lock\n' + ' \u001b[32m+ ipc\u001b[39m Inter-process communication\n' + ' \u001b[32m+ lib\u001b[39m Develop pods\n' + ' \u001b[32m+ list\u001b[39m List pods\n' + ' \u001b[32m+ outdated\u001b[39m Show outdated project dependencies\n' + ' \u001b[32m+ repo\u001b[39m Manage spec-repositories\n' + ' \u001b[32m+ setup\u001b[39m Setup the CocoaPods environment\n' + ' \u001b[32m+ spec\u001b[39m Manage pod specs\n' + ' \u001b[32m+ update\u001b[39m Update outdated project dependencies and create new Podfile.lock\n' + '\n' + '\u001b[4mOptions:\u001b[24m\n' + '\n' + ' \u001b[34m--silent\u001b[39m Show nothing\n' + ' \u001b[34m--version\u001b[39m Show the version of the tool\n' + ' \u001b[34m--verbose\u001b[39m Show more debugging information\n' + ' \u001b[34m--no-ansi\u001b[39m Show output without ANSI codes\n' + ' \u001b[34m--help\u001b[39m Show help banner of specified command\n' + "\tfrom /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.5/lib/cocoapods/command.rb:47:in
run'\n" + "\tfrom /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.5/bin/pod:55:in<top (required)>'\n" + "\tfrom /usr/local/bin/pod:22:in
load'\n" + "\tfrom /usr/local/bin/pod:22:in `ionic:utils-process onBeforeExit handler: 'process.exit' received +0ms ionic:utils-process onBeforeExit handler: running 1 functions +0ms ionic:utils-process processExit: exiting (exit code: 1) +45ms