olofd/react-native-photos-framework

XCTest/XCTest.h not found

Opened this issue · 7 comments

XCTest/XCTest.h not found

React Native version 0.52
xcode 10

I am getting this error

/Users/pisacode/Desktop/appName/node_modules/react-native-photos-framework/ios/RNPhotosFrameworkTests/PHAssetsService_getAssetsForFetchResultTests.m:3:9: 'XCTest/XCTest.h' file not found

Adding $(PLATFORM_DIR)/Developer/Library/Frameworks to FRAMEWORK_SEARCH_PATHS also did not work.

Is this package maintaining?

I have also got the same error. If anyone got the solution, please help.

Got the solution. Refer to this link
Hi @ajaykumar97 ,

There are about 10 different suggested solutions in that stackoverflow thread (including the FRAMEWORK_SEARCH_PATHS one listed above). Is there a specific fix that worked for you?

Thanks!

Yes! I found another workaround for this, because this error comes again after few builds. The workaround was to delete Tests folder of react-native-photos-framework from the pod development folder(as I am using pod to use this framework).

Works for me as well! Many thanks @ajaykumar97

Delete two items from compile sources:

screenshot 2019-02-13 at 4 41 40 am