react-native-photos-framework icon indicating copy to clipboard operation
react-native-photos-framework copied to clipboard

XCTest/XCTest.h not found

Open pisacode opened this issue 5 years ago • 7 comments

pisacode avatar Oct 18 '18 14:10 pisacode

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?

pisacode avatar Oct 18 '18 14:10 pisacode

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

ajaykumar97 avatar Dec 28 '18 05:12 ajaykumar97

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!

chipqcl avatar Jan 04 '19 20:01 chipqcl

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).

ajaykumar97 avatar Jan 05 '19 04:01 ajaykumar97

Works for me as well! Many thanks @ajaykumar97

MobileAppVault avatar Feb 04 '19 16:02 MobileAppVault

Delete two items from compile sources:

screenshot 2019-02-13 at 4 41 40 am

rintoj avatar Feb 12 '19 23:02 rintoj