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

linker command failed with exit code 1 #4

Open
ZeroCho opened this issue Feb 7, 2021 · 3 comments
Open

linker command failed with exit code 1 #4

ZeroCho opened this issue Feb 7, 2021 · 3 comments

Comments

@ZeroCho
Copy link

ZeroCho commented Feb 7, 2021

can successfully build with simulators and real devices, but this error only happens during archiving.

directory not found for option -L-L"/Users/ad4th/......./@darron1217_react-native-background-geolocation"
ld: library not found for -l@darron1217_react-native-background-geolocation
linker command failed with exit code 1

After failure, I visited that directory, and found there existed the library. One thing that is suspicious is -L-L part in directory not found for option -L-L. Why double -L?

P.S. 원본인 @mauron85 에서도 발생하더라고요.

@darron1217
Copy link
Owner

Thanks for reporting, I'll check this issue soon.

@darron1217
Copy link
Owner

darron1217 commented Feb 13, 2021

I've tested archiving but I couldn't find problem. (I even uploaded it on AppStore)
Can you provide more information of your environment?

@quixote15
Copy link

@darron1217
I am having this build error on ios on RN v0.64.1

ld: library not found for -l@darron1217_react-native-background-geolocation clang: error: linker command failed with exit code 1 (use -v to see invocation)

System:
    OS: macOS 11.0.1
    CPU: (4) x64 Intel(R) Core(TM) i5-4260U CPU @ 1.40GHz
    Memory: 33.07 MB / 4.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 12.21.0 - ~/.nvm/versions/node/v12.21.0/bin/node
    Yarn: 1.19.0 - /usr/local/bin/yarn
    npm: 6.14.11 - ~/.nvm/versions/node/v12.21.0/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.10.1 - /Users/ayodev/.rvm/gems/ruby-2.4.1/bin/pod
  SDKs:
    iOS SDK:
      Platforms: iOS 14.4, DriverKit 20.2, macOS 11.1, tvOS 14.3, watchOS 7.2
    Android SDK: Not Found
  IDEs:
    Android Studio: Not Found
    Xcode: 12.4/12D4e - /usr/bin/xcodebuild
  Languages:
    Java: 1.8.0_25 - /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 17.0.1 => 17.0.1 
    react-native: 0.64.1 => 0.64.1 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

I tried updating pods but had no success.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants