react-native-background-geolocation
react-native-background-geolocation copied to clipboard
linker command failed with exit code 1
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 에서도 발생하더라고요.
Thanks for reporting, I'll check this issue soon.
I've tested archiving but I couldn't find problem. (I even uploaded it on AppStore) Can you provide more information of your environment?
@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.