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] 0.59.0-rc.2 client timed out error #23581

Closed
EugenePisotsky opened this issue Feb 21, 2019 · 2 comments
Closed

[ios] 0.59.0-rc.2 client timed out error #23581

EugenePisotsky opened this issue Feb 21, 2019 · 2 comments
Labels
Bug Platform: iOS iOS applications. Resolution: Locked This issue was locked by the bot.

Comments

@EugenePisotsky
Copy link

EugenePisotsky commented Feb 21, 2019

🐛 Bug Report

App can't connect to bundler. I tried to run another app with 0.58.4 and it works fine.
Recommendations from http://facebook.github.io/react-native/docs/running-on-device.html don't help.

I suppose that problem can be related to metro bundler (if I configured everything right of course), because when I forgot to close the bundler tab for 0.58 and then ran the new app with 0.59.0 in xcode, it connected successfully to the 0.58 bundler and started loading.

img_68e59dee9211-1

0.59.0-rc.2: Bundle React Native code and images:

+ [[ Debug = *Debug* ]]
+ [[ ! iphoneos == *simulator ]]
++ ipconfig getifaddr en0
+ IP=10.0.1.9
+ '[' -z 10.0.1.9 ']'
+ echo 10.0.1.9
+ [[ -n '' ]]
+ case "$CONFIGURATION" in
+ [[ iphoneos == *simulator ]]
+ echo 'Bundling for physical device. Use the SKIP_BUNDLING flag to change this behavior.'
Bundling for physical device. Use the SKIP_BUNDLING flag to change this behavior.
+ DEV=true
+++ dirname /App/Development/xapp/customer/node_modules/react-native/scripts/react-native-xcode.sh
++ cd /App/Development/xapp/customer/node_modules/react-native/scripts/..
++ pwd
+ REACT_NATIVE_DIR=/App/Development/xapp/customer/node_modules/react-native
+ PROJECT_ROOT=/App/Development/xapp/customer/node_modules/react-native/../..
+ cd /App/Development/xapp/customer/node_modules/react-native/../..
+ '[' -z '' ']'
+ export NVM_DIR=/App/.nvm
+ NVM_DIR=/App/.nvm
+ [[ -s index.ios.js ]]
+ ENTRY_FILE=index.ios.js
+ [[ -s /App/.nvm/nvm.sh ]]
++ command -v brew
+ [[ -x /usr/local/bin/brew ]]
++ brew --prefix nvm
+ [[ -s /usr/local/Cellar/nvm/0.33.11/nvm.sh ]]
+ [[ -x /App/.nodenv/bin/nodenv ]]
++ command -v brew
+ [[ -x /usr/local/bin/brew ]]
++ brew --prefix nodenv
+ [[ -x /usr/local/Cellar/nodenv/1.1.2/bin/nodenv ]]
+ [[ ! -x node ]]
+ [[ -d /App/.anyenv/bin ]]
+ '[' -z node ']'
+ '[' -z '' ']'
+ export NODE_ARGS=
+ NODE_ARGS=
+ '[' -z '' ']'
+ export CLI_PATH=/App/Development/xapp/customer/node_modules/react-native/cli.js
+ CLI_PATH=/App/Development/xapp/customer/node_modules/react-native/cli.js
+ '[' -z '' ']'
+ BUNDLE_COMMAND=bundle
+ [[ -z '' ]]
+ CONFIG_ARG=
+ type node
+ BUNDLE_FILE=/App/Library/Developer/Xcode/DerivedData/test-gsbzedggfhsaytaxdwgurinmfhwe/Build/Products/Debug-iphoneos/test.app/main.jsbundle
+ node /App/Development/xapp/customer/node_modules/react-native/cli.js bundle --entry-file index.ios.js --platform ios --dev true --reset-cache --bundle-output /App/Library/Developer/Xcode/DerivedData/test-gsbzedggfhsaytaxdwgurinmfhwe/Build/Products/Debug-iphoneos/test.app/main.jsbundle --assets-dest /App/Library/Developer/Xcode/DerivedData/test-gsbzedggfhsaytaxdwgurinmfhwe/Build/Products/Debug-iphoneos/test.app
warning: the transform cache was reset.
Loading dependency graph, done.
info Writing bundle output to:, /App/Library/Developer/Xcode/DerivedData/test-gsbzedggfhsaytaxdwgurinmfhwe/Build/Products/Debug-iphoneos/test.app/main.jsbundle
info Done writing bundle output
info Copying 34 asset files
info Done copying assets
+ [[ true != true ]]

0.58.4: Bundle React Native code and images:

+ [[ Debug = *Debug* ]]
+ [[ ! iphoneos == *simulator ]]
++ ipconfig getifaddr en0
+ IP=10.0.1.9
+ '[' -z 10.0.1.9 ']'
+ echo 10.0.1.9
+ BUNDLE_FILE=/App/Library/Developer/Xcode/DerivedData/test-avxkcriqpkmqysfldbgyvnktggvn/Build/Products/Debug-iphoneos/test.app/main.jsbundle
+ node /App/Development/xapp/test/node_modules/react-native/local-cli/cli.js bundle --entry-file index.js --platform ios --dev true --reset-cache --bundle-output /App/Library/Developer/Xcode/DerivedData/test-avxkcriqpkmqysfldbgyvnktggvn/Build/Products/Debug-iphoneos/test.app/main.jsbundle --assets-dest /App/Library/Developer/Xcode/DerivedData/test-avxkcriqpkmqysfldbgyvnktggvn/Build/Products/Debug-iphoneos/test.app
warning: the transform cache was reset.
Loading dependency graph, done.
bundle: Writing bundle output to: /App/Library/Developer/Xcode/DerivedData/test-avxkcriqpkmqysfldbgyvnktggvn/Build/Products/Debug-iphoneos/test.app/main.jsbundle
bundle: Done writing bundle output
bundle: Copying 8 asset files
bundle: Done copying assets
+ [[ true != true ]]

AppDelegate.m code:

@implementation AppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
  [FIRApp configure];
  // NSURL *jsCodeLocation;

  [AppCenterReactNativeCrashes registerWithAutomaticProcessing];  // Initialize AppCenter crashes
  [AppCenterReactNativeAnalytics registerWithInitiallyEnabled:true];  // Initialize AppCenter analytics
  [AppCenterReactNative register];  // Initialize AppCenter 

  RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];
  RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge
                                                   moduleName:@"nexy"
                                            initialProperties:nil];
  
  [RNSentry installWithRootView:rootView];

  rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1];

  self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
  UIViewController *rootViewController = [UIViewController new];
  rootViewController.view = rootView;
  self.window.rootViewController = rootViewController;
  [self.window makeKeyAndVisible];
  [RNSplashScreen show];
  return YES;
}

- (void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification {
  [[RNFirebaseNotifications instance] didReceiveLocalNotification:notification];
}

- (void)application:(UIApplication *)application didReceiveRemoteNotification:(nonnull NSDictionary *)userInfo
fetchCompletionHandler:(nonnull void (^)(UIBackgroundFetchResult))completionHandler{
  [[RNFirebaseNotifications instance] didReceiveRemoteNotification:userInfo fetchCompletionHandler:completionHandler];
}

- (void)application:(UIApplication *)application didRegisterUserNotificationSettings:(UIUserNotificationSettings *)notificationSettings {
  [[RNFirebaseMessaging instance] didRegisterUserNotificationSettings:notificationSettings];
}

- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
{
#if DEBUG
  return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
#else
  return [CodePush bundleURL];
#endif
}

@end

Environment

info
React Native Environment Info:
System:
OS: macOS 10.14.3
CPU: (8) x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
Memory: 1.74 GB / 16.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 9.11.1 - /usr/local/bin/node
npm: 5.6.0 - /usr/local/bin/npm
SDKs:
iOS SDK:
Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1
Android SDK:
API Levels: 23, 25, 26, 27, 28
Build Tools: 26.0.1, 26.0.3, 27.0.3, 28.0.1, 28.0.2, 28.0.3
System Images: android-P | Google Play Intel x86 Atom
IDEs:
Android Studio: 3.1 AI-173.4720617
Xcode: 10.1/10B61 - /usr/bin/xcodebuild
npmPackages:
react: ^16.8.2 => 16.8.2
react-native: ^0.59.0-rc.2 => 0.59.0-rc.2
npmGlobalPackages:
react-native-cli: 2.0.1
react-native-git-upgrade: 0.2.7

@Federkun
Copy link

Hi, had the same problem today. We addressed that here: react-native-community/cli#193

@elicwhite
Copy link
Member

Sounds like this was resolved via the CLI project. Thanks!

@facebook facebook locked as resolved and limited conversation to collaborators Mar 19, 2020
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Mar 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Platform: iOS iOS applications. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

4 participants