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

Error: pod: Command failed with exit code 31 #43

Closed
peterpeterparker opened this issue Jul 16, 2019 · 31 comments
Closed

Error: pod: Command failed with exit code 31 #43

peterpeterparker opened this issue Jul 16, 2019 · 31 comments
Labels
awaiting response If no response, issue will be closed build issue An issue related to build process support Support is being requested but not a necessarily a bug

Comments

@peterpeterparker
Copy link

peterpeterparker commented Jul 16, 2019

Describe the bug
Hi Dave,

I tried to upgrade to the last version of the plugin and faced a conflict with the iOS platform. I tried then to reproduce the same behavior with a dummy project and I landed on the same problem respectively, when I try to install the last version of the plugin, I face the following error:

Running command: pod install --verbose
Failed to install 'cordova-plugin-firebasex': Error: pod: Command failed with exit code 31
at ChildProcess.whenDone (/myProject/firebasex-pod/node_modules/cordova-common/src/superspawn.js:135:23)
at ChildProcess.emit (events.js:200:13)
at maybeClose (internal/child_process.js:1021:16)
at Socket. (internal/child_process.js:430:11)
at Socket.emit (events.js:200:13)
at Pipe. (net.js:586:12)
pod: Command failed with exit code 31

To Reproduce
Steps to reproduce the behavior:

  1. ionic start myProject
  2. cd myProject
  3. ionic cordova plugin add cordova-plugin-firebasex --save
  4. ionic cordova platform add ios@latest --save

Console Logs

$ ionic cordova platform add ios@latest --save
cordova platform add ios@latest
Using cordova-fetch for cordova-ios@latest
Adding ios project...
Creating Cordova project for the iOS platform:
Path: platforms/ios
Package: io.ionic.starter
Name: MyApp
iOS project created with cordova-ios@5.0.1
Installing "cordova-plugin-firebasex" for ios
Installing "cordova-plugin-androidx" for ios
Running command: pod install --verbose
Failed to install 'cordova-plugin-firebasex': Error: pod: Command failed with exit code 31
at ChildProcess.whenDone (/myProject/firebasex-pod/node_modules/cordova-common/src/superspawn.js:135:23)
at ChildProcess.emit (events.js:200:13)
at maybeClose (internal/child_process.js:1021:16)
at Socket. (internal/child_process.js:430:11)
at Socket.emit (events.js:200:13)
at Pipe. (net.js:586:12)
pod: Command failed with exit code 31
[ERROR] An error occurred while running subprocess cordova.
cordova platform add ios@latest exited with exit code 31.
Re-running this command with the --verbose flag may provide more information.

Plugin Version
v4.0.0

Thx in advance and let me know if I should test or do anything.

P.S.: Rollback to plugin v3.0.1 meantime, doesn't face that problem with it

@dpa99c
Copy link
Owner

dpa99c commented Jul 16, 2019

v4.0.0 of this plugin removes the dependency on cordova-plugin-cocoapod-supportx providing explicit 3rd-party support for Cocoapods and instead relies of cordova@9/cordova-ios@5 to provide implicit support.

Make sure you're using cordova@9 CLI.
Also run pod repo update to be sure it's up-to-date.

When I run your steps to reproduce the issue, it works fine in my environment:

console output

DavesMacDesktop:@scratch dave$ ionic --version
5.2.3
DavesMacDesktop:@scratch dave$ cordova -v
9.0.0 (cordova-lib@9.0.1)
DavesMacDesktop:@scratch dave$ node -v
v10.13.0
DavesMacDesktop:@scratch dave$ npm -v
6.4.1
DavesMacDesktop:@scratch dave$ ionic start myProject

Let's pick the perfect starter template! 💪

Starter templates are ready-to-go Ionic apps that come packed with everything you need to build your app. To bypass this
prompt next time, supply template, the second argument to ionic start.

? Starter template: blank
✔ Preparing directory ./myProject - done!
✔ Downloading and extracting blank starter - done!

Installing dependencies may take several minutes.

  ──────────────────────────────────────────────────────────────────────────────

         Ionic Advisory, tailored solutions and expert services by Ionic

                             Go to market faster 🏆
                    Real-time troubleshooting and guidance 💁
        Custom training, best practices, code and architecture reviews 🔎
      Customized strategies for every phase of the development lifecycle 🔮

                        👉  https://ion.link/advisory  👈

  ──────────────────────────────────────────────────────────────────────────────


> npm i

> fsevents@1.2.9 install /Users/dave/Documents/projects/@scratch/myProject/node_modules/fsevents
> node install

node-pre-gyp WARN Using request for node-pre-gyp https download 
[fsevents] Success: "/Users/dave/Documents/projects/@scratch/myProject/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node" is installed via remote

> node-sass@4.12.0 install /Users/dave/Documents/projects/@scratch/myProject/node_modules/node-sass
> node scripts/install.js

Cached binary found at /Users/dave/.npm/node-sass/4.12.0/darwin-x64-64_binding.node

> core-js@2.6.9 postinstall /Users/dave/Documents/projects/@scratch/myProject/node_modules/core-js
> node scripts/postinstall || echo "ignore"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
> https://opencollective.com/core-js 
> https://www.patreon.com/zloirock 

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)


> node-sass@4.12.0 postinstall /Users/dave/Documents/projects/@scratch/myProject/node_modules/node-sass
> node scripts/build.js

Binary found at /Users/dave/Documents/projects/@scratch/myProject/node_modules/node-sass/vendor/darwin-x64-64/binding.node
Testing binary
Binary is fine
npm notice created a lockfile as package-lock.json. You should commit this file.
added 1188 packages from 1062 contributors and audited 54002 packages in 48.138s
found 0 vulnerabilities

> git init
Initialized empty Git repository in /Users/dave/Documents/projects/@scratch/myProject/.git/
> git add -A
> git commit -m "Initial commit" --no-gpg-sign
[master (root-commit) b6cfafd] Initial commit
 37 files changed, 11746 insertions(+)
 create mode 100644 .gitignore
 create mode 100644 angular.json
 create mode 100644 e2e/protractor.conf.js
 create mode 100644 e2e/src/app.e2e-spec.ts
 create mode 100644 e2e/src/app.po.ts
 create mode 100644 e2e/tsconfig.e2e.json
 create mode 100644 ionic.config.json
 create mode 100644 package-lock.json
 create mode 100644 package.json
 create mode 100644 src/app/app-routing.module.ts
 create mode 100644 src/app/app.component.html
 create mode 100644 src/app/app.component.spec.ts
 create mode 100644 src/app/app.component.ts
 create mode 100644 src/app/app.module.ts
 create mode 100644 src/app/app.scss
 create mode 100644 src/app/home/home.module.ts
 create mode 100644 src/app/home/home.page.html
 create mode 100644 src/app/home/home.page.scss
 create mode 100644 src/app/home/home.page.spec.ts
 create mode 100644 src/app/home/home.page.ts
 create mode 100644 src/assets/icon/favicon.png
 create mode 100644 src/assets/shapes.svg
 create mode 100644 src/environments/environment.prod.ts
 create mode 100644 src/environments/environment.ts
 create mode 100644 src/global.scss
 create mode 100644 src/index.html
 create mode 100644 src/karma.conf.js
 create mode 100644 src/main.ts
 create mode 100644 src/polyfills.ts
 create mode 100644 src/test.ts
 create mode 100644 src/theme/variables.scss
 create mode 100644 src/tsconfig.app.json
 create mode 100644 src/tsconfig.spec.json
 create mode 100644 src/tslint.json
 create mode 100644 src/zone-flags.ts
 create mode 100644 tsconfig.json
 create mode 100644 tslint.json

[INFO] Next Steps:
       
       - Go to your newly created project: cd ./myProject
       - Run ionic serve within the app directory to see your app
       - Build features and components: https://ion.link/scaffolding-docs
       - Get Ionic DevApp for easy device testing: https://ion.link/devapp
DavesMacDesktop:@scratch dave$ cd myProject/
DavesMacDesktop:myProject dave$ ionic cordova plugin add cordova-plugin-firebasex --save
> ionic integrations enable cordova
[INFO] Downloading integration cordova
[INFO] Copying integrations files to project
CREATE resources
CREATE resources/splash.png
CREATE resources/ios
CREATE resources/ios/splash
CREATE resources/ios/splash/Default~iphone.png
CREATE resources/ios/splash/Default@2x~universal~anyany.png
CREATE resources/ios/splash/Default@2x~iphone.png
CREATE resources/ios/splash/Default-Portrait~ipad.png
CREATE resources/ios/splash/Default-Portrait@~ipadpro.png
CREATE resources/ios/splash/Default-Portrait@2x~ipad.png
CREATE resources/ios/splash/Default-Landscape~ipad.png
CREATE resources/ios/splash/Default-Landscape@~ipadpro.png
CREATE resources/ios/splash/Default-Landscape@2x~ipad.png
CREATE resources/ios/splash/Default-Landscape-736h.png
CREATE resources/ios/splash/Default-Landscape-2436h.png
CREATE resources/ios/splash/Default-736h.png
CREATE resources/ios/splash/Default-667h.png
CREATE resources/ios/splash/Default-568h@2x~iphone.png
CREATE resources/ios/splash/Default-2436h.png
CREATE resources/ios/icon
CREATE resources/ios/icon/icon@2x.png
CREATE resources/ios/icon/icon.png
CREATE resources/ios/icon/icon-small@3x.png
CREATE resources/ios/icon/icon-small@2x.png
CREATE resources/ios/icon/icon-small.png
CREATE resources/ios/icon/icon-98@2x.png
CREATE resources/ios/icon/icon-86@2x.png
CREATE resources/ios/icon/icon-83.5@2x.png
CREATE resources/ios/icon/icon-76@2x.png
CREATE resources/ios/icon/icon-76.png
CREATE resources/ios/icon/icon-72@2x.png
CREATE resources/ios/icon/icon-72.png
CREATE resources/ios/icon/icon-60@3x.png
CREATE resources/ios/icon/icon-60@2x.png
CREATE resources/ios/icon/icon-60.png
CREATE resources/ios/icon/icon-50@2x.png
CREATE resources/ios/icon/icon-50.png
CREATE resources/ios/icon/icon-44@2x.png
CREATE resources/ios/icon/icon-40@3x.png
CREATE resources/ios/icon/icon-40@2x.png
CREATE resources/ios/icon/icon-40.png
CREATE resources/ios/icon/icon-29@3x.png
CREATE resources/ios/icon/icon-29@2x.png
CREATE resources/ios/icon/icon-29.png
CREATE resources/ios/icon/icon-27.5@2x.png
CREATE resources/ios/icon/icon-24@2x.png
CREATE resources/ios/icon/icon-20@3x.png
CREATE resources/ios/icon/icon-20@2x.png
CREATE resources/ios/icon/icon-20.png
CREATE resources/ios/icon/icon-1024.png
CREATE resources/icon.png
CREATE resources/android
CREATE resources/android/xml
CREATE resources/android/xml/network_security_config.xml
CREATE resources/android/splash
CREATE resources/android/splash/drawable-port-xxxhdpi-screen.png
CREATE resources/android/splash/drawable-port-xxhdpi-screen.png
CREATE resources/android/splash/drawable-port-xhdpi-screen.png
CREATE resources/android/splash/drawable-port-mdpi-screen.png
CREATE resources/android/splash/drawable-port-ldpi-screen.png
CREATE resources/android/splash/drawable-port-hdpi-screen.png
CREATE resources/android/splash/drawable-land-xxxhdpi-screen.png
CREATE resources/android/splash/drawable-land-xxhdpi-screen.png
CREATE resources/android/splash/drawable-land-xhdpi-screen.png
CREATE resources/android/splash/drawable-land-mdpi-screen.png
CREATE resources/android/splash/drawable-land-ldpi-screen.png
CREATE resources/android/splash/drawable-land-hdpi-screen.png
CREATE resources/android/icon
CREATE resources/android/icon/drawable-xxxhdpi-icon.png
CREATE resources/android/icon/drawable-xxhdpi-icon.png
CREATE resources/android/icon/drawable-xhdpi-icon.png
CREATE resources/android/icon/drawable-mdpi-icon.png
CREATE resources/android/icon/drawable-ldpi-icon.png
CREATE resources/android/icon/drawable-hdpi-icon.png
CREATE resources/README.md
CREATE config.xml
[OK] Integration cordova added!
✔ Creating ./www directory for you - done!
> cordova plugin add cordova-plugin-firebasex
Adding cordova-plugin-firebasex to package.json
DavesMacDesktop:myProject dave$ ionic cordova plugin add cordova-plugin-firebasex --save
> cordova plugin add cordova-plugin-firebasex
Adding cordova-plugin-firebasex to package.json
DavesMacDesktop:myProject dave$ ionic cordova platform add ios@latest --save
> cordova platform add ios@latest
Using cordova-fetch for cordova-ios@latest
Adding ios project...
Creating Cordova project for the iOS platform:
	Path: platforms/ios
	Package: io.ionic.starter
	Name: MyApp
iOS project created with cordova-ios@5.0.1
Installing "cordova-plugin-firebasex" for ios
Installing "cordova-plugin-androidx" for ios
Installing "cordova-plugin-androidx-adapter" for ios
Running command: pod install --verbose

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

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

Plugin 'cordova-plugin-whitelist' found in config.xml... Migrating it to package.json
Plugin 'cordova-plugin-statusbar' found in config.xml... Migrating it to package.json
Plugin 'cordova-plugin-device' found in config.xml... Migrating it to package.json
Plugin 'cordova-plugin-splashscreen' found in config.xml... Migrating it to package.json
Plugin 'cordova-plugin-ionic-webview' found in config.xml... Migrating it to package.json
Plugin 'cordova-plugin-ionic-keyboard' found in config.xml... Migrating it to package.json
Discovered saved plugin "cordova-plugin-whitelist". Adding it to the project
Installing "cordova-plugin-whitelist" for ios
Adding cordova-plugin-whitelist to package.json
Discovered saved plugin "cordova-plugin-statusbar". Adding it to the project
Installing "cordova-plugin-statusbar" for ios
Adding cordova-plugin-statusbar to package.json
Discovered saved plugin "cordova-plugin-device". Adding it to the project
Installing "cordova-plugin-device" for ios
Adding cordova-plugin-device to package.json
Discovered saved plugin "cordova-plugin-splashscreen". Adding it to the project
Installing "cordova-plugin-splashscreen" for ios
Adding cordova-plugin-splashscreen to package.json
Discovered saved plugin "cordova-plugin-ionic-webview". Adding it to the project
Installing "cordova-plugin-ionic-webview" for ios
Adding cordova-plugin-ionic-webview to package.json
Discovered saved plugin "cordova-plugin-ionic-keyboard". Adding it to the project
Installing "cordova-plugin-ionic-keyboard" for ios
Adding cordova-plugin-ionic-keyboard to package.json
Preparing Firebase on iOS
DavesMacDesktop:myProject dave$ 


FYI I've just released v5.0.0 of this plugin which contains a major rework of the cloud messaging functionality to resolve existing bugs and add new functionality.

@dpa99c dpa99c added build issue An issue related to build process support Support is being requested but not a necessarily a bug awaiting response If no response, issue will be closed labels Jul 16, 2019
@peterpeterparker
Copy link
Author

peterpeterparker commented Jul 16, 2019

@dpa99c thx for the feedback 👍

pod repo update
sudo gem install cocoapods

seems to have solve the above install issue.

on the other side, I face the following error at build time, any idea?

** BUILD FAILED **


The following build commands failed:
	CompileC /me/Library/Developer/Xcode/DerivedData/MyApp-eksufibcwsawgkfnajhtvzenhkzg/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FirebaseAuth.build/Objects-normal/x86_64/FIRAuthBackend.o /me/myProject33/platforms/ios/Pods/FirebaseAuth/Firebase/Auth/Source/Backend/FIRAuthBackend.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
xcodebuild: Command failed with exit code 65

Same with v4.0.0 or v5.0.0 of the plugin

I tried in a new project too like

  1. ionic start myProject33
  2. cd myProject33
  3. ionic cordova plugin add cordova-plugin-firebasex --save
  4. ionic cordova platform add ios@latest --save
  5. ionic cordova build ios

@dpa99c
Copy link
Owner

dpa99c commented Jul 16, 2019

Try setting the signing configuration for the project - error code 65 is normally related to app signing issues.
i.e. change package name to once which your Team ID has ownership and a valid provisioning profile

  • either open the .xcworkspace manually and set signing config
  • or place a valid build.json in project directory

In my environment, your test case builds fine: console.log

@peterpeterparker
Copy link
Author

@dpa99c thx for the feedback and suggestion.

I really tried multiple times with my real project, where my signing config is correct, removing platforms and plugins, adding them again, new build, etc. etc., setting and unsetting and setting again my signing profile, always land on this error no matter what

If I remove the plugin it's ok but now even if I downgrade to v3.0.1, I face the problem too 😔

Pretty sure it's something linked to my setup, sorry for that

@dpa99c
Copy link
Owner

dpa99c commented Jul 16, 2019

Can you build your real project in Xcode?

@peterpeterparker
Copy link
Author

Right only if I remove the cordova-plugin-firebasex, if I do so, yes

@dpa99c
Copy link
Owner

dpa99c commented Jul 16, 2019

Are you able to build the example project?
(you may need to change the package name to one you own)

@peterpeterparker
Copy link
Author

Just to be sure, with "change the package name" you mean changing the widget id in config.xml and removing/adding the platform again right?

if so, nope same error with your example project

@peterpeterparker
Copy link
Author

Xcode v10.2.1 if it might be the problem

@dpa99c
Copy link
Owner

dpa99c commented Jul 16, 2019

yeah, that's what I meant.
seems something is not right in your build environment.
I suggest checking the provisioning profiles are up-to-date and that your package ID has push notifications enabled in the Apple Member Center.

I have Xcode 10.2.1 and 11.0 beta 3 installed.

@dpa99c
Copy link
Owner

dpa99c commented Jul 16, 2019

image

image

@peterpeterparker
Copy link
Author

peterpeterparker commented Jul 16, 2019

Thx really appreciated 👍

I've successfully build and send to apple a version of the app this morning (with push in it). Double checked the certificates too, they are valid till mid 2020

In the meantime I created another app and updated POD

@peterpeterparker
Copy link
Author

If I build the project in Xcode it fails with the following error

'GTMSessionFetcher/GTMSessionFetcher.h' file not found

@dpa99c
Copy link
Owner

dpa99c commented Jul 16, 2019

OK, cool. Just trying to rule out possible causes 😀

@peterpeterparker
Copy link
Author

@dpa99c I do really appreciate your help, specially because I'm pretty sure something is weird on my side

@dpa99c
Copy link
Owner

dpa99c commented Jul 16, 2019

SessionFetcher/GTMSessionFetcher.h' file not found

Just to confirm - you are opening the .xcworkspace (and not .xcodeproj)?

Because it looks like it's failing to find Pod dependencies

@peterpeterparker
Copy link
Author

Yep

Capture d’écran 2019-07-16 à 22 57 48

Capture d’écran 2019-07-16 à 22 56 16

@dpa99c
Copy link
Owner

dpa99c commented Jul 16, 2019

Screenshot 2019-07-16 at 22 03 16

@peterpeterparker
Copy link
Author

Thx! Ok so that POD error is gone. I have uninstalled, cleaned and reinstalled and updated POD to solve that

@peterpeterparker
Copy link
Author

And I'm able to build the test project 🎉

@dpa99c
Copy link
Owner

dpa99c commented Jul 16, 2019

😎 that's a good working reference point

@peterpeterparker
Copy link
Author

And I'm able to build my real project too using the last version of the plugin both iOS and Android 🎉🎉🎉

So the key was to update cocoapods but also doing a clean install first

Thx a lot for the support Dave, you are the best 👍

@dpa99c
Copy link
Owner

dpa99c commented Jul 16, 2019

😄 no worries, I've learned something more too about Xcode and iOS build environments!

Checkout the new features of v5 - I hope you can make use of them - the example project is a good demonstration of how FCM notification messages can be customised on iOS & Android

@peterpeterparker
Copy link
Author

I already know my client will love to be able to customize messages

P.S.: I didn't found a way to add a msg to the donation I just sent you, so just wanted to say again thx and have a drink on me 😉

@dpa99c
Copy link
Owner

dpa99c commented Jul 16, 2019

Thanks mate, enjoy going crazy with custom notification sounds and icons, etc. 😆

@chinmayatos
Copy link

v4.0.0 of this plugin removes the dependency on cordova-plugin-cocoapod-supportx providing explicit 3rd-party support for Cocoapods and instead relies of cordova@9/cordova-ios@5 to provide implicit support.

Make sure you're using cordova@9 CLI.
Also run pod repo update to be sure it's up-to-date.

When I run your steps to reproduce the issue, it works fine in my environment:

console output


DavesMacDesktop:@scratch dave$ ionic --version
5.2.3
DavesMacDesktop:@scratch dave$ cordova -v
9.0.0 (cordova-lib@9.0.1)
DavesMacDesktop:@scratch dave$ node -v
v10.13.0
DavesMacDesktop:@scratch dave$ npm -v
6.4.1
DavesMacDesktop:@scratch dave$ ionic start myProject

Let's pick the perfect starter template! 💪

Starter templates are ready-to-go Ionic apps that come packed with everything you need to build your app. To bypass this
prompt next time, supply template, the second argument to ionic start.

? Starter template: blank
✔ Preparing directory ./myProject - done!
✔ Downloading and extracting blank starter - done!

Installing dependencies may take several minutes.

  ──────────────────────────────────────────────────────────────────────────────

         Ionic Advisory, tailored solutions and expert services by Ionic

                             Go to market faster 🏆
                    Real-time troubleshooting and guidance 💁
        Custom training, best practices, code and architecture reviews 🔎
      Customized strategies for every phase of the development lifecycle 🔮

                        👉  https://ion.link/advisory  👈

  ──────────────────────────────────────────────────────────────────────────────


> npm i

> fsevents@1.2.9 install /Users/dave/Documents/projects/@scratch/myProject/node_modules/fsevents
> node install

node-pre-gyp WARN Using request for node-pre-gyp https download 
[fsevents] Success: "/Users/dave/Documents/projects/@scratch/myProject/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node" is installed via remote

> node-sass@4.12.0 install /Users/dave/Documents/projects/@scratch/myProject/node_modules/node-sass
> node scripts/install.js

Cached binary found at /Users/dave/.npm/node-sass/4.12.0/darwin-x64-64_binding.node

> core-js@2.6.9 postinstall /Users/dave/Documents/projects/@scratch/myProject/node_modules/core-js
> node scripts/postinstall || echo "ignore"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
> https://opencollective.com/core-js 
> https://www.patreon.com/zloirock 

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)


> node-sass@4.12.0 postinstall /Users/dave/Documents/projects/@scratch/myProject/node_modules/node-sass
> node scripts/build.js

Binary found at /Users/dave/Documents/projects/@scratch/myProject/node_modules/node-sass/vendor/darwin-x64-64/binding.node
Testing binary
Binary is fine
npm notice created a lockfile as package-lock.json. You should commit this file.
added 1188 packages from 1062 contributors and audited 54002 packages in 48.138s
found 0 vulnerabilities

> git init
Initialized empty Git repository in /Users/dave/Documents/projects/@scratch/myProject/.git/
> git add -A
> git commit -m "Initial commit" --no-gpg-sign
[master (root-commit) b6cfafd] Initial commit
 37 files changed, 11746 insertions(+)
 create mode 100644 .gitignore
 create mode 100644 angular.json
 create mode 100644 e2e/protractor.conf.js
 create mode 100644 e2e/src/app.e2e-spec.ts
 create mode 100644 e2e/src/app.po.ts
 create mode 100644 e2e/tsconfig.e2e.json
 create mode 100644 ionic.config.json
 create mode 100644 package-lock.json
 create mode 100644 package.json
 create mode 100644 src/app/app-routing.module.ts
 create mode 100644 src/app/app.component.html
 create mode 100644 src/app/app.component.spec.ts
 create mode 100644 src/app/app.component.ts
 create mode 100644 src/app/app.module.ts
 create mode 100644 src/app/app.scss
 create mode 100644 src/app/home/home.module.ts
 create mode 100644 src/app/home/home.page.html
 create mode 100644 src/app/home/home.page.scss
 create mode 100644 src/app/home/home.page.spec.ts
 create mode 100644 src/app/home/home.page.ts
 create mode 100644 src/assets/icon/favicon.png
 create mode 100644 src/assets/shapes.svg
 create mode 100644 src/environments/environment.prod.ts
 create mode 100644 src/environments/environment.ts
 create mode 100644 src/global.scss
 create mode 100644 src/index.html
 create mode 100644 src/karma.conf.js
 create mode 100644 src/main.ts
 create mode 100644 src/polyfills.ts
 create mode 100644 src/test.ts
 create mode 100644 src/theme/variables.scss
 create mode 100644 src/tsconfig.app.json
 create mode 100644 src/tsconfig.spec.json
 create mode 100644 src/tslint.json
 create mode 100644 src/zone-flags.ts
 create mode 100644 tsconfig.json
 create mode 100644 tslint.json

[INFO] Next Steps:
       
       - Go to your newly created project: cd ./myProject
       - Run ionic serve within the app directory to see your app
       - Build features and components: https://ion.link/scaffolding-docs
       - Get Ionic DevApp for easy device testing: https://ion.link/devapp
DavesMacDesktop:@scratch dave$ cd myProject/
DavesMacDesktop:myProject dave$ ionic cordova plugin add cordova-plugin-firebasex --save
> ionic integrations enable cordova
[INFO] Downloading integration cordova
[INFO] Copying integrations files to project
CREATE resources
CREATE resources/splash.png
CREATE resources/ios
CREATE resources/ios/splash
CREATE resources/ios/splash/Default~iphone.png
CREATE resources/ios/splash/Default@2x~universal~anyany.png
CREATE resources/ios/splash/Default@2x~iphone.png
CREATE resources/ios/splash/Default-Portrait~ipad.png
CREATE resources/ios/splash/Default-Portrait@~ipadpro.png
CREATE resources/ios/splash/Default-Portrait@2x~ipad.png
CREATE resources/ios/splash/Default-Landscape~ipad.png
CREATE resources/ios/splash/Default-Landscape@~ipadpro.png
CREATE resources/ios/splash/Default-Landscape@2x~ipad.png
CREATE resources/ios/splash/Default-Landscape-736h.png
CREATE resources/ios/splash/Default-Landscape-2436h.png
CREATE resources/ios/splash/Default-736h.png
CREATE resources/ios/splash/Default-667h.png
CREATE resources/ios/splash/Default-568h@2x~iphone.png
CREATE resources/ios/splash/Default-2436h.png
CREATE resources/ios/icon
CREATE resources/ios/icon/icon@2x.png
CREATE resources/ios/icon/icon.png
CREATE resources/ios/icon/icon-small@3x.png
CREATE resources/ios/icon/icon-small@2x.png
CREATE resources/ios/icon/icon-small.png
CREATE resources/ios/icon/icon-98@2x.png
CREATE resources/ios/icon/icon-86@2x.png
CREATE resources/ios/icon/icon-83.5@2x.png
CREATE resources/ios/icon/icon-76@2x.png
CREATE resources/ios/icon/icon-76.png
CREATE resources/ios/icon/icon-72@2x.png
CREATE resources/ios/icon/icon-72.png
CREATE resources/ios/icon/icon-60@3x.png
CREATE resources/ios/icon/icon-60@2x.png
CREATE resources/ios/icon/icon-60.png
CREATE resources/ios/icon/icon-50@2x.png
CREATE resources/ios/icon/icon-50.png
CREATE resources/ios/icon/icon-44@2x.png
CREATE resources/ios/icon/icon-40@3x.png
CREATE resources/ios/icon/icon-40@2x.png
CREATE resources/ios/icon/icon-40.png
CREATE resources/ios/icon/icon-29@3x.png
CREATE resources/ios/icon/icon-29@2x.png
CREATE resources/ios/icon/icon-29.png
CREATE resources/ios/icon/icon-27.5@2x.png
CREATE resources/ios/icon/icon-24@2x.png
CREATE resources/ios/icon/icon-20@3x.png
CREATE resources/ios/icon/icon-20@2x.png
CREATE resources/ios/icon/icon-20.png
CREATE resources/ios/icon/icon-1024.png
CREATE resources/icon.png
CREATE resources/android
CREATE resources/android/xml
CREATE resources/android/xml/network_security_config.xml
CREATE resources/android/splash
CREATE resources/android/splash/drawable-port-xxxhdpi-screen.png
CREATE resources/android/splash/drawable-port-xxhdpi-screen.png
CREATE resources/android/splash/drawable-port-xhdpi-screen.png
CREATE resources/android/splash/drawable-port-mdpi-screen.png
CREATE resources/android/splash/drawable-port-ldpi-screen.png
CREATE resources/android/splash/drawable-port-hdpi-screen.png
CREATE resources/android/splash/drawable-land-xxxhdpi-screen.png
CREATE resources/android/splash/drawable-land-xxhdpi-screen.png
CREATE resources/android/splash/drawable-land-xhdpi-screen.png
CREATE resources/android/splash/drawable-land-mdpi-screen.png
CREATE resources/android/splash/drawable-land-ldpi-screen.png
CREATE resources/android/splash/drawable-land-hdpi-screen.png
CREATE resources/android/icon
CREATE resources/android/icon/drawable-xxxhdpi-icon.png
CREATE resources/android/icon/drawable-xxhdpi-icon.png
CREATE resources/android/icon/drawable-xhdpi-icon.png
CREATE resources/android/icon/drawable-mdpi-icon.png
CREATE resources/android/icon/drawable-ldpi-icon.png
CREATE resources/android/icon/drawable-hdpi-icon.png
CREATE resources/README.md
CREATE config.xml
[OK] Integration cordova added!
✔ Creating ./www directory for you - done!
> cordova plugin add cordova-plugin-firebasex
Adding cordova-plugin-firebasex to package.json
DavesMacDesktop:myProject dave$ ionic cordova plugin add cordova-plugin-firebasex --save
> cordova plugin add cordova-plugin-firebasex
Adding cordova-plugin-firebasex to package.json
DavesMacDesktop:myProject dave$ ionic cordova platform add ios@latest --save
> cordova platform add ios@latest
Using cordova-fetch for cordova-ios@latest
Adding ios project...
Creating Cordova project for the iOS platform:
	Path: platforms/ios
	Package: io.ionic.starter
	Name: MyApp
iOS project created with cordova-ios@5.0.1
Installing "cordova-plugin-firebasex" for ios
Installing "cordova-plugin-androidx" for ios
Installing "cordova-plugin-androidx-adapter" for ios
Running command: pod install --verbose

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

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

Plugin 'cordova-plugin-whitelist' found in config.xml... Migrating it to package.json
Plugin 'cordova-plugin-statusbar' found in config.xml... Migrating it to package.json
Plugin 'cordova-plugin-device' found in config.xml... Migrating it to package.json
Plugin 'cordova-plugin-splashscreen' found in config.xml... Migrating it to package.json
Plugin 'cordova-plugin-ionic-webview' found in config.xml... Migrating it to package.json
Plugin 'cordova-plugin-ionic-keyboard' found in config.xml... Migrating it to package.json
Discovered saved plugin "cordova-plugin-whitelist". Adding it to the project
Installing "cordova-plugin-whitelist" for ios
Adding cordova-plugin-whitelist to package.json
Discovered saved plugin "cordova-plugin-statusbar". Adding it to the project
Installing "cordova-plugin-statusbar" for ios
Adding cordova-plugin-statusbar to package.json
Discovered saved plugin "cordova-plugin-device". Adding it to the project
Installing "cordova-plugin-device" for ios
Adding cordova-plugin-device to package.json
Discovered saved plugin "cordova-plugin-splashscreen". Adding it to the project
Installing "cordova-plugin-splashscreen" for ios
Adding cordova-plugin-splashscreen to package.json
Discovered saved plugin "cordova-plugin-ionic-webview". Adding it to the project
Installing "cordova-plugin-ionic-webview" for ios
Adding cordova-plugin-ionic-webview to package.json
Discovered saved plugin "cordova-plugin-ionic-keyboard". Adding it to the project
Installing "cordova-plugin-ionic-keyboard" for ios
Adding cordova-plugin-ionic-keyboard to package.json
Preparing Firebase on iOS
DavesMacDesktop:myProject dave$ 

FYI I've just released v5.0.0 of this plugin which contains a major rework of the cloud messaging functionality to resolve existing bugs and add new functionality.

BUILD SUCCEEDED message not displaying on build ios project.
Using latest 6.0.7 version

@LincolnTx
Copy link

Hey some one here could help me? I already made all those stuffs you guys saied, and my app's builds fine, but when i run it on emulator it's stucks on splash screen, the console still show things, but teh splash screen never outs

@salehasadi
Copy link

Hey some one here could help me? I already made all those stuffs you guys saied, and my app's builds fine, but when i run it on emulator it's stucks on splash screen, the console still show things, but teh splash screen never outs

same here

@Crypt0Graphic
Copy link

I had this error when i had installed cordova-plugin-firebase-dynamiclinks. Then i found a workaround and updated pplatforms/ios/podfiles as:

pod 'Firebase/Analytics', '~> 6.13.0'
pod 'Firebase/DynamicLinks', '~> 6.13.0'

Then it's ok. I could install and build FirebaseX. Be careful about versions in podfile.

@stasslobodian
Copy link

What helped me was to specify the versions in package.json as follows:

"cordova-plugin-firebasex": {
        "FIREBASE_ANALYTICS_COLLECTION_ENABLED": "true",
        "FIREBASE_PERFORMANCE_COLLECTION_ENABLED": "true",
        "FIREBASE_CRASHLYTICS_COLLECTION_ENABLED": "true",
        "ANDROID_ICON_ACCENT": "#FF00FFFF",
        "ANDROID_PLAY_SERVICES_TAGMANAGER_VERSION": "17.0.0",
        "ANDROID_FIREBASE_ANALYTICS_VERSION": "17.2.1",
        "ANDROID_FIREBASE_MESSAGING_VERSION": "20.0.0",
        "ANDROID_FIREBASE_CONFIG_VERSION": "19.0.3",
        "ANDROID_FIREBASE_PERF_VERSION": "19.0.1",
        "ANDROID_FIREBASE_AUTH_VERSION": "19.1.0",
        "ANDROID_CRASHLYTICS_VERSION": "2.10.1",
        "ANDROID_CRASHLYTICS_NDK_VERSION": "2.1.1"
      },

@OS-Sado
Copy link

OS-Sado commented May 13, 2020

I still have this error:
Failed to install 'cordova-plugin-firebasex': Error: pod: Command failed with exit code 1 at ChildProcess.whenDone (/Users/osado/Desktop/Projekte/Test/cordova-plugin-firebasex-test/node_modules/cordova-common/src/superspawn.js:135:23) at ChildProcess.emit (events.js:200:13) at maybeClose (internal/child_process.js:1021:16) at Socket.<anonymous> (internal/child_process.js:430:11) at Socket.emit (events.js:200:13) at Pipe.<anonymous> (net.js:586:12) Failed to restore plugin "cordova-plugin-firebasex" from config.xml. You might need to try adding it again. Error: Error: pod: Command failed with exit code 1

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 support Support is being requested but not a necessarily a bug
Projects
None yet
Development

No branches or pull requests

8 participants