Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React Native iOS build failed due to Yoga Error

I ejected from expo to pure react native project. IOS project is not running as expected. The error i got was

~/ReactCommon/yoga/yoga/YGEnums.h: No such file or directory

More error is show below

error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening TrackUs.xcodeproj

** BUILD FAILED ** The following build commands failed:
        PBXCp /Users/user/ReactCommon/yoga/yoga/YGConfig.h /Users/user/Documents/Apps/App/ios/build/TrackUs/Build/Products/Debug-iphonesimulator/include/yoga/YGConfig.h
        PBXCp /Users/user/ReactCommon/yoga/yoga/YGValue.h /Users/user/Documents/Apps/App/ios/build/TrackUs/Build/Products/Debug-iphonesimulator/include/yoga/YGValue.h
        PBXCp /Users/user/ReactCommon/yoga/yoga/YGMarker.h /Users/user/Documents/Apps/App/ios/build/TrackUs/Build/Products/Debug-iphonesimulator/include/yoga/YGMarker.h
        PBXCp /Users/user/ReactCommon/yoga/yoga/YGEnums.h /Users/user/Documents/Apps/App/ios/build/TrackUs/Build/Products/Debug-iphonesimulator/include/yoga/YGEnums.h (4 failures)

Is there anything I did wrong? It seem not to see the YOGA file or path.

like image 334
King J Avatar asked Mar 19 '19 12:03

King J


1 Answers

Try deleting the build folder <your-project>/ios/build and then run react-native run-ios again.

like image 110
Slipstream Avatar answered Sep 18 '22 14:09

Slipstream