Question

I added a static Library and its header file to my OSX project and added them to Link Binary With Libraries under Build Phases.

Xcode gives me the following warning

ignoring file /Users/sd1212/Desktop/OpenGLPlugin/libClientLib.a, file was built for archive which is not the architecture being linked (x86_64)

and wont let me call any of the library methods. I thought I had an architecture problem, so I looked online... Maybe the instructions weren't clear or something, but I think that I already have the x86_64 architecture added, and I changed "Build Active Architecture only" to "No."

Here is a screen shot of the project's architecture settings

Xcode Screenshot

Please help! Thanks in advance

Was it helpful?

Solution

Look at the project that builds the static library, as well as the project that links to it, and make sure they both build the right architecture. Consider not only the Valid Architectures line, which you highlighted in your screen shot, but also the Architectures setting. The ones that get built are the ones in both lines.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top