React-native-firebase: No such file or directory: libRNFirebase.a

Created on 10 Aug 2018  路  10Comments  路  Source: invertase/react-native-firebase

Issue

Building my app in debug/release mode produce error
no such file or directory: '/Library/Developer/Xcode/DerivedData/App-aqmvuabcxrupkgfjyogwyxrtzbvk/Build/Products/Debug-iphonesimulator/libRNFirebase.a'
but real location of libRNFirebase.a is Debug-iphonesimulator/RNFirebase/libRNFirebase.a'

clean build and cleaning Derrived Data didn't help;
pod deintegrate didn't help;
upgrading RN version and RNF version it's not an option

is there any solutions?

Environment

  1. Application Target Platform: iOS
  2. Development Operating System: macOS High Sierra
  3. Build Tools:

    • Xcode 9.4

    • Xcode 9.2

    • Xcode 9.3

    • deployment target iOs 9.0

  4. React Native version: 0.44.0
  5. React Native Firebase Version: 2.2.3
  6. Firebase Module: Core, Crash, Messaging ~> 4.2.0

    7. Are you using typescript: no

Stale

Most helpful comment

For me, I installed RNFirebase using cocoapods _after_ deserting the npm method. But I still had a RNFirebase.xcodeproj file under "Libraries." Try Deleting the RNFirebase Library.

All 10 comments

How are you linking RNFirebase? Are you just running react-native link react-native-firebase? If you are, it might be worth trying to manually link that .a like step 2 in the linking guide.

@joshimbriani linking was manually

Hello 馃憢, this issue has been automatically marked as stale because it has not had activity for quite some time. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. Thank you for your contributions.

Closing this issue after a prolonged period of inactivity. If this is still present in the latest release, please feel free to create a new issue with up-to-date information.

I know it's been a while, but I'm still facing this issue from time to time, mostly on my CI machine.
as I mention before main problem - is with linker

no such file or directory: '/Library/Developer/Xcode/DerivedData/App-aqmvuabcxrupkgfjyogwyxrtzbvk/Build/Products/Debug-iphonesimulator/libRNFirebase.a'
but real location of libRNFirebase.a is
/Library/Developer/Xcode/DerivedData/App-aqmvuabcxrupkgfjyogwyxrtzbvk/Build/Products/Debug-iphonesimulator/RNFirebase/libRNFirebase.a'

I tried manual linking and automatic, changing package versions (between 2.1.0 and 2.2.3) - nothing.

For me, I installed RNFirebase using cocoapods _after_ deserting the npm method. But I still had a RNFirebase.xcodeproj file under "Libraries." Try Deleting the RNFirebase Library.

I am having this issue every two weeks when I try to compile the new version of my app and after some build / clean / restart sometimes i get it to work but to be honest I don't understand what is causing this :s Any fix ?

.

I am facing the same issue it's been about a month without any luck

Same here. Only on CI machine. 馃

Was this page helpful?
0 / 5 - 0 ratings