You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 22, 2024. It is now read-only.
When I build my react native projection XCode I get the following error:
/Users/owhittlef/code/Parea/ios/Pods/Headers/Private/RCT-Folly/folly/portability/Time.h:52:17 Typedef redefinition with different types ('uint8_t' (aka 'unsigned char') vs 'enum clockid_t')
When I try to run npm run ios I get another error. I believe this one's related with Flipper-Folly but not sure. The error is
The following build commands failed:
CompileC /Users/owhittlef/Library/Developer/Xcode/DerivedData/Parea-fvqmxpilfyeylsflhumwxfsffatn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RCT-Folly.build/Objects-normal/arm64/TimeoutManager.o /Users/owhittlef/code/Parea/ios/Pods/RCT-Folly/folly/io/async/TimeoutManager.cpp normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'RCT-Folly' from project 'Pods')
To Reproduce
Create a new react native project and try to build. I have included all of my specific packages and configurations in the following section.
Environment
My Podfile:
# 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.0
prepare_react_native_project!
# If you are using a `react-native-flipper` your iOS build will fail when `NO_FLIPPER=1` is set.
# because `react-native-flipper` depends on (FlipperKit,...) that will be excluded
#
# To fix this you can also exclude `react-native-flipper` using a `react-native.config.js`
# ```js
# module.exports = {
# dependencies: {
# ...(process.env.NO_FLIPPER ? { 'react-native-flipper': { platforms: { ios: null } } } : {}),
# ```
flipper_config = ENV['NO_FLIPPER'] == "1" ? 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 'Parea' do
config = use_native_modules!
use_react_native!(
:path => config[:reactNativePath],
# 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 'PareaTests' 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
)
# https://stackoverflow.com/a/64802905
# installer.pods_project.targets.each do |target|
# target.build_configurations.each do |config|
# config.build_settings['ENABLE_BITCODE'] = 'NO'
# config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
# end
# end
end
end
I have the same issue. The code below used to work for me:
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.4'
config.build_settings["ONLY_ACTIVE_ARCH"] = "NO"
`sed -i -e $'s/__IPHONE_[0-9][0-9]_[0-9]/__IPHONE_14_0/' Pods/RCT-Folly/folly/portability/Time.h`
end
end
🐛 Bug Report
When I build my react native projection XCode I get the following error:
When I try to run
npm run ios
I get another error. I believe this one's related with Flipper-Folly but not sure. The error isTo Reproduce
Create a new react native project and try to build. I have included all of my specific packages and configurations in the following section.
Environment
My Podfile:
My Podfile.lock
My package.json
The text was updated successfully, but these errors were encountered: