Reputation: 929
I have facing the problem in my ios project. symbols not found for architecture x86_64 in xcode clang: error: linker command failed with exit code 1 (use -v to see invocation)
Thanks in advance!!
Upvotes: 8
Views: 25157
Reputation: 34175
ld: symbol(s) not found for
It is compile time error that is cased by Static Linker
ld: symbol(s) not found for ...
...
Undefined symbols for
You should add a library or framework to General -> Linked Frameworks and Libraries
section
Upvotes: 0
Reputation: 9121
In most cases this points to one or more missing references to frameworks in the section Linked Frameworks And Libraries in the Targets settings of the app in Xcode.
To find out which framework reference should be added:
Upvotes: 6
Reputation: 516
I had the exact same problem when running the unit tests for an application that had a custom framework as a dependency. The application was running fine but not its unit tests (I was getting the exact error shown above). I resolved it as follows: - Select the unit test target for the application (e.g. Tests) - Under "Testing" section enable "Allow testing Host Application APIs"
Upvotes: 4