libpd - linking problems with Xcode 4.5

01 Nov '12

Ran into another problem today with Xcode while updating Snow Music for iPhone’s 5 and found the solution on CDN. Turns out, Xcode 4.5 is causing all kinds of problems with linking static libraries, and the default build settings don’t work with libpd.

The build fails with an error like:

Undefined symbols for architecture armv7s:

And the solution is to go into Build Settings for the main application’s target and change “Build Active Architecture Only” to YES in the Debug configuration (This matches how libpd is set up).

Check out reakinator’s explanation.