由于瑜伽错误,React Native iOS构建失败

时间:2019-03-19 12:04:59

标签: ios react-native

我从博览会退场到纯粹的反应本地项目。 IOS项目未按预期运行。我遇到的错误是

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

下面显示了更多错误

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)

我做错了什么吗?似乎看不到YOGA文件或路径。

1 个答案:

答案 0 :(得分:5)

尝试删除构建文件夹<your-project>/ios/build,然后再次运行react-native run-ios