Skip to content
This repository has been archived by the owner on Nov 29, 2022. It is now read-only.

Undefined symbols for architecture x86_64: #68

Open
victorshablyko opened this issue Mar 18, 2017 · 1 comment
Open

Undefined symbols for architecture x86_64: #68

victorshablyko opened this issue Mar 18, 2017 · 1 comment

Comments

@victorshablyko
Copy link

Hi, i used pods to import framework but now I can't build my project.

First I got 2 errors:

Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_DZNWebViewController", referenced from:
      objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Then I've added this to Other Linker Flags(I see this flag in example project): -l"Pods-DZNWebViewController"
And now I get this error:

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

I can't build after first try to allocate DZNWebViewController in my AppDelegate

DZNWebViewController *controller = [[DZNWebViewController alloc] initWithURL:[NSURL URLWithString:@"https://dribbble.com/"]];

What's wrong with my project?

@victorshablyko
Copy link
Author

OK, I've tried to update pods and I got few warnings:

target overrides the `LIBRARY_SEARCH_PATHS` ...
    - Use the `$(inherited)` flag

So I've added $(inherited) to Other Linker Flags and to Frameworks, Headers and Library Search Paths

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

No branches or pull requests

1 participant