Pushwoosh / pushwoosh-phonegap-plugin

Pushwoosh PhoneGap Build Plugin
Other
110 stars 139 forks source link

"Framework not found Pushwoosh" #171

Closed jlstr closed 8 years ago

jlstr commented 8 years ago

Hello, I have this issue that was previously closed without a clear answer... I have a linker error in XCode the moment I add Pushwoosh.framework

github_issue_1

Here's the SDK (framework):

github_issue_2

I have run out of ideas as to how to finally solve this issue, Any help is totally appreciated.

wfhm commented 8 years ago

Hello Jose,

In the previous thread @shaders recommended you to use the latest plugin version. I had just tried it with our sample and it worked, so could you please let us know whether the issue is reproducible with it on your side?

jlstr commented 8 years ago

Hello @wfhm, Thank you for your reply. The solution is to use this line of code (which @shaders pointed out as well) var pushNotification = cordova.require("pushwoosh-cordova-plugin.PushNotification");

And additionally, NOT using the Pushwoosh.framework SDK as a library inside XCode. If you include it like I did, it will cause the infamous linker error in XCode. This however, tells me the documentation or quick steps guide should be explicit about the Need of using that SDK that comes bundled with the plugin installation.

Anyways, for now this one is solved and thank you once more for your reply.