One, the common causes for "Undefined Symbols for Architecture armv7" is:
-
you import a header and do not link against the correct library . This was common, especially for headers for libraries like quartzcore since it was not included on projects by default. To resolve:
-
You copy files into your project and forgot to check the target to add the filesto. To resolve:
- Open the for the correct target, expand
Compile Sources and add the missing files. Build Phases .m If This is your issue please upvote Cortex ' s answer below as well.
-
You include a static library that's built for another architecture like i386, the simulator on your host machine . To resolve:
-
If you have multiple library files from your libraries vendor to include in the project you need to include the one for th E Simulator (i386) and the one for the device (ARMV7 for example).
-
Optionally, you could create a fat static library that contains both architectures.
Ios--xcode Compilation Problem Summary