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

Use ReactNative to the ios native project,and the compilation was several times slower #21004

Closed
luangaolei opened this issue Sep 7, 2018 · 9 comments
Labels
Platform: iOS iOS applications. Stale There has been a lack of activity on this issue and it may be closed soon.

Comments

@luangaolei
Copy link

luangaolei commented Sep 7, 2018

Environment

Environment:
OS: macOS High Sierra 10.13.4
Node: 10.8.0
Yarn: 1.9.4
npm: 6.2.0
Watchman: 4.9.0
Xcode: Xcode 9.4.1 Build version 9F2000
Android Studio: Not Found

Packages: (wanted => installed)
react: 16.3.1 => 16.3.1
react-native: ^0.55.4 => 0.55.4

Description

Excuse me, why did I add ReactNative to the native ios project? Every time when I first compiled the project, it was very slow. It was much slower than the native project.How should this problem be solved?

@saber623
Copy link

saber623 commented Sep 7, 2018

I also have this problem.

@react-native-bot
Copy link
Collaborator

It looks like you are using an older version of React Native. Please update to the latest release, v0.56 and verify if the issue still exists.

The ":rewind:Old Version" label will be removed automatically once you edit your original post with the results of running react-native info on a project using the latest release.

@luangaolei
Copy link
Author

luangaolei commented Sep 7, 2018

Hi ,@react-native-bot, I found that the version 0.56 doesn't support ios8, so I chose the version 0.55.4 .
Is there any way to solve this particularly slow compilation problem at 0.55.4?
Or any way to let 0.56 support ios8?

@luangaolei
Copy link
Author

luangaolei commented Sep 7, 2018

image

Adding this to your project will not speed up compilation @react-native-bot

@luangaolei
Copy link
Author

Hi, @react-native-bot ,Can you help me solve this problem?

@luangaolei
Copy link
Author

luangaolei commented Sep 10, 2018

@react-native-bot I tried using the latest version ReactNative v0.56.0 just now, but it still took me a long time to build the project for the first time, so the latest version doesn't solve that problem.

React Native Environment Info:
System:
OS: macOS High Sierra 10.13.4
CPU: x64 Intel(R) Core(TM) i5-5257U CPU @ 2.70GHz
Memory: 240.03 MB / 8.00 GB
Shell: 5.3 - /bin/zsh
Binaries:
Node: 10.8.0 - /usr/local/bin/node
Yarn: 1.9.4 - /usr/local/bin/yarn
npm: 6.2.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:
Xcode: 9.4.1/9F2000 - /usr/bin/xcodebuild
npmPackages:
react: 16.3.1 => 16.3.1
react-native: ^0.56.0 => 0.56.0

@luangaolei
Copy link
Author

@react-native-bot, I find that comment out RCTWebSocket and RCTAnimation , and then pod install will not have that particularly slow compilation problem.

pod 'React', :path => '../node_modules/react-native', :subspecs => [
    'Core',
    'CxxBridge', # Include this for RN >= 0.47
    'DevSupport', # Include this to enable In-App Devmenu if RN >= 0.43
    'RCTText',
    'RCTLinkingIOS',
    'RCTPushNotification',
    'RCTImage',
    'RCTNetwork',
    #'RCTWebSocket', # Needed for debugging
    #'RCTAnimation', # Needed for FlatList and animations running on native UI thread
  ]

@stale
Copy link

stale bot commented Dec 9, 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 Dec 9, 2018
@stale
Copy link

stale bot commented Dec 16, 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 Dec 16, 2018
@facebook facebook locked as resolved and limited conversation to collaborators Dec 17, 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

3 participants