-
Notifications
You must be signed in to change notification settings - Fork 103
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
Error when compiling iOS project after Firebase installation #390
Comments
Same to me! |
Looks like we need to add compatibility with # add this inside Podfile, inside your app target
pre_install do |installer|
installer.pod_targets.each do |pod|
if pod.name.eql?('callstack-repack')
def pod.build_type
Pod::BuildType.static_library
end
end
end
end Please let me know where this allows you to build your app without issues from Re.Pack |
I don't know if it'll be possible for us to solve the issue from within Repack. I tried to see how other libraries have tackled this issue, and currently, there isn't a community-wide agreed-upon solution. The most frequently mentioned solution is to change how the Firebase libraries are built into the final app bundle, and it's the only solution that makes it possible to use Firebase libs together with Flipper in the same project.
I would like to add that I'm not a native iOS developer so I might be missing something and it's quite possible that a small configuration change in Repack will make it compatible with apps using |
This issue has been marked as stale because it has been inactive for 30 days. Please update this issue or it will be automatically closed in 14 days. |
This issue has been automatically closed because it has been inactive for more than 14 days. Please reopen if you want to add more context. |
Environment
dependencies:
"@react-native-firebase/app": "^18.1.0", "@callstack/repack": "^3.2.0", "react-native": "0.70.8"
Lib Firebase https://rnfirebase.io/
Description
There is an error when compiling the project on iOS after installing Firebase. The project was running fine before attempting to install Firebase.
The following build commands failed:
CompileC /Users/user/Library/Developer/Xcode/DerivedData/RepackDemo-cm/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/callstack-repack.build/Objects-normal/arm64/ScriptManager.o /Users/user/Documents/rn-repack/RepackDemo/node_modules/@callstack/repack/ios/ScriptManager.mm normal arm64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'callstack-repack' from project 'Pods')
(1 failure)
Podfile
The text was updated successfully, but these errors were encountered: