我从博览会退场到纯粹的反应本地项目。 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文件或路径。
答案 0 :(得分:5)
尝试删除构建文件夹<your-project>/ios/build
,然后再次运行react-native run-ios
。