iOS use_frameworks! broken in v0.63.2
See original GitHub issueDescription
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.
- Run
npx react-native init MyApp --template react-native-template-typescript && cd MyApp
(or clone the example repository) - Add
use_frameworks!
toios/Podfile
- Run
(cd ios && pod install)
Expected Results
Actual Results
Snack, code example, screenshot, or link to a repository:
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@alloy Yes, I can confirm that’s the same issue. I’ve applied your solution and the problem got resolved. Thank you.
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.