Photo by Rich Tervet on Unsplash

React Native Notes 18: XCode 11 Launch Crash

Kuray Ogun
FreakyCoder Software Blog

--

Updated: Feb 14, 2020

Unknown argument type ‘attribute’ in method -[RCTAppState getCurrentAppState:error:]. Extend RCTConvert to support this type.

XCode 11 App Crush Error

That’s the error if you’ve already updated the XCode to the latest version of 11.

I have good news for you if you already upgraded your project’s React Native version to RN 0.60+. You probably will not see this error. Core team fixed this issue at RN 0.59.9 :) But yet, some projects are heavily under development and they do not have time to upgrade and fix the issue for each RN update :) Here is the temporary solution for you.

Below RN 0.59

Simply go to this React-Native’s React direction on your project’s node_modules:

node_modules/react-native/React/Base/RCTModuleMethod.mm

Find RCTModuleMethod.mm file and add the new line of code segment:

RCTReadString(input, “__attribute__((__unused__))”)

Where to put it? Please check this PR to see where to put it

After you add that line of code, it should solve the problem.

That’s it. Feel free to ask any question 🥰

Have fun 🎉

--

--