Xcode 10.0 GM - dyld: lazy symbol binding failed: can't resolve symbol ___cxa_guard_acquire crash. It was working fine before that
libstdc++ is removed in iOS 12 simulator but it remains in the iOS 12.0 (device) .
So as a workaround you can copy the library (libstdc++.6.0.9.tbd) from Xcode 9.4 to Xcode 10. But this is not a long term solution. You should contact the provider of those libraries and request versions built using libc++.
OR You can add following command to your pod file if you're using Cocoapods as a dependency manager:
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
As a cleaner approach you can now replace in your pod file the framework as:
pod 'TesseractOCRiOS', :git => 'git://github.com/parallaxe/Tesseract-OCR-iOS.git', :branch => 'macos-support'
Support has been added in this branch for iOS 12. Hope this helps someone as it did me :)