React-native: ld: library not found for -lRCTBlob

Created on 2 Sep 2017  路  13Comments  路  Source: facebook/react-native

created a new project with react-native init
{
"name": "Test1",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
},
"dependencies": {
"react": "16.0.0-alpha.12",
"react-native": "0.47.1"
},
"devDependencies": {
"babel-jest": "20.0.3",
"babel-preset-react-native": "2.1.0",
"jest": "20.0.4",
"react-test-renderer": "16.0.0-alpha.12"
},
"jest": {
"preset": "react-native"
}
}

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

* BUILD FAILED *

The following commands produced analyzer issues:

Analyze /Users/rajeshchilukuri/Documents/Projects/reactNative/Test1/node_modules/react-native/ReactCommon/yoga/yoga/YGNodeList.c
Analyze /Users/rajeshchilukuri/Documents/Projects/reactNative/Test1/node_modules/react-native/ReactCommon/yoga/yoga/Yoga.c

(2 commands with analyzer issues)

The following build commands failed:
Ld build/Build/Products/Debug-iphonesimulator/Test1.app/Test1 normal x86_64
(1 failure)

Installing build/Build/Products/Debug-iphonesimulator/Test1.app
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=22):
Failed to install the requested application
The bundle identifier of the application could not be determined.
Ensure that the application's Info.plist contains a value for CFBundleIdentifier.
Print: Entry, ":CFBundleIdentifier", Does Not Exist

Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/Test1.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist

react-native -version
react-native-cli: 2.0.1
react-native: 0.47.1

iOS Stale

All 13 comments

Are you sure you created project with RN 0.47.1 ?

0.48.0 has just been released.

Before 0.47 worked and have an app too working. I updated to 0.48 for a new app and it crashed. So reverted to 0.47.1 but still not working.. really strange

Now the app just crashes thats it without any error display

Have same problem with 0.48 in fresh app.

Found problem - I'm accidentally removed react-native folder in node_modules

Seems like the new version has some breaking changes.

Now the app just crashes thats it without any error display

That has been fixed already.

present in 0.48.4

me too,
I init Project with current version 0.50,
but I modify dependencies

{
"name": "PickerTest",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
},
"dependencies": {
"react": "16.0.0-alpha.6",
"react-native": "0.44.3"
},
"devDependencies": {
"babel-jest": "21.2.0",
"babel-preset-react-native": "4.0.0",
"jest": "21.2.1",
"react-test-renderer": "16.0.0-alpha.6"
},
"jest": {
"preset": "react-native"
}
}

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. If you think this issue should definitely remain open, please let us know why. Thank you for your contributions.

doesn't seem to be fixed

I had the same error, what solved it was:

  1. Go to Link the Build Phases tab in Xcode
  2. Select libRCTBlob.a under Link Binary with Libraries and then click the - sign below.
  3. Close and re-open Xcode
  4. Click the + sign and re-add libRCTBlob.a

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.

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.

Was this page helpful?
0 / 5 - 0 ratings