React Native run-ios build fail after xcode update to 8.0.

后端 未结 3 863
臣服心动
臣服心动 2020-12-31 20:19

Okay so I\'ve been working on this React Native project for a few weeks now without any issue. I recently updated to xCode 8.0 and RN build is failing. When I do \"react-nat

3条回答
  •  南笙
    南笙 (楼主)
    2020-12-31 20:35

    Step 1:

    • go into your RN project folder and open ios > .xcodeproj
    • this will open the project in xcode.

    Step 2:

    • Run the file and once the build fails, it'll show errors on the left side. Double click "RCTWebSocket" and it'll open up a new window/tab with more settings.

    Picture of settings

    Step 3:

    • find "Apple LLVM 8.0 - Custom Compiler Flags"
    • under it you'll see "other warning flags" - there should be two flags in there right now. click and delete both the flags.

    Clean & Rerun your project and it should work like normal.

提交回复
热议问题