当 iphone 5 设备中的 运行 时,Apple Mach-O 链接器 (ld) 错误组

Apple Mach-O Linker (ld) Error Group when run in iphone 5 Device

每当我 运行 我在 iPhone 5 device model:A1429 中的应用程序时,我都会收到以下错误:

我无法运行 iPhone 5 模型中的应用程序通过。虽然应用程序 运行 通过模拟器和 iphone 6s,6s+ device 没问题。然而,我可以在我的 iphone 5 设备中 运行 其他项目。

请帮助我,为什么我无法 运行 我的申请 iphone 5 Device

注:
Iphone5 iOS 版本:10.3.2(14F89)
Xcode 版本:8.3.2 (8E2002)

错误信息:

Ld /Users/mydrive/Library/Developer/Xcode/DerivedData/myApp-eqvhrwwgwngmksguwakvgjbdeygf/Build/Products/Debug-iphoneos/myApp.app/myApp normal armv7 cd "/Users/mydrive/Desktop/myApp 2" export IPHONEOS_DEPLOYMENT_TARGET=8.0 export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk -L/Users/mydrive/Library/Developer/Xcode/DerivedData/myApp-eqvhrwwgwngmksguwakvgjbdeygf/Build/Products/Debug-iphoneos -L/Users/mydrive/Desktop/myApp\ 2/myApp -F/Users/mydrive/Library/Developer/Xcode/DerivedData/myApp-eqvhrwwgwngmksguwakvgjbdeygf/Build/Products/Debug-iphoneos -filelist /Users/mydrive/Library/Developer/Xcode/DerivedData/myApp-eqvhrwwgwngmksguwakvgjbdeygf/Build/Intermediates/myApp.build/Debug-iphoneos/myApp.build/Objects-normal/armv7/myApp.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -miphoneos-version-min=8.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/mydrive/Library/Developer/Xcode/DerivedData/myApp-eqvhrwwgwngmksguwakvgjbdeygf/Build/Intermediates/myApp.build/Debug-iphoneos/myApp.build/Objects-normal/armv7/myApp_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -fembed-bitcode-marker -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos -Xlinker -add_ast_path -Xlinker /Users/mydrive/Library/Developer/Xcode/DerivedData/myApp-eqvhrwwgwngmksguwakvgjbdeygf/Build/Intermediates/myApp.build/Debug-iphoneos/myApp.build/Objects-normal/armv7/myApp.swiftmodule -framework Security /Users/mydrive/Library/Developer/Xcode/DerivedData/myApp-eqvhrwwgwngmksguwakvgjbdeygf/Build/Products/Debug-iphoneos/libsqlcipher.a -lsqlite3.0 -Xlinker -dependency_info -Xlinker /Users/mydrive/Library/Developer/Xcode/DerivedData/myApp-eqvhrwwgwngmksguwakvgjbdeygf/Build/Intermediates/myApp.build/Debug-iphoneos/myApp.build/Objects-normal/armv7/myApp_dependency_info.dat -o /Users/mydrive/Library/Developer/Xcode/DerivedData/myApp-eqvhrwwgwngmksguwakvgjbdeygf/Build/Products/Debug-iphoneos/myApp.app/myApp

这个问题有不同的解决方案,其中之一是将Enable Bitcode设置为No(顺便说一下,这可能不是您的解决方案,但很有可能。试试吧)

退出 Xcode 然后启动 DO

产品 > 清理或 Shift + Command + K

然后 运行 你的项目

希望有用

因为我在申请中使用了 SqlCipher project。设置 Enable Bitcode=No。删除错误,我的应用程序在 iPhone 5 device

上成功 运行