Xcode - SenTestingKit not found

I have a problem while updating my version of xcode. I use unit tests, and now when I try to import SenTestingKit ( #import <SenTestingKit/SenTestingKit.h> ), I get this error: SenTestingKit/SenTestingKit.h: No such file or directory .

I looked at my build settings and I have the following configuration options:

 == Linking == Other Linker Flags: -framework Foundation -framework SenTestingKit -framework UIKit Prebinding: No == Search Paths == Debug Configutation: "/iphonesimulator4.0/Developer/Library/Frameworks" "/Xcode4/Library/Frameworks" 

I checked /Xcode4/Library/Frameworks , and the SenTestingKit.framework/ directory is there.

So what am I missing?

+41
objective-c iphone xcode4
Jul 28 '10 at 16:07
source share
6 answers

I had the same problem when creating a new test case in Xcode. However, this was due to stupidity when I chose the wrong target when creating a test case.

Using "File New ...", the test case was included and compiled with the application target parameters instead of the target test. Checking the Phase Assembly tab and searching the Compilation Sources disclosure revealed my particular problem.

+57
Mar 05 2018-11-11T00:
source share

I had a problem after upgrading to xcode 4.3. Nothing worked until I came across this post . I already had the same search paths, but changing the order solved the problem.

So, from the article you will need the following two values ​​in your Path Search Paths, in that order .

 $(SDKROOT)/Developer/Library/Frameworks $(DEVELOPER_LIBRARY_DIR)/Frameworks 
+18
Feb 23 '12 at 2:16
source share

I had this problem because there was a place in my Xcode installation: /Xcode 4.0.2

I fixed it by adding "${DEVELOPER_LIBRARY_DIR}/Frameworks" (with quotes) in my search paths in the Framework.

+6
Jul 08 2018-11-11T00:
source share

For my Framework search paths, I explicitly added /$(DEVELOPER_DIR)/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.1.sdk/Developer/Library/Frameworks . It compiles correctly for the simulator and device.

I'm sure there are environment variables, so it works in SDK versions, so I will update the answer if I find them.

screenshot

+1
Jan 05 2018-11-11T00:
source share

To clear it once for all, the Xcode SDK has three SenTestingKit environments, one for OS X, one for iOS, and one for the simulator.

If you ran "lipo-info" on them, you would see that

Bold file architectures: /Developer/Library/Frameworks/SenTestingKit.framework/Versions/A/SenTestingKit: x86_64 i386

Bold file architectures: /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/Developer/Library/Frameworks/SenTestingKit.framework/SenTestingKit - this architecture: armv7

Bold file: /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/Developer/Library/Frameworks/SenTestingKit.framework/SenTestingKit - this architecture: i386

+1
Jun 06 2018-12-06T00:
source share

You might want to check that Xcode is checking the search paths in the Framework: Framework search paths

0
Jan 03 2018-11-11T00:
source share



All Articles