Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XCode 11 Beta App Launch Crash #25154

Closed
pramodsharma403 opened this issue Jun 5, 2019 · 25 comments
Closed

XCode 11 Beta App Launch Crash #25154

pramodsharma403 opened this issue Jun 5, 2019 · 25 comments
Labels
Bug Resolution: Locked This issue was locked by the bot.

Comments

@pramodsharma403
Copy link

React Native version:
"react": "16.8.3",
"react-native": "0.59.8"

No other dependency added.

Steps To Reproduce

  1. Create a fresh project with react-native init ProjectName
  2. Open iOS project in XCode 11 beta & run your project.
  3. npm start
  4. App crash with -

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

Error Log from XCode -

Exception '*** -[__NSArrayM objectAtIndexedSubscript:]: index 1 beyond bounds [0 .. 0]' was thrown while invoking getCurrentAppState on target AppState with params (
2,
3
)

Describe what you expected to happen:
App should not get crash.

Snack, code example, or link to a repository:

Adding a screenshot for more clarification below.
Screenshot 2019-06-05 at 5 22 00 PM

@zhongwuzw
Copy link
Contributor

@pramodsharma403 Hi, thanks for reporting, we already fixed it, please see #25138. We may cherry-pick it in next release.

@Base29
Copy link

Base29 commented Sep 23, 2019

Hello ... I am running RN version 0.57.0 ... recently updated xcode to version 11.0 ... and I am facing this issue ... how can I resolve this ? Don't want to upgrade to RN 0.60.x ...

image

@dpecha777
Copy link

i have same problem
Simulator Screen Shot - iPhone 11 Pro Max - 2019-09-23 at 10 19 53

@saudahmed
Copy link

I am also encountring the same problem on iOS, after Xcode update. I do not want to update to react-native 0.60

Version is react-native 0.59.3

@elinahovakimyan
Copy link

I solved the issue by upgrading react-native to 0.59.9 version.

@saudahmed
Copy link

in your project directory, open file in myproject/node_modules/react-native/React/Base/RCTModuleMethod.mm. Then correct as below: https://github.com/facebook/react-native/pull/25146/files#diff-263fc157dfce55895cdc16495b55d190

@Base29
Copy link

Base29 commented Sep 23, 2019

resolved using this method #25146 (comment)

@mdgoodrum
Copy link

react-native upgrade 0.59.9, yarn , yarn pods seemed to do the trick for me

@iranu
Copy link

iranu commented Sep 24, 2019

Not working on Xcode 11 GM seed

@Subway19
Copy link

Encountered this issue in Xcode 11. :(

@Base29
Copy link

Base29 commented Sep 24, 2019

please try this solution ... #25146 (comment)

@decodedmrq
Copy link

decodedmrq commented Sep 25, 2019

open file in yourproject /node_modules/react-native/React/Base/RCTModuleMethod.mm. Then correct as quote below:

static BOOL RCTParseUnused(const char **input)
{
return RCTReadString(input, "attribute((unused))") ||
RCTReadString(input, "attribute((unused))") ||
RCTReadString(input, "__unused");
}

link here

@harkirat1892
Copy link

0.59.9 has solved this.

If for some reason you can't upgrade right now, do this as suggested by @saudahmed

in your project directory, open file in myproject/node_modules/react-native/React/Base/RCTModuleMethod.mm. Then correct as below: https://github.com/facebook/react-native/pull/25146/files#diff-263fc157dfce55895cdc16495b55d190

@MichalKrakow
Copy link

MichalKrakow commented Sep 30, 2019

@decodedmrq this actually works.
But what happend? The only updated thing is IDE, no libraries were updated and moreover it was runing fine even after XCode updated. Just run into it after weekend.

ej3 added a commit to appittome/react-native that referenced this issue Oct 5, 2019
see: facebook#25154 (comment)

Signed-off-by: Evan J Brunner <ej3@appitto.me>
@Biplovkumar
Copy link

react-native upgrade 0.59.9, yarn , yarn pods seemed to do the trick for me

thanks, saved my day.

@adc91
Copy link

adc91 commented Oct 18, 2019

in your project directory, open file in myproject/node_modules/react-native/React/Base/RCTModuleMethod.mm. Then correct as below: https://github.com/facebook/react-native/pull/25146/files#diff-263fc157dfce55895cdc16495b55d190

@saudahmed You saved my day, this works for me.

@youuuuuli
Copy link

in your project directory, open file in myproject/node_modules/react-native/React/Base/RCTModuleMethod.mm. Then correct as below: https://github.com/facebook/react-native/pull/25146/files#diff-263fc157dfce55895cdc16495b55d190

thanks, is working :)

@x5engine
Copy link

0.59.9 has solved this.

THaNkS

@alfandykasim
Copy link

in your project directory, open file in myproject/node_modules/react-native/React/Base/RCTModuleMethod.mm. Then correct as below: https://github.com/facebook/react-native/pull/25146/files#diff-263fc157dfce55895cdc16495b55d190

thank You

@Rubi91
Copy link

Rubi91 commented Nov 13, 2019

clean build folder

@rezasazesh
Copy link

in your project directory, open file in myproject/node_modules/react-native/React/Base/RCTModuleMethod.mm. Then correct as below: https://github.com/facebook/react-native/pull/25146/files#diff-263fc157dfce55895cdc16495b55d190

thank You

This approach makes all my text input colors white and I can no longer change it in style={{ color }} how can I fix this?

@schumannd
Copy link

JiboStore pushed a commit to JiboStore/nodemodules_rnoo_osx that referenced this issue Dec 15, 2019
@Dhanush623
Copy link

in your project directory, open file in myproject/node_modules/react-native/React/Base/RCTModuleMethod.mm. Then correct as below: https://github.com/facebook/react-native/pull/25146/files#diff-263fc157dfce55895cdc16495b55d190

This worked for me

@kabhimanyu
Copy link

As I still did not see any thing that works here. Adding what worked for me.

Source https://stackoverflow.com/questions/58336836/react-native-crash-after-update-to-xcode-11-0

To fix this issue, open file in

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

Then correct as below:

https://github.com/facebook/react-native/pull/25146/files#diff-263fc157dfce55895cdc16495b55d190

SoleeChoi added a commit to iamport/iamport-react-native that referenced this issue Apr 14, 2020
@nikitph
Copy link

nikitph commented Apr 14, 2020

in your project directory, open file in myproject/node_modules/react-native/React/Base/RCTModuleMethod.mm. Then correct as below: https://github.com/facebook/react-native/pull/25146/files#diff-263fc157dfce55895cdc16495b55d190

this works

curiousdustin added a commit to doublesymmetry/react-native-track-player that referenced this issue Apr 23, 2020
@facebook facebook locked as resolved and limited conversation to collaborators Jun 5, 2020
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jun 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests