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

Xcode build failed because of missing library (RCTGeolocation) #682

Closed
sebslomski opened this issue Apr 5, 2015 · 6 comments
Closed

Xcode build failed because of missing library (RCTGeolocation) #682

sebslomski opened this issue Apr 5, 2015 · 6 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@sebslomski
Copy link

Hi,

after installing react-native-cli from scratch and creating a new project, the Xcode build is not passing.

The error:

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

Any ideas?

A react-native project I created two weeks ago is working perfectly.

@brentvatne
Copy link
Collaborator

@sebslomski - what does your "Link Binary with Libraries" screen look like? eg: http://url.brentvatne.ca/1gK2z

Also, is RCTGeolocation.xcodeproj under your Libraries directory? eg: http://url.brentvatne.ca/dWH9 - if not, you will need to add it to the project (node_modules/react-native/Libraries/GeoLocation/RCTGeolocation.xcodeproj)

@sebslomski
Copy link
Author

Thanks for your input! The Xcode referenced to "node_modules/react-native/Libraries/GeoLocation/RCTGeolocation.xcodeproj", but the folder is named Geolocation.
It's working on master head.

@leefernandes
Copy link

I also go a build error when running xcode immediately after "react-native init myproject". updating package.json to point to "https://github.com/facebook/react-native.git#master" resolved the build issue. However the app launches, and almost immediately displays a red screen of death with this error in the console.

Error: ENOENT, open '/Users/path/to/project/node_modules/react-native/Libraries/GeoLocation/Geolocation.ios.js'
    at Error (native)
[09:28:02] <START> request:/index.ios.bundle

@sebslomski
Copy link
Author

Well, I'm running my OS X on a case sensitive file system. Switching to react-native master fixed that for me.

On Sat, Apr 18, 2015 at 3:21 PM, Lee Owen notifications@github.com
wrote:

I'm also getting this error when running xcode immediately after "react-native init myproject". What was the resolution?

Reply to this email directly or view it on GitHub:
#682 (comment)

@Abrarmm
Copy link

Abrarmm commented Dec 9, 2015

@itsleeowen how did you do this ?

@abuammar
Copy link

abuammar commented Nov 8, 2016

i got this error

The following build commands failed:
CompileC /Users/ws1/Code/mobile/ios/build/Build/Intermediates/AirMaps.build/Debug-iphonesimulator/AirMaps.build/Objects-normal/x86_64/AIRMapPolylineManager.o AirMaps/AIRMapPolylineManager.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
CompileC /Users/ws1/Code/mobile/ios/build/Build/Intermediates/AirMaps.build/Debug-iphonesimulator/AirMaps.build/Objects-normal/x86_64/AIRMapPolygon.o AirMaps/AIRMapPolygon.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
CompileC /Users/ws1/Code/mobile/ios/build/Build/Intermediates/AirMaps.build/Debug-iphonesimulator/AirMaps.build/Objects-normal/x86_64/AIRMapPolygonManager.o AirMaps/AIRMapPolygonManager.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(3 failures)
Installing build/Build/Products/Debug-iphonesimulator/WS1.com.app
An error was encountered processing the command (domain=LaunchServicesError, code=0):
The operation couldn’t be completed. (LaunchServicesError error 0.)
Launching org.reactjs.native.example.ws1
An error was encountered processing the command (domain=FBSOpenApplicationErrorDomain, code=4):
The operation couldn’t be completed. (FBSOpenApplicationErrorDomain error 4.)

@facebook facebook locked as resolved and limited conversation to collaborators May 29, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 23, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

6 participants