Skip to content

Instantly share code, notes, and snippets.

@gali8
Last active August 23, 2019 10:41
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save gali8/7d090865a904a16caf5a7a3116c3c3ab to your computer and use it in GitHub Desktop.
libstdc++ is removed in iOS 12 simulator but it remains in the iOS 12.0 (device)
post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name == 'TesseractOCRiOS'
target.build_configurations.each do |config|
config.build_settings['ENABLE_BITCODE'] = 'NO'
end
header_phase = target.build_phases().select do |phase|
phase.is_a? Xcodeproj::Project::PBXHeadersBuildPhase
end.first
duplicated_header_files = header_phase.files.select do |file|
file.display_name == 'config_auto.h'
end
duplicated_header_files.each do |file|
header_phase.remove_build_file file
end
end
end
end
@zdavatz
Copy link

zdavatz commented Aug 23, 2019

This only works on the device, but not on the simulator. Also see: zdavatz/AmiKo-iOS#92

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment