react-native-firebase icon indicating copy to clipboard operation
react-native-firebase copied to clipboard

Archiving issues iOS => FirebaseCore/FirebaseCore.h' file not found -- only on iOS Release config

Open Benjumali opened this issue 7 years ago • 13 comments

As issues revolving around archiving keep getting closed i want to open a new thread.

i refer to some issues: one of them was :https://github.com/invertase/react-native-firebase/issues/1166

There has been a solution found for this problem.

"Add the correct archive header path to the Release part of both Framework Search Paths and Header Search Paths in the RNFirebase project build settings. This defaults to "$(BUILD_ROOT)/../IntermediateBuildFilesPath/UninstalledProducts/iphoneos" but the location is dependent on your overall project build settings."

This works locally but not if you are working with a remote CI/CD process.

Can you guys please update this to make it work with a remote build process.

Using modular headers in podfile does not work nor can we remove use_frameworks as we use different pods which rely on this

Benjumali avatar Dec 17 '18 15:12 Benjumali

The workaround mentioned at the 3.2.2 release notes does not work for my project. The problem persists even after adding the Pods framework to the RNFirebase project build phase.

Here is the work around that I use now, in the project Podfile, that works reliably on clean checkout without dependency modifications;

post_install do |installer|
  system("mkdir -p Pods/Headers/Public/FirebaseCore && cp Pods/FirebaseCore/Firebase/Core/Public/* Pods/Headers/Public/FirebaseCore/")
end

bartolkaruza avatar Jan 08 '19 05:01 bartolkaruza

Please follow the issue template @Benjuari - we have no clue what version you're working with here.

Ehesp avatar Jan 08 '19 11:01 Ehesp

@Ehesp I can confirm this issue is relevant on 5.2.0 (latest at the time of writing). Could you please re-open this?

bartolkaruza avatar Jan 09 '19 12:01 bartolkaruza

@bartolkaruza thanks for the support! @Ehesp I also confirm this! I was working with the latest version.

Benjumali avatar Jan 09 '19 14:01 Benjumali

I was having the same issue on react-native 0.58 The Post install script worked for me 👍 I added the script in the post_install script

sadafk831 avatar Mar 20 '19 09:03 sadafk831

The workaround mentioned at the 3.2.2 release notes does not work for my project. The problem persists even after adding the Pods framework to the RNFirebase project build phase.

Here is the work around that I use now, in the project Podfile, that works reliably on clean checkout without dependency modifications;

post_install do |installer|
  system("mkdir -p Pods/Headers/Public/FirebaseCore && cp Pods/FirebaseCore/Firebase/Core/Public/* Pods/Headers/Public/FirebaseCore/")
end

@bartolkaruza This works when Archiving but on running on device, I get the Missing Module Error: in native.js file inside initialiseNativeModule function.

I'm simply trying to listen for Auth change event. This issue is a blocker for us because another pod library depends on use_framework. Is there any workaround for this issue? @Ehesp

kaykaul avatar Mar 29 '19 12:03 kaykaul

@bartolkaruza @Ehesp Any help would be greatly appreciated!

kaykaul avatar Apr 01 '19 15:04 kaykaul

any update, and i don't even have pod file in my project.

Screenshot 2019-04-10 at 5 11 28 PM

and the error is

Screenshot 2019-04-10 at 5 13 06 PM

ahsanmster avatar Apr 10 '19 12:04 ahsanmster

Hello 👋, to help manage issues we automatically close stale issues. This issue has been automatically marked as stale because it has not had activity for quite some time. Has this issue been fixed, or does it still require the community's attention?

This issue will be closed in 15 days if no further activity occurs. Thank you for your contributions.

stale[bot] avatar May 09 '19 18:05 stale[bot]

Problem the still exist. Anybody fixed this problem? I can't normal use Gitlab CI.

AndreyPatseiko avatar May 23 '19 06:05 AndreyPatseiko

#2163 is the canonical place we are tracking header file problems, and it has a workaround (actually the one listed above - a header copy as Podfile post install step) that works in archive for release mode, including with a reproducible demo that proves it

mikehardy avatar Jun 06 '19 12:06 mikehardy

Hi, I am also face this issue. But I have fixed error. First goto project folder in ios folder and open profile file you just Commit use_framework. Then delete projectName.xcworkspace, pod folders and profile.lock file. And pod update, pod install finally open project to xcode and build. Easy to solve this issue and fixed.

Sarathphd avatar Jul 10 '19 08:07 Sarathphd

I have tried everything but still facing the same issue. someone please help

taniksha-mfy avatar Jun 17 '21 06:06 taniksha-mfy