Hi
I added use_modular_headers! in Pod file after since getting following errors in Xcode 13
Lexical or Preprocessor Issue :
- Redefinition of module 'DoubleConversion'
- Redefinition of module 'folly'
Parse Issue :
- Could not build module 'Darwin'
- Could not build module 'CoreFoundation'
- Could not build module 'Foundation'
POD FILE
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
require_relative '../node_modules/react-native/scripts/react_native_pods'
platform :ios, '11.0'
use_modular_headers!
target 'PROJECTNAME' do
config = use_native_modules!
use_react_native!(:path => config["reactNativePath"])
pod 'react-native-webview', :path => '../node_modules/react-native-webview'
pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec', :modular_headers => false
target 'PROJECTNAME' do
inherit! :complete
# Pods for testing
end
# Enables Flipper.
#
# Note that if you have use_frameworks! enabled, Flipper will not work and
# you should disable these next few lines.
use_flipper!({ 'Flipper' => '0.87.0', 'Flipper-Folly' => '2.5.3', 'Flipper-RSocket' => '1.3.1' })
post_install do |installer|
flipper_post_install(installer)
end
end
target 'PROJECTNAME-tvOS' do
# Pods for [YourProjectName]-tvOS
target 'PROJECTNAME-tvOSTests' do
inherit! :search_paths
# Pods for testing
end
end
- Xcode Version 13.2.1
- ios deployment target 11.0
- "react-native": "0.63.0",
- "react": "16.13.1",
Anyone got any reasons for why this might be?