Push plugin mac, cocoa pods?

Hi I am building an app using ionic2 and recently installed the push plugin (I’m normally a windows user) I wanted to install this on iOS so on my Mac mini I installed push plugin then was required to install cocoa pods which I did.

Now when I try to install my app in Xcode on an actual iPhone device I get the error in Xcode:

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

Showing Recent Errors Only ld: library not found for -lPods-MyApp

clang: error: linker command failed with exit code 1 (use -v to see invocation)

I have no idea how to debug this and am at a complete loss. I have tried ionic platform rm iOS then add iOS but I still get the same error.

Anyone else had this issue or can point in the right direction? A day spent on this so far and still banging my head against the wall!

Thanks

2 Likes

I have a similar issue – still trying to solve this

37%20pm

Maybe this …

I solved mine by:

install cocopods
sudo gem install pods
this takes ages – which you already know
change directories to platform/ios
cd platform/ios
run pod install
pod install
change directories back your ionic project
cd ../../
run ios build
ionic cordova build ios
the trick is to open the workspace file - not the project file
Build and Run it on real device from there – there shouldn’t be an error now when you build or archive

10 Likes