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.

CxxBridge, when used with Cocoapods, depends on an older version of "boost" that is also 4x larger than the one downloaded by ios-install-third-party.sh

See original GitHub issue

Is this a bug report?

Yes

Have you read the Contributing Guidelines?

Yes

Environment

Scanning folders for symlinks in /Users/mark/Dev/drops-react-native/node_modules (9ms)

Environment: OS: macOS High Sierra 10.13 Node: 8.6.0 Yarn: 1.1.0 npm: 5.3.0 Watchman: 4.9.0 Xcode: Xcode 9.0 Build version 9A235 Android Studio: 2.3 AI-162.4069837

Packages: (wanted => installed) react: 16.0.0-beta.5 => 16.0.0-beta.5 react-native: 0.49.3 => 0.49.3

Steps to Reproduce

  1. Install react-native via Cocoapods
  2. Add CxxBridge instead of BatchedBridge to your Podfile
  3. pod install

Expected Behavior

Download the same version & bundle of the boost library that is used by ios-install-third-party.sh.

Actual Behavior

The boost dependency defined in Folly.podspec points to: https://github.com/CocoaPods/Specs/blob/master/Specs/9/9/d/boost/1.59.0/boost.podspec.json

Which is:

  • Version 1.59.0 instead of boost
  • A way larger bundle (83 Mb instead of 16 Mb)

File specified in the boost pod spec: https://sourceforge.net/projects/boost/files/boost/1.59.0/boost_1_59_0.tar.gz/download

File that ios-install-third-party.sh downloads: https://github.com/react-native-community/boost-for-react-native/releases/download/v1.63.0-0/boost_1_63_0.tar.gz

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:6
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
itchingpixelscommented, Oct 28, 2017

@karpov3 : not just yet, but I think we’re close: https://github.com/facebook/react-native/issues/16381#issuecomment-340189502 so you can download the podspec from our fork, fix the podspec file according to fishmwei 's instructions, and place it in a folder, where you can reference it I believe.

the relevant podspec file in our fork: https://github.com/languagedrops/react-native/commit/1c3f1ab55aa8541bde2adbc4c4f25914a5731021

0reactions
msandcommented, Feb 8, 2018

Does this work with CocoaPods 1.4.0 ? I managed to run gem update, which updated cocoapods, and now I can’t get any React-Native projects to build anymore. 🤔

Read more comments on GitHub >

github_iconTop Results From Across the Web

Updated React Native, can't find 'boost' dependency in Podfile
Literally getting the exact error message. I was missing the following line in my Podfile: pod 'boost', :podspec => ' ...
Read more >
boost on CocoaPods.org
Boost provides free peer-reviewed portable C++ source libraries.
Read more >
Xcode/Cocoapods not resolving depe… - Apple Developer
I created a new app with no dependencies and it was built and loaded correctly on iOS emulator and physical device. The issue...
Read more >
Distributing universal iOS frameworks as XCFrameworks ...
How to distribute XCFrameworks using Cocoapods · 1. Download the starter pack · 2. Build an XCFramework · 3. Create git repo to...
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