0

Problem: Not able to build the project both using xcode and ionic cli, I do get the below error.

ld: library not found for -lAeroGear-Push clang: error: linker command failed with exit code 1 (use -v to see invocation)

What I am trying to do:

For push notification, I am using aerogear cordova plugin, it works fine in Android but in iOS I do face lot of issues, Is there any solution for this?

Is there any other way to implement a push notification in Ionic 3?

Balaji Gopal
  • 789
  • 1
  • 6
  • 13

2 Answers2

3

I ran into the same trouble, it was just the pod dependencies that were not installed :

  1. Make sure cocoapods is installed. This command should display the version if it is installed :

    pod --version
    
  2. If cocoapodsis not installed, install it.

    sudo gem install cocoapods
    
  3. install pods dependecies :

    cd ./platforms/ios
    pod install
    
  4. Everything should work fine now :

    cordova build ios
    
n00dl3
  • 21,213
  • 7
  • 66
  • 76
0

I got this issue several builds and weeks after I removed cordova-plugin-googlemaps which uses cocoapods. I resolved it by going to the platforms/ios directory and running the command pod install. After getting a message that there were no dependencies, I closed XCode, re-ran the Ionic build command and opened the XCode workspace file.

The following build worked.

(Ionic v4)

7ahid
  • 420
  • 1
  • 5
  • 12