gpt4 book ai didi

ios - Xcode 10.0 GM - dyld : lazy symbol binding failed: can't resolve symbol ___cxa_guard_acquire crash. 在那之前工作正常

转载 作者:搜寻专家 更新时间:2023-10-30 23:04:07 25 4
gpt4 key购买 nike

我使用 cocoa pods 安装了 TesseractOCR 库。该应用程序在设备上运行时运行良好,包括 iOS12 设备。崩溃仅发生在 iOS12 模拟器上。我还安装了 iOS 11.4 Simulator,它在那个上运行良好。一段时间以来,我一直在挠头。这是我遇到的崩溃。

dyld: lazy symbol binding failed: can't resolve symbol ___cxa_guard_acquire in /Users/IancuTudor/Library/Developer/CoreSimulator/Devices/ABE5EE31-47C8-4457-8F33-B4C265599147/data/Containers/Bundle/Application/40814EAD-8965-47F2-8036-3DE48A8143BF/Bookly.app/Frameworks/TesseractOCR.framework/TesseractOCR because dependent dylib #1 could not be loaded

dyld: can't resolve symbol ___cxa_guard_acquire in /Users/IancuTudor/Library/Developer/CoreSimulator/Devices/ABE5EE31-47C8-4457-8F33-B4C265599147/data/Containers/Bundle/Application/40814EAD-8965-47F2-8036-3DE48A8143BF/Bookly.app/Frameworks/TesseractOCR.framework/TesseractOCR because dependent dylib #1 could not be loaded
(lldb)

最佳答案

libstdc++ is removed in iOS 12 simulator but it remains in the iOS 12.0 (device) .

因此,作为解决方法,您可以将库 (libstdc++.6.0.9.tbd) 从 Xcode 9.4 复制到 Xcode 10。但这不是长期解决方案。您应该联系这些库的提供者并请求使用 libc++ 构建的版本。

或者如果您使用 Cocoapods 作为依赖管理器,您可以将以下命令添加到您的 pod 文件中:

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

结束

关于ios - Xcode 10.0 GM - dyld : lazy symbol binding failed: can't resolve symbol ___cxa_guard_acquire crash. 在那之前工作正常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52331634/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com