Skip to content

Prebuilt 7.0.1 frameworks and libraries for iOS missing bitcode #266

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

Closed
Olof-IL opened this issue Feb 3, 2021 · 3 comments
Closed

Prebuilt 7.0.1 frameworks and libraries for iOS missing bitcode #266

Olof-IL opened this issue Feb 3, 2021 · 3 comments

Comments

@Olof-IL
Copy link

Olof-IL commented Feb 3, 2021

[REQUIRED] Please fill in the following fields:

  • Pre-built SDK from the website or open-source from this repo: Pre-built SDK
  • Firebase C++ SDK version: 7.0.1
  • Problematic Firebase Component: App,Auth,Firestore,Analytics,Messaging,Storage (probably all of them)
  • Other Firebase Components in use: Same as above
  • Platform you are using the C++ SDK on: Mac
  • Platform you are targeting: iOS

[REQUIRED] Please describe the issue here:

Libraries missing BITCODE support. I get this error from ld for both the static library and framework versions:

ld: '../Dependencies/firebase_cpp/libs/ios/universal/libfirebase_app.a(util_ios.mm.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. file '../Dependencies/firebase_cpp/libs/ios/universal/libfirebase_app.a' for architecture arm64

(Please list the full steps to reproduce the issue. Include device logs, Unity logs, and stack traces if available.)

Steps to reproduce:

Just try to build using the latest prebuilt SDK.

Have you been able to reproduce this issue with just the Firebase C++ quickstarts ?

YES!

What's the issue repro rate? (eg 100%, 1/5 etc).

100%

What happened? How can we make the problem occur?
This could be a description, log/console output, etc.

Updated Pods to 7.0.0
Also increased platform to 11.0 since it refused to download pods with too low platform version.
Replaced firebase_cpp_sdk with latest Prebuilt 7.0.1
Try build with XCode (I used the firestore test-app since I had it up and running since before)

Result:

ld: '../../firebase_cpp_sdk/frameworks/ios/arm64/firebase.framework/firebase(util_ios.mm.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. file '../../firebase_cpp_sdk/frameworks/ios/arm64/firebase.framework/firebase'

Relevant Code:

No code change from quickstart app, except minor build fixes. Attaching patch with all my changes from master branch of quickstart app

patch.txt

@Olof-IL Olof-IL added the new New issue. label Feb 3, 2021
@Olof-IL
Copy link
Author

Olof-IL commented Feb 3, 2021

As a workaround I've disabled bitcode for my target for now. Not sure how much of an issue this is, bitcode still seems to be optional for iOS, but the last version (6.16.1) didn't have any issues with bitcode support.

I also noticed right now that the remote_config libraries seem to have bitcode enabled in 7.0.1, just thought I should mention that.

@patm1987
Copy link

patm1987 commented Feb 5, 2021

Hi @Olof-IL ,

It looks like this might have been a misconfiguration in when building the latest SDK, and it's intended that bitcode should work. I'll mark this as a bug, but if this is a blocker for you now (ie: you're building for tvOS or watchOS), you might have luck building from the source on this repo.

@patm1987 patm1987 added needs-triage type: bug and removed new New issue. labels Feb 5, 2021
jonsimantov added a commit that referenced this issue Feb 11, 2021
Enable bitcode for Firebase C++ SDK build on iOS.

Fixes issue #266.
@jonsimantov
Copy link
Contributor

Thanks for letting us know about this issue. A fix (#276) has been merged into our development branch and will be included in the next binary SDK release.

@chkuang-g chkuang-g added this to the 7.1.0 milestone Feb 11, 2021
@firebase firebase locked and limited conversation to collaborators Mar 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants