Last active
August 23, 2019 10:41
Star
You must be signed in to star a gist
libstdc++ is removed in iOS 12 simulator but it remains in the iOS 12.0 (device)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This only works on the device, but not on the simulator. Also see: zdavatz/AmiKo-iOS#92