Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_PTPusher" #241

Open
samuelrabini opened this issue Nov 29, 2016 · 1 comment
Open

Comments

@samuelrabini
Copy link

samuelrabini commented Nov 29, 2016

I followed all the instruction to install Pusher using Cocoapods and at first run I had no problemi while compiling the solution. Now I'm receiving the error:

Undefined symbols for architecture x86_64:
"OBJC_CLASS$_PTPusher"

Here is my Podfile:

target 'MyEvo' do
pod 'libPusher', git: 'https://github.com/pusher/libPusher.git', branch: 'push-notifications'

target 'MyEvoTests' do
inherit! :search_paths
# Pods for testing
end

target 'MyEvoUITests' do
inherit! :search_paths
# Pods for testing
end

end

Don't where's the problem.
The build fails as soon as I adde the line:

self.pusher = [PTPusher pusherWithKey:APP_KEY delegate:self encrypted:YES];

in the AppDelegate.h

@samuelrabini
Copy link
Author

I found out hot to fix: in Other Linker Flags I remove -lxml2 and added $(inherited) both in debut and release nodes.

Hope this help someone else in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant