# Push plugin mac, cocoa pods?

**URL:** <https://forum.ionicframework.com/t/push-plugin-mac-cocoa-pods/85124>\
**Category:** ionic-v3\
**Created:** [April 2, 2017, 11:54am UTC](https://forum.ionicframework.com/t/push-plugin-mac-cocoa-pods/85124 "2017-04-02T11:54:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Munn](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/munn/32/116715_2.png) [@Munn](https://forum.ionicframework.com/u/Munn)\
**Post date:** [April 2, 2017, 11:54am UTC](https://forum.ionicframework.com/t/push-plugin-mac-cocoa-pods/85124/1 "2017-04-02T11:54:38Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![neilbo21](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/neilbo21/32/119158_2.png) [@neilbo21](https://forum.ionicframework.com/u/neilbo21)\
**Post date:** [September 26, 2018, 6:52am UTC](https://forum.ionicframework.com/t/push-plugin-mac-cocoa-pods/85124/2 "2018-09-26T06:52:36Z")

</div>

I have a similar issue – still trying to solve this

![37%20pm](https://global.discourse-cdn.com/ionicframework/original/3X/9/3/93239fb8218d84f230ab22c7857523f67c8d059f.png)

Maybe this …

> <https://stackoverflow.com/questions/43870142/ld-library-not-found-for-laerogear-push-clang-error-linker-command-failed-wi>

---

<div class="post-metadata">

**Author:** ![neilbo21](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/neilbo21/32/119158_2.png) [@neilbo21](https://forum.ionicframework.com/u/neilbo21)\
**Post date:** [September 30, 2018, 5:32am UTC](https://forum.ionicframework.com/t/push-plugin-mac-cocoa-pods/85124/3 "2018-09-30T05:32:16Z")

</div>

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
