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.

iOS use_frameworks! broken in v0.63.2

See original GitHub issue

Description

Support for the use_frameworks! directive in iOS podfiles was fixed in v0.61, however it seems to be broken again as of version 0.63.2. This is inconvenient because it means that CocoaPods plugins like cocoapods-binary can’t be used to speed up build times (because it requires use_frameworks).

React Native version:

System:
    OS: macOS 11.0
    CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
    Memory: 1.07 GB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 12.18.1 - /var/folders/xc/tfq34tzd54qgz7njmw2rvs3w0000gn/T/yarn--1598547526259-0.19992129118969015/node
    Yarn: 1.22.4 - /var/folders/xc/tfq34tzd54qgz7njmw2rvs3w0000gn/T/yarn--1598547526259-0.19992129118969015/yarn
    npm: 6.14.5 - ~/.nvm/versions/node/v12.18.1/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.9.3 - /Users/kjensen/.gem/bin/pod
  SDKs:
    iOS SDK:
      Platforms: iOS 14.0, DriverKit 20.0, macOS 11.0, tvOS 14.0, watchOS 7.0
    Android SDK:
      API Levels: 29, 30
      Build Tools: 28.0.3, 30.0.1
      System Images: android-30 | Google APIs Intel x86 Atom, android-30 | Google Play Intel x86 Atom
      Android NDK: Not Found
  IDEs:
    Android Studio: 4.1 RC 1 4.1 RC 1
    Xcode: 12.0/12A8189n - /usr/bin/xcodebuild
  Languages:
    Java: 14.0.1 - /usr/bin/javac
    Python: 2.7.16 - /usr/bin/python
  npmPackages:
    @react-native-community/cli: Not Found
    react: ~16.13.1 => 16.13.1 
    react-native: ~0.63.2 => 0.63.2 
  npmGlobalPackages:
    *react-native*: Not Found

Steps To Reproduce

Provide a detailed list of steps that reproduce the issue.

  1. Run npx react-native init MyApp --template react-native-template-typescript && cd MyApp (or clone the example repository)
  2. Add use_frameworks! to ios/Podfile
  3. Run (cd ios && pod install)

Expected Results

image

Actual Results

image

Snack, code example, screenshot, or link to a repository:

https://github.com/Kjens93/react-native-issue-29789

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
chrmodcommented, Sep 25, 2020

@alloy Yes, I can confirm that’s the same issue. I’ve applied your solution and the problem got resolved. Thank you.

2reactions
chrmodcommented, Sep 25, 2020

If that helps, I can provide a simplest react-native@63 repo that will fail to compile any packaged native module with use_frameworks! present. That is without Flipper integration.

Read more comments on GitHub >

github_iconTop Results From Across the Web

adding 'use_frameworks!' in podfile is breaking app
My iOS app contains both objective-C and Swift code. Now i have added use_frameworks! at the top of pod file to use some...
Read more >
Adding Flipper to Generic iOS Apps
platform :ios, '10.0' ... If you use `use_frameworks!` in your Podfile, ... NOTE Doing this may lead to a broken build if any...
Read more >
error while installing Flipper-Boost-iOSX with use_frameworks!
node_modules/@react-native-community/cli-platform-ios/native_modules' ... starts with "use_frameworks! is broken again in react-native 0.69.
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