ffmpeg-kit icon indicating copy to clipboard operation
ffmpeg-kit copied to clipboard

Expo 50 requires modular headers in podfile for iOS

Open marksyzm opened this issue 1 year ago • 0 comments

Description Expo's pod installation requires that modular headers are enabled for this app, but I have to install them globally in the podfile in order to allow the module to install, rather than doing it per a module:

use_modular_headers!
pod 'ffmpeg-kit-react-native', :subspecs => ['audio'], :podspec => '../node_modules/ffmpeg-kit-react-native/ffmpeg-kit-react-native.podspec'

This isn't necessary at all if used within the target, i.e.:

target 'intune' do
  pod 'ffmpeg-kit-react-native', :subspecs => ['audio'], :podspec => '../node_modules/ffmpeg-kit-react-native/ffmpeg-kit-react-native.podspec'
  # rest of file
end

Expected behavior Should just install without having to set this value, or run with this config?

pod 'ffmpeg-kit-react-native', :modular_headers => true, :subspecs => ['audio'], :podspec => '../node_modules/ffmpeg-kit-react-native/ffmpeg-kit-react-native.podspec'

Current behavior Error thrown indicating that modular_headers are required.

To Reproduce

npx create-expo-app`
npx expo run prebuild
npx expo install ffmpeg-kit-react-native
npm run ios

Logs

Installing ffmpeg-kit-react-native (6.0.2)
[!] The following Swift pods cannot yet be integrated as static libraries:

The Swift pod `ExpoModulesCore` depends upon `RCT-Folly.common`, which does not define modules. To opt into those targets generating module maps (which is necessary to import them from Swift when building as static libraries), you may set `use_modular_headers!` globally in your Podfile, or specify `:modular_headers => true` for particular dependencies.

Environment

  • Platform: iOS/ReactNative
  • Architecture: arm64
  • Version: v6.0.2
  • Source branch: main
  • Xcode version: 15.2
  • Cocoapods version: 1.15.0

marksyzm avatar Feb 03 '24 22:02 marksyzm