I'm struggling really hard with building the app under release schema in Xcode. Finally, the last error that occurs looks as follows:
http://i65.tinypic.com/35cisn9.png
ld: warning: directory not found for option '-L/Users/DC/Library/Developer/Xcode/DerivedData/pagarony-gttspckltgehqjbmapfbkdfpuwlb/Build/Products/Release-iphoneos/GTMSessionFetcher'
ld: warning: directory not found for option '-L/Users/DC/Library/Developer/Xcode/DerivedData/pagarony-gttspckltgehqjbmapfbkdfpuwlb/Build/Products/Release-iphoneos/GoogleToolboxForMac'
ld: warning: directory not found for option '-L/Users/DC/Library/Developer/Xcode/DerivedData/pagarony-gttspckltgehqjbmapfbkdfpuwlb/Build/Products/Release-iphoneos/leveldb-library'
ld: warning: directory not found for option '-L/Users/DC/Library/Developer/Xcode/DerivedData/pagarony-gttspckltgehqjbmapfbkdfpuwlb/Build/Products/Release-iphoneos/nanopb'
ld: library not found for -lGTMSessionFetcher
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I suspect this issue might come from Firebase. Has anyone here encountered such issue?
Note that it does not occur when in debug mode.
Application Target Platform:
iOS
Development Operating System:
Mac OS High Sierra
Build Tools:
command line
XCode 9.2
React Native version:
react-native-cli: 2.0.1
react-native: 0.52.2
RNFirebase Version:
"react-native-firebase": "^3.2.3",
Firebase Module:
Storage
@thedc89 which error are you getting? This issue, or this other one you opened? https://github.com/invertase/react-native-firebase/issues/808
@chrisbianca this one was the first I got, after a couple of cleans and other tricks found in other issues I managed to silent this error for a while, but afterwards it showed up again. Not sure which error is called first though, this or #808 so I decided not to close this issue until it's fully resolved
For now, I managed to solve it by running pod deintegrate
and pod install1
Closing the issue
The issue occurs again, pod deintegrate
and pod install
do not solve it anymore
@thedc89 have you found a solution?
@yezarela Unfortunately not. Are you facing the same issue?
pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
pod 'React', :path => '../node_modules/react-native', :subspecs => ['DevSupport'] work?
@evanjmg When I run pod install I get
[!] Unable to find a specification for
yoga (= 0.53.3.React)
depended upon byReact/Core
sorry forgot to add yoga in pod pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
in my case, I use fastlane/gym to package a release of the app and found that I need to update gymfile to use workspace
instead of project
in order to include pod files.
@evanjmg Now I get
ld: library not found for -lPods-pagarony
clang: error: linker command failed with exit code 1 (use -v to see invocation)
pagarony is the name of project.
What worked for me was to add this https://github.com/invertase/react-native-firebase/issues/294#issuecomment-370669509 into my pod file.
After you do that first apply these commands:
1. rm -rf ios/Pods.
2. rm ios/Podfile.lock.
3. pod install
You can also try unlink and re-link the library and install pods again if these do not work.
We've not heard much on this for a while, so I'm going to assume it's been resolved as part of the header changes in v4. Please let us know if this is not the case after updating to v4.
Don't forget to close xcode before running pod install
. After that open your project with .xcworkspace
.
The problem occurs only when node modules for some other libraries are linked in Podfile. After I added all other libraries manually and do not run react-native link
, it's all fine
after i removed all pods from project and manually linked all dependencies project has built successfully.
Most helpful comment
For now, I managed to solve it by running
pod deintegrate
andpod install1
Closing the issue