当我们从Xcode 9构建应用程序时,应用程序开始在设备上崩溃,应用程序在模拟器上正常工作但在设备上崩溃。以下是设备崩溃日志
Crash logs
Sep 22 18:57:33 iPhone ReportCrash(CrashReporterSupport)[324] <Notice>:
Process: Checkout [323]
Path:
/private/var/containers/Bundle/Application/13FD366C-4D41-4BC9-B958-
151CDC9E62F3/Checkout.app/Checkout
OS Version: iPhone OS 10.3.3 (14G60)
Sep 22 18:57:33 iPhone ReportCrash(CrashReporterSupport)[324] <Notice>:
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Description: DYLD, Library not loaded:
@rpath/libclang_rt.ubsan_ios_dynamic.dylib | Referenced from:
/private/var/containers/Bundle/Application/13FD366C-4D41-4BC9-B958-
151CDC9E62F3/Checkout.app/Frameworks/Valid.framework/Base | Reason:
image not found
嵌入swift库标志为true且应用程序在我们在设备上启动应用程序时在机器上成功编译崩溃。