The error is..
Undefined symbols for architecture armv7s:
"ABCD_Initialize(ABCD_data_type*)", referenced from:
-[MyViewController doSomething] in MyViewController.o
ld: symbol(s) not found for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I would like to list what all I've done
ABCD_Initialize is a function in header file of the static library i added.
- Checked almost every related question.
- Added all the files to target properly.
- Linked the FAT file (.a file) in the build phases
- lipo on FAT file says it is valid for armv6 armv7 and armv7s
- Set Build Active Architecture Only to YES.
- Added .h file related to the FAT file
- restarted Xcode, Mac etc :)
A few things about my app
- Created a workspace
- Added a few other dependent .xcodeproj files to the workspace.
- Added FAT file (of C++) and linked in build phases
- set -ObjC flag in Other Linker Flags (to Load all members of static archive libraries)
Environment specs
Mountain Lion + Xcode 4.6 + iOS SDK 6.1
Let me know if you need more information. Any help is appreciated.
Thanks
J0k3r