ios 静态库crash问题
请教高手ios静态库crash问题,我按照网上的方法创建静态库,但是使用bundle的时候出了问题,
2013-05-18 15:31:08.085 testResLib[2721:11303] test link nib
2013-05-18 15:31:08.117 testResLib[2721:11303] initWithNibName bundle = NSBundle </Users/liuyun/Library/Application Support/iPhone Simulator/6.0/Applications/D429A3A3-0C0B-4C95-99A4-5708F8DE2A7A/testResLib.app/TestResource.bundle> (not yet loaded)
2013-05-18 15:31:08.118 testResLib[2721:11303] initWithNibName [NSBundle mainBundle] = NSBundle </Users/liuyun/Library/Application Support/iPhone Simulator/6.0/Applications/D429A3A3-0C0B-4C95-99A4-5708F8DE2A7A/testResLib.app> (loaded)
2013-05-18 15:31:08.119 testResLib[2721:11303] [NSBundle allBundles] = (
"NSBundle </Users/liuyun/Library/Application Support/iPhone Simulator/6.0/Applications/D429A3A3-0C0B-4C95-99A4-5708F8DE2A7A/testResLib.app> (loaded)",
"NSBundle </Users/liuyun/Library/Application Support/iPhone Simulator/6.0/Applications/D429A3A3-0C0B-4C95-99A4-5708F8DE2A7A/testResLib.app/TestResource.bundle> (not yet loaded)"
)
2013-05-18 15:31:08.120 testResLib[2721:11303] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </Users/liuyun/Library/Application Support/iPhone Simulator/6.0/Applications/D429A3A3-0C0B-4C95-99A4-5708F8DE2A7A/testResLib.app/TestResource.bundle> (not yet loaded)' with name 'LYTestViewController''
*** First throw call stack:
(0x1c8f012 0x10cce7e 0x1c8edeb 0x22ffac 0xf4e37 0xf5418 0xf5648 0xf5882 0xf5b2a 0x10cef5 0x10cfdb 0x10d286 0x10d381 0x10deab 0x10e4a3 0x10e098 0x2fc0 0x10e0705 0x17920 0x178b8 0xd8671 0xd8bcf 0xd7d38 0x4733f 0x47552 0x253aa 0x16cf8 0x1beadf9 0x1beaad0 0x1c04bf5 0x1c04962 0x1c35bb6 0x1c34f44 0x1c34e1b 0x1be97e3 0x1be9668 0x1465c 0x26bd 0x25e5)
libc++abi.dylib: terminate called throwing an exception
主要是没有load可用bundle到指定的app中。
2013-05-18 15:31:08.085 testResLib[2721:11303] test link nib
2013-05-18 15:31:08.117 testResLib[2721:11303] initWithNibName bundle = NSBundle </Users/liuyun/Library/Application Support/iPhone Simulator/6.0/Applications/D429A3A3-0C0B-4C95-99A4-5708F8DE2A7A/testResLib.app/TestResource.bundle> (not yet loaded)
2013-05-18 15:31:08.118 testResLib[2721:11303] initWithNibName [NSBundle mainBundle] = NSBundle </Users/liuyun/Library/Application Support/iPhone Simulator/6.0/Applications/D429A3A3-0C0B-4C95-99A4-5708F8DE2A7A/testResLib.app> (loaded)
2013-05-18 15:31:08.119 testResLib[2721:11303] [NSBundle allBundles] = (
"NSBundle </Users/liuyun/Library/Application Support/iPhone Simulator/6.0/Applications/D429A3A3-0C0B-4C95-99A4-5708F8DE2A7A/testResLib.app> (loaded)",
"NSBundle </Users/liuyun/Library/Application Support/iPhone Simulator/6.0/Applications/D429A3A3-0C0B-4C95-99A4-5708F8DE2A7A/testResLib.app/TestResource.bundle> (not yet loaded)"
)
2013-05-18 15:31:08.120 testResLib[2721:11303] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </Users/liuyun/Library/Application Support/iPhone Simulator/6.0/Applications/D429A3A3-0C0B-4C95-99A4-5708F8DE2A7A/testResLib.app/TestResource.bundle> (not yet loaded)' with name 'LYTestViewController''
*** First throw call stack:
(0x1c8f012 0x10cce7e 0x1c8edeb 0x22ffac 0xf4e37 0xf5418 0xf5648 0xf5882 0xf5b2a 0x10cef5 0x10cfdb 0x10d286 0x10d381 0x10deab 0x10e4a3 0x10e098 0x2fc0 0x10e0705 0x17920 0x178b8 0xd8671 0xd8bcf 0xd7d38 0x4733f 0x47552 0x253aa 0x16cf8 0x1beadf9 0x1beaad0 0x1c04bf5 0x1c04962 0x1c35bb6 0x1c34f44 0x1c34e1b 0x1be97e3 0x1be9668 0x1465c 0x26bd 0x25e5)
libc++abi.dylib: terminate called throwing an exception
主要是没有load可用bundle到指定的app中。
...全文
相关推荐
iOS开发笔记之键盘、静态库、动画和Crash定位
在项目中引入静态库是为了封装特定的功能,使其能够独立于主项目进行更新和维护。然而,当静态库引发Crash时,问题定位变得困难,因为Crash日志通常不会提供具体的代码行信息。
iOS Crash文件分析方法汇总
"iOS Crash文件分析方法汇总"在iOS应用开发中,Crash文件是开发者用于诊断和修复应用程序中出现的问题的重要工具。Crash文件通常包含了应用程序崩溃时的堆栈信息,但这些信息通常是十六
libevent-2.0.22-stable for iOS 包含静态库
总之,libevent-2.0.22-stable for iOS的静态库版本为iOS开发者提供了一种强大的工具,用于构建高性能、低延迟的网络应用程序。
iOS 视频播放(mp4,avi,rmvb,3gp,mov,flv,m3u8,rm)
)均已预置,支持Bitcode编译与ARM64架构真机部署,符号表完整保留便于Crash分析,单元测试覆盖率超82%,CI流程集成Fastlane自动化打包与TestFlight分发。
《模式识别与数据挖掘》配套PPT课件
《模式识别与数据挖掘》配套PPT课件


