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

Can't open developer menu on iOS after upgrading to 0.56.0 #20354

Closed
3 tasks done
jcjoneskern opened this issue Jul 23, 2018 · 3 comments
Closed
3 tasks done

Can't open developer menu on iOS after upgrading to 0.56.0 #20354

jcjoneskern opened this issue Jul 23, 2018 · 3 comments
Labels
Platform: iOS iOS applications. Stale There has been a lack of activity on this issue and it may be closed soon.

Comments

@jcjoneskern
Copy link

jcjoneskern commented Jul 23, 2018

Environment

React Native Environment Info:
System:
OS: macOS High Sierra 10.13.4
CPU: x64 Intel(R) Core(TM) i7-3820QM CPU @ 2.70GHz
Memory: 401.37 MB / 16.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 9.8.0 - /usr/local/bin/node
npm: 5.6.0 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 11.4, macOS 10.13, tvOS 11.4, watchOS 4.3
IDEs:
Android Studio: 3.1 AI-173.4697961
Xcode: 9.4.1/9F2000 - /usr/bin/xcodebuild
npmPackages:
react: ^16.4.1 => 16.4.1
react-native: ^0.56.0 => 0.56.0
npmGlobalPackages:
react-native-cli: 2.0.1
react-native-git-upgrade: 0.2.7

Description

I want to preface this by saying that even though I've seen many variations on this issue, I haven't seen anything anywhere on the internet for this exact problem. There's a few issues out there for one or two of the warnings we've been getting, but I haven't seen anything with the sheer number that we've been having.

For the past several days we've been attempting to upgrade from React Native 0.50.4 to 0.56.0. There were a few minor issues with Android that were easily resolved within a few hours, but iOS has not worked at all. We think the issue might be bad merges in in the project.pbxproj file, and every way we've attempted to solve them has failed in some way. We've tried using all ours, all theirs, slowly combining both by hand, and just using the old verison of the file. Eventually we were able to get the app to build, but the console in XCode fills up with a bunch of errors like the ones below:

objc[1496]: Class RCTFrameAnimation is implemented in both /private/var/containers/Bundle/Application/67A054DD-FC21-48E0-BF4F-96C87046DD15/ModulePractice.app/Frameworks/React.framework/React (0x101e40110) and /var/containers/Bundle/Application/67A054DD-FC21-48E0-BF4F-96C87046DD15/ModulePractice.app/ModulePractice (0x1013941b0). One of the two will be used. Which one is undefined.
objc[1496]: Class RCTSpringAnimation is implemented in both /private/var/containers/Bundle/Application/67A054DD-FC21-48E0-BF4F-96C87046DD15/ModulePractice.app/Frameworks/React.framework/React (0x101e423c0) and /var/containers/Bundle/Application/67A054DD-FC21-48E0-BF4F-96C87046DD15/ModulePractice.app/ModulePractice (0x101394200). One of the two will be used. Which one is undefined.
objc[1496]: Class RCTNativeAnimatedNodesManager is implemented in both /private/var/containers/Bundle/Application/67A054DD-FC21-48E0-BF4F-96C87046DD15/ModulePractice.app/Frameworks/React.framework/React (0x101e41330) and /var/containers/Bundle/Application/67A054DD-FC21-48E0-BF4F-96C87046DD15/ModulePractice.app/ModulePractice (0x101394250). One of the two will be used. Which one is undefined.
objc[1496]: Class RCTValueAnimatedNode is implemented in both /private/var/containers/Bundle/Application/67A054DD-FC21-48E0-BF4F-96C87046DD15/ModulePractice.app/Frameworks/React.framework/React (0x101e42f00) and /var/containers/Bundle/Application/67A054DD-FC21-48E0-BF4F-96C87046DD15/ModulePractice.app/ModulePractice (0x1013942a0). One of the two will be used. Which one is undefined.
objc[1496]: Class RCTModuloAnimatedNode is implemented in both /private/var/containers/Bundle/Application/67A054DD-FC21-48E0-BF4F-96C87046DD15/ModulePractice.app/Frameworks/React.framework/React (0x101e41100) and /var/containers/Bundle/Application/67A054DD-FC21-48E0-BF4F-96C87046DD15/ModulePractice.app/ModulePractice (0x1013942f0). One of the two will be used. Which one is undefined.
objc[1496]: Class RCTDiffClampAnimatedNode is implemented in both /private/var/containers/Bundle/Application/67A054DD-FC21-48E0-BF4F-96C87046DD15/ModulePractice.app/Frameworks/React.framework/React (0x101e3fd50) and /var/containers/Bundle/Application/67A054DD-FC21-48E0-BF4F-96C87046DD15/ModulePractice.app/ModulePractice (0x101394340). One of the two will be used. Which one is undefined.
objc[1496]: Class RCTEventAnimation is implemented in both /private/var/containers/Bundle/Application/67A054DD-FC21-48E0-BF4F-96C87046DD15/ModulePractice.app/Frameworks/React.framework/React (0x101e3fe90) and /var/containers/Bundle/Application/67A054DD-FC21-48E0-BF4F-96C87046DD15/ModulePractice.app/ModulePractice (0x101394390). One of the two will be used. Which one is undefined.
objc[1496]: Class RCTStyleAnimatedNode is implemented in both /private/var/containers/Bundle/Application/67A054DD-FC21-48E0-BF4F-96C87046DD15/ModulePractice.app/Frameworks/React.framework/React (0x101e425a0) and /var/containers/Bundle/Application/67A054DD-FC21-48E0-BF4F-96C87046DD15/ModulePractice.app/ModulePractice (0x1013943e0). One of the two will be used. Which one is undefined.
objc[1496]: Class RCTNativeAnimatedModule is implemented in both /private/var/containers/Bundle/Application/67A054DD-FC21-48E0-BF4F-96C87046DD15/ModulePractice.app/Frameworks/React.framework/React (0x101e412e0) and /var/containers/Bundle/Application/67A054DD-FC21-48E0-BF4F-96C87046DD15/ModulePractice.app/ModulePractice (0x101394430). One of the two will be used. Which one is undefined.
objc[1496]: Class RCTMultiplicationAnimatedNode is implemented in both /private/var/containers/Bundle/Application/67A054DD-FC21-48E0-BF4F-96C87046DD15/ModulePractice.app/Frameworks/React.framework/React (0x101e41290) and /var/containers/Bundle/Application/67A054DD-FC21-48E0-BF4F-96C87046DD15/ModulePractice.app/ModulePractice (0x101394480). One of the two will be used. Which one is undefined.
objc[1496]: Class RCTPropsAnimatedNode is implemented in both /private/var/containers/Bundle/Application/67A054DD-FC21-48E0-BF4F-96C87046DD15/ModulePractice.app/Frameworks/React.framework/React (0x101e41970) and /var/containers/Bundle/Application/67A054DD-FC21-48E0-BF4F-96C87046DD15/ModulePractice.app/ModulePractice (0x1013944d0). One of the two will be used. Which one is undefined.
objc[1496]: Class RCTAnimatedNode is implemented in both /private/var/containers/Bundle/Application/67A054DD-FC21-48E0-BF4F-96C87046DD15/ModulePractice.app/Frameworks/React.framework/React (0x101e3f3f0) and /var/containers/Bundle/Application/67A054DD-FC21-48E0-BF4F-96C87046DD15/ModulePractice.app/ModulePractice (0x101394520). One of the two will be used. Which one is undefined.

Etc. There's more below in the same vein, and probably more at the top because I think some warnings get cut off because there's simply too many.

Those are always followed by warnings like:

2018-07-23 15:29:29.455 [info][tid:main][RCTCxxBridge.mm:209] Initializing <RCTCxxBridge: 0x102faacb0> (parent: <RCTBridge: 0x102fda070>, executor: (null))
2018-07-23 15:29:29.458650-0400 ModulePractice[1496:1714660] Initializing <RCTCxxBridge: 0x102faacb0> (parent: <RCTBridge: 0x102fda070>, executor: (null))
2018-07-23 15:29:29.615 [warn][tid:main][RCTBridge.m:123] Class RCTWebSocketExecutor was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2018-07-23 15:29:29.615532-0400 ModulePractice[1496:1714660] Class RCTWebSocketExecutor was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2018-07-23 15:29:29.616 [warn][tid:main][RCTBridge.m:123] Class RCTVibration was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2018-07-23 15:29:29.615808-0400 ModulePractice[1496:1714660] Class RCTVibration was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2018-07-23 15:29:29.616 [warn][tid:main][RCTBridge.m:123] Class RCTUIManager was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2018-07-23 15:29:29.616050-0400 ModulePractice[1496:1714660] Class RCTUIManager was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2018-07-23 15:29:29.616 [warn][tid:main][RCTBridge.m:123] Class RCTTiming was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2018-07-23 15:29:29.616373-0400 ModulePractice[1496:1714660] Class RCTTiming was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2018-07-23 15:29:29.616 [warn][tid:main][RCTBridge.m:123] Class RCTSourceCode was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2018-07-23 15:29:29.616580-0400 ModulePractice[1496:1714660] Class RCTSourceCode was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2018-07-23 15:29:29.617 [warn][tid:main][RCTBridge.m:123] Class RCTSettingsManager was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2018-07-23 15:29:29.616809-0400 ModulePractice[1496:1714660] Class RCTSettingsManager was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2018-07-23 15:29:29.617 [warn][tid:main][RCTBridge.m:123] Class RCTRedBox was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2018-07-23 15:29:29.616973-0400 ModulePractice[1496:1714660] Class RCTRedBox was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2018-07-23 15:29:29.617 [warn][tid:main][RCTBridge.m:123] Class RCTPlatform was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2018-07-23 15:29:29.617149-0400 ModulePractice[1496:1714660] Class RCTPlatform was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2018-07-23 15:29:29.617 [warn][tid:main][RCTBridge.m:123] Class RCTPerfMonitor was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2018-07-23 15:29:29.617549-0400 ModulePractice[1496:1714660] Class RCTPerfMonitor was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2018-07-23 15:29:29.618 [warn][tid:main][RCTBridge.m:123] Class RCTLocalAssetImageLoader was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2018-07-23 15:29:29.618298-0400 ModulePractice[1496:1714660] Class RCTLocalAssetImageLoader was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2018-07-23 15:29:29.618 [warn][tid:main][RCTBridge.m:123] Class RCTJSCSamplingProfiler was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2018-07-23 15:29:29.618488-0400 ModulePractice[1496:1714660] Class RCTJSCSamplingProfiler was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2018-07-23 15:29:29.619 [warn][tid:main][RCTBridge.m:123] Class RCTImageStoreManager was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2018-07-23 15:29:29.618647-0400 ModulePractice[1496:1714660] Class RCTImageStoreManager was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2018-07-23 15:29:29.619 [warn][tid:main][RCTBridge.m:123] Class RCTImageLoader was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2018-07-23 15:29:29.619609-0400 ModulePractice[1496:1714660] Class RCTImageLoader was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2018-07-23 15:29:29.620 [warn][tid:main][RCTBridge.m:123] Class RCTImageEditingManager was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2018-07-23 15:29:29.619795-0400 ModulePractice[1496:1714660] Class RCTImageEditingManager was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2018-07-23 15:29:29.620 [warn][tid:main][RCTBridge.m:123] Class RCTI18nManager was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2018-07-23 15:29:29.619960-0400 ModulePractice[1496:1714660] Class RCTI18nManager was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2018-07-23 15:29:29.620 [warn][tid:main][RCTBridge.m:123] Class RCTHTTPRequestHandler was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2018-07-23 15:29:29.620344-0400 ModulePractice[1496:1714660] Class RCTHTTPRequestHandler was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2018-07-23 15:29:29.621 [warn][tid:main][RCTBridge.m:123] Class RCTGIFImageDecoder was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2018-07-23 15:29:29.620644-0400 ModulePractice[1496:1714660] Class RCTGIFImageDecoder was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2018-07-23 15:29:29.621 [warn][tid:main][RCTBridge.m:123] Class RCTFileRequestHandler was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2018-07-23 15:29:29.620821-0400 ModulePractice[1496:1714660] Class RCTFileRequestHandler was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2018-07-23 15:29:29.621 [warn][tid:main][RCTBridge.m:123] Class RCTFileReaderModule was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2018-07-23 15:29:29.620988-0400 ModulePractice[1496:1714660] Class RCTFileReaderModule was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2018-07-23 15:29:29.621 [warn][tid:main][RCTBridge.m:123] Class RCTExceptionsManager was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2018-07-23 15:29:29.621274-0400 ModulePractice[1496:1714660] Class RCTExceptionsManager was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2018-07-23 15:29:29.621 [warn][tid:main][RCTBridge.m:123] Class RCTEventDispatcher was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2018-07-23 15:29:29.621681-0400 ModulePractice[1496:1714660] Class RCTEventDispatcher was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2018-07-23 15:29:29.622 [warn][tid:main][RCTBridge.m:123] Class RCTDevSettings was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2018-07-23 15:29:29.621970-0400 ModulePractice[1496:1714660] Class RCTDevSettings was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2018-07-23 15:29:29.622 [warn][tid:main][RCTBridge.m:123] Class RCTDevMenu was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2018-07-23 15:29:29.622576-0400 ModulePractice[1496:1714660] Class RCTDevMenu was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2018-07-23 15:29:29.623 [warn][tid:main][RCTBridge.m:123] Class RCTDevLoadingView was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2018-07-23 15:29:29.623220-0400 ModulePractice[1496:1714660] Class RCTDevLoadingView was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2018-07-23 15:29:29.623 [warn][tid:main][RCTBridge.m:123] Class RCTDeviceInfo was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2018-07-23 15:29:29.623406-0400 ModulePractice[1496:1714660] Class RCTDeviceInfo was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2018-07-23 15:29:29.623 [warn][tid:main][RCTBridge.m:123] Class RCTDataRequestHandler was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2018-07-23 15:29:29.623567-0400 ModulePractice[1496:1714660] Class RCTDataRequestHandler was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2018-07-23 15:29:29.624 [warn][tid:main][RCTBridge.m:123] Class RCTClipboard was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2018-07-23 15:29:29.624547-0400 ModulePractice[1496:1714660] Class RCTClipboard was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2018-07-23 15:29:29.625 [warn][tid:main][RCTBridge.m:123] Class RCTBlobManager was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2018-07-23 15:29:29.624731-0400 ModulePractice[1496:1714660] Class RCTBlobManager was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2018-07-23 15:29:29.625 [warn][tid:main][RCTBridge.m:123] Class RCTAsyncLocalStorage was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2018-07-23 15:29:29.624885-0400 ModulePractice[1496:1714660] Class RCTAsyncLocalStorage was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2018-07-23 15:29:29.625 [warn][tid:main][RCTBridge.m:123] Class RCTEventEmitter was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2018-07-23 15:29:29.625759-0400 ModulePractice[1496:1714660] Class RCTEventEmitter was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2018-07-23 15:29:29.626 [warn][tid:main][RCTBridge.m:123] Class RCTWebSocketModule was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2018-07-23 15:29:29.626070-0400 ModulePractice[1496:1714660] Class RCTWebSocketModule was not exported. Did you forget to use RCT_EXPORT_MODULE()?
2018-07-23 15:29:29.626 [warn][tid:main][RCTBridge.m:123] Class RCTStatusBarManager was not exported. Did you forget to use RCT_EXPORT_MODULE()?

But again, there's too many to paste here.

Here's our podfile, if that helps:

platform :ios, '9.0'

target 'App' do
  use_frameworks!
  pod 'UXCam'

  rn_path = '../node_modules/react-native'
  rn_maps_path = '../node_modules/react-native-maps'
  
  pod 'yoga', path: "#{rn_path}/ReactCommon/yoga/yoga.podspec"
  pod 'React', path: rn_path, subspecs: [
  'Core',
  'CxxBridge',
  'DevSupport',
  'RCTActionSheet',
  'RCTAnimation',
  'RCTGeolocation',
  'RCTImage',
  'RCTLinkingIOS',
  'RCTNetwork',
  'RCTSettings',
  'RCTText',
  'RCTVibration',
  'RCTWebSocket'
  ]
  
  pod 'react-native-maps', path: rn_maps_path
  
  # pod 'GoogleMaps'  # Remove this line if you don't want to support Google Maps on iOS
  # pod 'react-native-google-maps', path: rn_maps_path  # Remove this line if you don't want to support Google Maps on iOS
  
  pod 'NokeMobileLibrary'
  pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
  pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
  pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'

end

We can't comment out use_frameworks! because too much of our native code and libraries are built in Swift.

I can confirm that the problem with the dev menu is not #5122 or anything similar. I've triple checked the settings and everything appears to be correct.

I also don't think this is a duplicate of #14806 , since RCTCxxModule is one of the few classes I'm not getting a warning for. Not to mention in that issue that one module appears to be the only problem and it looks like it was resolved in the latest update anyway.

My theory is that some of the myriad classes that aren't being exported properly contain that code needed to open the dev menu and that somehow none of them are being exported nor imported as they should be.

Reproducible Demo

I don't believe this is something I can provide. I think the source of our problem is incompatibilities with updating our existing code to use the latest version and I don't think we'd have the same problems if we created a new project, which is not really a viable option for us. Please let me know if there's any other code snippets from other files that it would help to include. At this point I'm hoping there's something right in front of my nose that I'm missing because I have no idea where else to look for a solution.

@jcjoneskern
Copy link
Author

Following up on own post to say that I've mostly traced the issue down to this, but I still have the issue with the debug menu if use_frameworks! isn't commented out and no other pods are being used, which indicates an issue with RN itself and not any of the libraries we're using.

@stale
Copy link

stale bot commented Oct 23, 2018

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as "For Discussion" or "Good first issue" and I will leave it open. Thank you for your contributions.

@stale stale bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Oct 23, 2018
@stale
Copy link

stale bot commented Oct 30, 2018

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.

@stale stale bot closed this as completed Oct 30, 2018
@facebook facebook locked as resolved and limited conversation to collaborators Oct 31, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Platform: iOS iOS applications. Stale There has been a lack of activity on this issue and it may be closed soon.
Projects
None yet
Development

No branches or pull requests

2 participants