kstenerud / iOS-Universal-Framework

An XCode project template to build universal frameworks (arm7, arm7s, and simulator) for iOS / iPhone.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

XCode5 and XCTest

piresbruno opened this issue · comments

I have a fake framework project that i migrated to XCode5 and it's running well with Mk8.

Now i'm trying to create some unit tests, so i've created a new target for the tests, added the dependencies in "build phases" and the "compile sources" has the ".m" files for the tests i've written.
Under "build settings" i have for architectures "ARCHS_STANDARD" and the valid architectures are i386,arm7,arm7s.

When i try to run the tests i have the following error:

Undefined symbols for architecture i386:
"OBJC_CLASS$_Manager", referenced from:
objc-class-ref in MyFramework_Tests.o
"OBJC_CLASS$_SkyLab", referenced from:
objc-class-ref in MyFramework_Tests.o
ld: symbol(s) not found for architecture i386

Does anyone have any idea what could be making this issue to happen?

Thanks,
Bruno

i have the same problem
Undefined symbols for architecture i386:
"OBJC_CLASS$_myclass", referenced from:
objc-class-ref in ViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

any idea?
thanks

recheck your .m files in your UNIT TEST project(compile sources) and your reference lib(s)

I needn't to check .m files in compile sources when writing unit test without iOS Universal Framework, I think it's a bug and can be imporved