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

iOS app crashes on launch in xcode #14419

Closed
oliveriobw opened this issue Jun 9, 2017 · 2 comments
Closed

iOS app crashes on launch in xcode #14419

oliveriobw opened this issue Jun 9, 2017 · 2 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@oliveriobw
Copy link

oliveriobw commented Jun 9, 2017

Description

Crash when app is loading in Xcode.
Reproducible maybe 50% of the time

Reproduction Steps and Sample Code

Steps

  • Create iOS project
  • Define a controller, loaded at launch, with no buttons
  • Launch the app

Result

Crash at this point:

image

Solution

-(void)setButtons:(NSArray*)buttons viewController:(UIViewController*)viewController side:(NSString*)side animated:(BOOL)animated
{
  NSMutableArray *barButtonItems = [NSMutableArray new];
  
  if([buttons isKindOfClass:[NSNull class]])
    return;  //added

Additional Information

Sorry cannot give more detail.

@hramos
Copy link
Contributor

hramos commented Jun 9, 2017

We really need more information here. "Create iOS project" is too vague.

@hramos
Copy link
Contributor

hramos commented Aug 4, 2017

Closing this issue as we haven't heard back from the author.

@hramos hramos closed this as completed Aug 4, 2017
@facebook facebook locked as resolved and limited conversation to collaborators Aug 4, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Aug 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

3 participants