capacitor-community / fcm

Enable Firebase Cloud Messaging for Capacitor apps
https://capacitor.ionicframework.com/docs/
MIT License
237 stars 83 forks source link

Build Error #14

Closed JoshuvaGeorge03 closed 4 years ago

JoshuvaGeorge03 commented 4 years ago

Hi,

I got build error like below,

No podspec found forCapacitorFcmin../../node_modules/capacitor-fcm`

I have installed capacitor-fcm using npm and run npx cap update ios. I got the above error

Capacitor Info

`capacitor-fcm: 0.0.7

@capacitor/cli: 1.1.1

@capacitor/core: 1.1.1

@capacitor/android: 1.1.1

@capacitor/ios: 1.1.1

`

borodiliz commented 4 years ago

Same error here

✖ Updating iOS native dependencies with "pod install" (may take several minutes):
✖ update ios:
[error] Error running update: Analyzing dependencies
Fetching podspec for `Capacitor` from `../../node_modules/@capacitor/ios`
Fetching podspec for `CapacitorCordova` from `../../node_modules/@capacitor/ios`
Fetching podspec for `CapacitorFcm` from `../../node_modules/capacitor-fcm`
[!] No podspec found for `CapacitorFcm` in `../../node_modules/capacitor-fcm`

ionic info


Ionic:

   Ionic CLI                     : 5.2.7 (/usr/local/lib/node_modules/ionic)
   Ionic Framework               : @ionic/angular 4.8.1
   @angular-devkit/build-angular : 0.801.3
   @angular-devkit/schematics    : 8.1.3
   @angular/cli                  : 8.1.3
   @ionic/angular-toolkit        : 2.0.0

Capacitor:

   Capacitor CLI   : 1.1.1
   @capacitor/core : 1.1.1

Cordova:

   Cordova CLI       : 9.0.0 (cordova-lib@9.0.1)
   Cordova Platforms : none
   Cordova Plugins   : no whitelisted plugins (1 plugins total)

Utility:

   cordova-res : not installed
   native-run  : not installed

System:

   NodeJS : v10.15.1 (/usr/local/bin/node)
   npm    : 6.11.2
   OS     : macOS Mojave
   Xcode  : Xcode 10.3 Build version 10G8
borodiliz commented 4 years ago

@JoshuvaGeorge03 temporally solution:

mv ./node_modules//capacitor-fcm/CapacitorFCM.podspec ./node_modules//capacitor-fcm/CapacitorFcm.podspec
stewones commented 4 years ago

whenever you install a new capacitor plugin you need to run the command

npx cap sync

borodiliz commented 4 years ago

@stewwan yeah, I'm executing npx cap sync NOTE: Probably this is due I'm on a Case-Sensitive file system

diskutil info /|grep Case

File System Personality:   Case-sensitive APFS

Steps to reproduce the problem on new project:

ionic start myBlankApp blank --capacitor cd ./myBlankApp npm install --save capacitor-fcm mkdir www && touch www/index.html sudo gem install cocoapods npx cap add ios

✔ Installing iOS dependencies in 6.89s
✔ Adding native xcode project in: /Users/borja/proyectos/otros/myBlankApp/ios in 15.02ms
✔ add in 6.90s
✔ Copying web assets from www to ios/App/public in 1.80ms
✔ Copying native bridge in 841.37μp
✔ Copying capacitor.config.json in 864.63μp
✔ copy in 21.51ms
✔ Updating iOS plugins in 5.12ms
  Found 1 Capacitor plugin for ios:
    capacitor-fcm (0.0.7)
✖ Updating iOS native dependencies with "pod install" (may take several minutes):
✖ update ios:
[error] Error running update: Analyzing dependencies
Fetching podspec for `Capacitor` from `../../node_modules/@capacitor/ios`
Fetching podspec for `CapacitorCordova` from `../../node_modules/@capacitor/ios`
Fetching podspec for `CapacitorFcm` from `../../node_modules/capacitor-fcm`
[!] No podspec found for `CapacitorFcm` in `../../node_modules/capacitor-fcm`