Unit testing Cocoa Application built with custom frameworks
Unit testing Cocoa Application built with custom frameworks
- Subject: Unit testing Cocoa Application built with custom frameworks
- From: Appa Rao Mulpuri <email@hidden>
- Date: Mon, 16 Dec 2013 12:33:06 +0000
- Thread-topic: Unit testing Cocoa Application built with custom frameworks
Hi List,
I have an application developed with few custom frameworks and plugins. Started writing Unit tests for the Frameworks first. Unfortunatly, Otect(/Developer/Tools/otest) is giving the crash with the following error:
2013-12-12 18:03:36.280 otest-x86_64[77507:707] The test bundle at /Users/<PATH TO CODE>/Unittest.octest could not be loaded because its Objective-C runtime information does not match the runtime information required by the test rig. This is likely because the test rig is being run with Objective-C garbage collection disabled, but the test bundle requires Objective-C garbage collection. To enable Objective-C garbage collection for the test rig, run it in an environment without the OBJC_DISABLE_GC environment variable.
Tried different combinations by changing Compiler to GCC 4.2 and GC flags. Initially I am using LLVM Compiler 1.6 and GC Unsuported in Build settings. Gone through http://chanson.livejournal.com/119303.html, but no luck.
One way, it is working is with the Static library. I am preparing the equivalent static Library with the same classes available in Framework. But this leads to unnecessary overhead of generating the static library only for Unit tests purpose. I have nearly 15 frameworks in my application, which are built in layered architecture.
I am not getting, how it is working with the static library and not with my framework, though both are static types only.
Regards,
Apparao Mulpuri
This email and any attachments are confidential, and may be legally privileged and protected by copyright. If you are not the intended recipient dissemination or copying of this email is prohibited. If you have received this in error, please notify the sender by replying by email and then delete the email completely from your system. Any views or opinions are solely those of the sender. This communication is not intended to form a binding contract unless expressly indicated to the contrary and properly authorised. Any actions taken on the basis of this email are at the recipient's own risk.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden