IPhone Device Testing - Linker Errors

I followed Device Testing Applications from the iPhone development documentation. I followed all the steps and worked with TestCase from the documentation. But as soon as I changed TestCase to check the real code in my project, I was connected with linker errors. All classes that are used in TestCase are reported as missing.

I already searched the Internet and found that the Bundle Loader property should be set to $ (BUILT_PRODUCTS_DIR) /MyApplication.app/Contents/MacOS/MyApplication. But this also fails because the file was not found.

Any ideas what I need to do to tell the linker where to look for the missing files?

+3
source share
1 answer

Make sure you add your classes to the unit test target. Therefore, if you create a unit test for the foo class, right-click on foo.m, select the information, and then from the Targets tab make sure that the check box for your unit test target is checked.

+1
source

Source: https://habr.com/ru/post/1718297/


All Articles