olofd / react-native-photos-framework

A modern and comprehensive CameraRoll/iCloud-library-API for React Native 📸 📹
MIT License
220 stars 99 forks source link

XCTest/XCTest.h not found #93

Open pisacode opened 6 years ago

pisacode commented 6 years ago

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?

ajaykumar97 commented 5 years ago

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

ajaykumar97 commented 5 years ago

Got the solution. Refer to this link https://stackoverflow.com/questions/24275470/xctest-xctest-h-not-found-on-old-projects-built-in-xcode-6/24651704#24651704

chipqcl commented 5 years ago

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!

ajaykumar97 commented 5 years ago

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

MobileAppVault commented 5 years ago

Works for me as well! Many thanks @ajaykumar97

rintoj commented 5 years ago

Delete two items from compile sources:

screenshot 2019-02-13 at 4 41 40 am