Skip to content

Commit

Permalink
build: fix ios build
Browse files Browse the repository at this point in the history
  • Loading branch information
LazyAfternoons committed May 17, 2024
1 parent 86b766b commit fd29238
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,20 @@ target 'ItaliaApp' do

installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
if target.name == 'Flipper'
file_path = 'Pods/Flipper/xplat/Flipper/FlipperTransportTypes.h'
contents = File.read(file_path)
unless contents.include?('#include <functional>')
File.open(file_path, 'w') do |file|
file.puts('#include <functional>')
file.puts(contents)
end
end
end
# This is needed in order to build the project on Apple silicon.
# Beware that after this modification you need Rosetta to run the app
# on the simulator.
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)', '_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION']
config.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = 'arm64'
end
end
Expand Down

0 comments on commit fd29238

Please sign in to comment.