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

后端 未结 3 828
臣服心动
臣服心动 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.

    0 讨论(0)
  • 2020-12-31 20:52

    Answer from the OP of this question:

    Now i have a solution to fix this
    Select RCTWebSocket target in XCode and remove flag in build setting > custom compiler flag then build and run again!

    Note: This answer is posted as an edit of the question described above. I just edited the question and created an answer on behalf of the OP and made it community wiki so that no credit goes to me. But now, that question is merged with this question and the answer moved here. I do not know anything about the context of these two questions. I just got that in review queue.

    0 讨论(0)
  • 2020-12-31 21:02

    You need to remove the custom compiler flags of -Werror and -Wall and clean (SHIFT + CMD + K)

    0 讨论(0)
提交回复
热议问题