question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CocoaLibEvent does not contain bitcode

See original GitHub issue

After fresh setup according to docs, tvOS build encounters error:

ios/Pods/CocoaLibEvent/lib_tvos/libevent.a(event.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. for architecture arm64

CocoaLibEvent is something that Flipper seems to require, and I can’t find any proper info on how to enable bitcode for CocoaLibEvent pod.

If I comment out the references to everything related to Flipper in the Podfile, and comment out everything related to Flipper, the app runs.

React Native version:

info Fetching system and libraries information… System: OS: macOS 10.15.5 CPU: (16) x64 Intel® Core™ i9-9980HK CPU @ 2.40GHz Memory: 1.80 GB / 32.00 GB Shell: 5.7.1 - /bin/zsh Binaries: Node: 10.17.0 - /usr/local/opt/node@10/bin/node Yarn: 1.22.4 - ~/.yarn/bin/yarn npm: 6.11.3 - /usr/local/opt/node@10/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman Managers: CocoaPods: 1.9.1 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: iOS 13.5, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2 Android SDK: API Levels: 23, 24, 26, 28, 29 Build Tools: 28.0.3, 29.0.0 System Images: android-27 | Android TV Intel x86 Atom, android-28 | Android TV Intel x86 Atom, android-29 | Google APIs Intel x86 Atom, android-Q | Android TV Intel x86 Atom Android NDK: Not Found IDEs: Android Studio: 3.6 AI-192.7142.36.36.6241897 Xcode: 11.5/11E608c - /usr/bin/xcodebuild Languages: Java: 1.8.0_131 - /usr/bin/javac Python: 2.7.13 - /Library/Frameworks/Python.framework/Versions/2.7/bin/python npmPackages: @react-native-community/cli: Not Found react: 16.11.0 => 16.11.0 react-native: Not Found react-native-tvos: 0.62.2-0

Steps To Reproduce

  1. npx react-native init MyApp --template=react-native-tvos@latest
  2. Open Xcode to run on connected AppleTV 4K

Describe what you expected to happen:

The thing actually runs without adjustments, or at least a mention of this gotcha in the readme 😃

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:6

github_iconTop GitHub Comments

1reaction
douglowdercommented, Jun 30, 2020

@olafurnsig A quicker way to get up and running on a device is to add a user defined setting to your project build settings:

ENABLE_BITCODE=NO

However, not doing the device build with Bitcode enabled might cause problems with submission to the App Store, so I’m going to have to think carefully about whether I should put this into the new project template.

0reactions
olafurnsigcommented, Jul 1, 2020

@olafurnsig this is fixed in the 0.62.2 maintenance branch, and will be in the next release. I disabled Bitcode for debug device builds (Flipper is only supported for debug builds anyway).

If you are using the community CLI (@react-native-community/cli), you can try this by doing

react-native init TestApp --template=https://github.com/react-native-community/react-native-tvos#tvos-v0.62.2

Thanks for the hard work Doug!

But yeah, Bitcode is a requisite for a AppleTV release in the appstore, so it should only be disabled for debug builds.

Read more comments on GitHub >

github_iconTop Results From Across the Web

CocoaLibEvent does not contain bitcode · Issue #70 - GitHub
After fresh setup according to docs, tvOS build encounters error: ios/Pods/CocoaLibEvent/lib_tvos/libevent.a(event.o)' does not contain ...
Read more >
does not contain bitcode. You must rebuild it ... - Stack Overflow
It seems like you're using a library/dependency that may still have bitcode enabled. (AppLovin?) Make sure all the dependencies u use have ...
Read more >
Xcode setting ENABLE_BITCODE | Apple Developer Forums
The setting is located in Build Settings -> Build Options. In there is a setting called "Enable Bitcode", and you can set it...
Read more >
Anyone else having trouble with bitcode? - Google Groups
Pods/Firebase/Firebase.framework/Firebase(Firebase.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), ...
Read more >
How to solve the "APOpenSSL' does not contain bitcode" error
Solution. The APOpenSSL.framework library does not support the compilation with BITCODE mode enabled, so you need to set Enable Bitcode to NO in ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found