Resolve reactnativepods.rb with node to allow for hoisting require…
- User
Resolve react_native_pods.rb with node to allow for hoisting
require Pod::Executable.execute_command('node', ['-p', 'require.resolve( "react-native/scripts/react_native_pods.rb", {paths: [process.argv[1]]}, )', dir]).strip
platform :ios, '13.4'
enable Video caching
$RNVideoUseVideoCaching=true
If you are using a
react-native-flipperyour iOS build will fail whenNO_FLIPPER=1is set.because
react-native-flipperdepends on (FlipperKit,...) that will be excludedTo fix this you can also exclude
react-native-flipperusing areact-native.config.js```js
module.exports = {
dependencies: {
...(process.env.NO_FLIPPER ? { 'react-native-flipper': { platforms: { ios: null } } } : {}),
```
flipper_config = ENV['NO_FLIPPER'] == "0" ? FlipperConfiguration.disabled : FlipperConfiguration.enabled
linkage = ENV['USE_FRAMEWORKS'] if linkage != nil Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green use_frameworks! :linkage => linkage.to_sym
end
target 'mobile' do config = use_native_modules!
if ENV['RNV_SAMPLE_VIDEO_CACHING'] $RNVideoUseVideoCaching = true end
Flags change depending on the env values.
flags = get_default_flags()
use_react_native!( :path => config[:reactNativePath], # Hermes is now enabled by default. Disable by setting this flag to false. :hermes_enabled => flags[:hermes_enabled], :fabric_enabled => flags[:fabric_enabled], # Enables Flipper. # # Note that if you have use_frameworks! enabled, Flipper will not work and # you should disable the next line. :flipper_configuration => flipper_config, # An absolute path to your application root. :app_path => "#{Pod::Config.instance.installation_root}/.." ) target 'mobileTests' do inherit! :complete # Pods for testing end post_install do |installer| # https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202 react_native_post_install( installer, config[:reactNativePath], :mac_catalyst_enabled => false ) __apply_Xcode_12_5_M1_post_install_workaround(installer) end end
rn_maps_path = '../node_modules/react-native-maps' pod 'react-native-google-maps', :path => rn_maps_path when I try to install pods it comes to react-native-video and gives me [!] The following Swift pods cannot yet be integrated as static libraries:
The Swift pod
react-native-videodepends upon and , which do 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 globally in your Podfile, or specify for particular dependencies. this error - Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.