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

library not found for -ljschelpers #24298

Closed
vvusts opened this issue Apr 3, 2019 · 8 comments
Closed

library not found for -ljschelpers #24298

vvusts opened this issue Apr 3, 2019 · 8 comments
Labels
Bug Ran Commands One of our bots successfully processed a command. Stale There has been a lack of activity on this issue and it may be closed soon.

Comments

@vvusts
Copy link

vvusts commented Apr 3, 2019

🐛 Bug Report

I upgraded from rn 56 to rn 58.6.
I removed react and reac-native folders from node modules change package.json versions and npm install.
I can't build xcode project I am getting error from title and this is the end of build log:

/Users/myname/Library/Developer/Xcode/DerivedData/MyApp-bahhewkdpujtqjghatczibeqkigt/Build/Products/Release-iphoneos/libRCTText.a /Users/myname/Library/Developer/Xcode/DerivedData/MyApp-bahhewkdpujtqjghatczibeqkigt/Build/Products/Release-iphoneos/libRCTVibration.a /Users/myname/Library/Developer/Xcode/DerivedData/MyApp-bahhewkdpujtqjghatczibeqkigt/Build/Products/Release-iphoneos/libRCTWebSocket.a -lReact -lyoga -lcxxreact -ljschelpers -lReactNativeConfig -lRNFS -lRNImagePicker -lRNFetchBlob /Users/myname/Library/Developer/Xcode/DerivedData/MyApp-bahhewkdpujtqjghatczibeqkigt/Build/Products/Release-iphoneos/libAirMaps.a -lRNBackgroundTimer -lBVLinearGradient -lSMXCrashlytics -lPods-MyApp -lRNDeviceInfo -lRCTLocale -lRNGestureHandler -lReact\ Native\ Open\ Settings -lRNHeicConverter -lRNFirebase -Xlinker -dependency_info -Xlinker /Users/myname/Library/Developer/Xcode/DerivedData/MyApp-bahhewkdpujtqjghatczibeqkigt/Build/Intermediates.noindex/MyApp.build/Release-iphoneos/MyApp.build/Objects-normal/armv7/MyApp_dependency_info.dat -o /Users/myname/Library/Developer/Xcode/DerivedData/MyApp-bahhewkdpujtqjghatczibeqkigt/Build/Intermediates.noindex/MyApp.build/Release-iphoneos/MyApp.build/Objects-normal/armv7/MyApp

ld: library not found for -ljschelpers
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Expected Behavior

I can build project in xcode.

Environment

React Native Environment Info:
System:
OS: macOS 10.14.2
CPU: (4) x64 Intel(R) Core(TM) i5-4258U CPU @ 2.40GHz
Memory: 57.41 MB / 8.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 9.5.0 - /usr/local/bin/node
npm: 4.4.4 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1
Android SDK:
API Levels: 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27
Build Tools: 19.1.0, 20.0.0, 21.1.2, 22.0.1, 23.0.1, 23.0.2, 23.0.3, 24.0.0, 24.0.1, 24.0.2, 24.0.3, 25.0.0, 25.0.2, 25.0.3, 26.0.0, 26.0.1, 26.0.2, 26.0.3, 27.0.3
System Images: android-25 | Google APIs Intel x86 Atom, android-26 | Google APIs Intel x86 Atom, android-27 | Google APIs Intel x86 Atom
IDEs:
Android Studio: 3.2 AI-181.5540.7.32.5056338
Xcode: 10.1/10B61 - /usr/bin/xcodebuild
npmPackages:
react: 16.6.3 => 16.6.3
react-native: 0.58.6 => 0.58.6

@react-native-bot
Copy link
Collaborator

Thanks for submitting your issue. Can you take another look at your description and make sure the issue template has been filled in its entirety?

👉 Click here if you want to take another look at the Bug Report issue template.

@react-native-bot react-native-bot added Ran Commands One of our bots successfully processed a command. Resolution: Needs More Information labels Apr 3, 2019
@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.59 and verify if the issue still exists.

The "Resolution: 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.

@JKCooper2
Copy link

JKCooper2 commented Apr 7, 2019

Unfortunately upgrading (atm) isn't as simple as that. Please check https://facebook.github.io/react-native/docs/upgrading, and potentially https://github.com/react-native-community/rn-diff-purge for guides on how to upgrade versions

The upgrade process is being looked at, and I believe v0.59 laid a lot of the groundwork for it being more automated, but for the versions you are looking at there will be some manual things to be done

EDIT: Link to auto upgrade discussion react-native-community/discussions-and-proposals#68

@Taylor123
Copy link
Contributor

Try removing the jschelpers library from the Linked Frameworks and Libraries section of your app.

Seems like an updated javascript core framework clashes with having this lib

@dorthwein
Copy link

@Taylor123 solution seemed to have worked for me. Easiest thing was to go to Build Phases in my project and use the filter to search of jschelpers and remove it.

Thank you!

@omarkhaled11
Copy link

Thank you @Taylor123 and @dorthwein the fix worked for me but I had to add JavaScriptCore.framework after removing jschelpers from the binaries, or else I had multiple errors in Xcode build, leaving this here incase someone else runs into the same problem

@stale
Copy link

stale bot commented Aug 2, 2019

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 a "Discussion" or add it to the "Backlog" 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 Aug 2, 2019
@stale
Copy link

stale bot commented Aug 9, 2019

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 Aug 9, 2019
@facebook facebook locked as resolved and limited conversation to collaborators Aug 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Ran Commands One of our bots successfully processed a command. 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

7 participants