开发者

Am I including my unit tests in my Ad Hoc archive?

开发者 https://www.devze.com 2023-03-31 22:30 出处:网络
I\'m preparing an ad-hoc release of our app to send off for UAT, and the Archive step is failing because of a linker problem while building my unit tests:

I'm preparing an ad-hoc release of our app to send off for UAT, and the Archive step is failing because of a linker problem while building my unit tests:

Undefined symbols for architecture armv7: "_OBJC_CLASS_$_Category", 
referenced from: objc-class-ref in Unit_Tests.o
Undefined symbols for architecture armv6: "_OBJC_CLASS_$_Category", 
referenced from: objc-class-ref in Unit_Tests.o

This only happens while archiving; if I run the tests normally, everything builds and runs fine, and the tests pass. I'm a bit concerned that my unit tests are being built at all when I'm making my archive.

UPDATE

By setting 'Symbols hidden by default' to false for the Ad-Hoc build settings, I can avoid the linker problem. So my question is now - is it a problem that the unit tests are being built? Am I including my unit tests 开发者_如何学编程in my Ad Hoc archive?


It is not a problem that your unit tests are being built; this is standard and expected behaviour. When you create an archive, a full, clean build of all of the sources is created.

The unit tests are not included in a normal ad-hoc .iap distribution.

0

精彩评论

暂无评论...
验证码 换一张
取 消