XCTest/XCTest.h not found on old projects built in Xcode 6

后端 未结 10 2060
渐次进展
渐次进展 2020-12-04 06:52

I have a few projects I\'m trying to build with Xcode 6 Beta 2. The projects all have some type of library that uses XCTest (Kiwi/XCTest and Specta) that don\'t build in Xco

10条回答
  •  无人及你
    2020-12-04 07:54

    Note: This may not be needed for any projects created in Xcode 7.

    CocoaPods had a fix for this here and here


    In order to fix this for any CocoaPod dependencies you need to add the following to FRAMEWORK_SEARCH_PATHS in any Pod target that requires XCTest (e.g. Kiwi, Specta, FBSnapshotTestCase, etc).

    $(PLATFORM_DIR)/Developer/Library/Frameworks

    screenshot

    This will allow you to reference XCTest in any dependencies you may have. This may be fixed in a future update of CocoaPods, or the Pod you are referencing, so you may want to remove it later.

    It is not detrimental to earlier versions of Xcode so should be safe to use.

提交回复
热议问题