Crash IOS static library

Ask the master IOS crash static library, I in the online method to create a static library, but using bundle when a problem,

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/> (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/> (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/> (loaded)",
"NSBundle </Users/liuyun/Library/Application Support/iPhone Simulator/6.0/Applications/D429A3A3-0C0B-4C95-99A4-5708F8DE2A7A/> (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/> (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

Is not available load bundle to the specified app.

Started by Louisa at November 27, 2016 - 8:48 PM

Praise ~~!

Posted by Cassandra at December 06, 2016 - 9:09 PM

Check the spelling.

Posted by Manda at December 09, 2016 - 9:12 PM

The base compiler when the address is incomplete?

Posted by Wendy at December 13, 2016 - 9:35 PM

You this is a static library compiled what use?

Posted by Wendy at December 23, 2016 - 10:28 PM

Static library custom, I have been using framework.

Posted by Louisa at December 29, 2016 - 10:48 PM

Since there is no load, the few code check load bundle, there are many cases.
You may use [NSBundle mainBundle] in a static library, certainly not loaded, because the static library where the bundle is not mainBundle; if bundle is not read the wrong, but was not loaded, then use similar to obtain whether load success in - loadAndReturnError: and - isLoaded this way, if not successful, error print parameters in loadAndReturnError see reason.

Posted by Burnell at January 06, 2017 - 11:32 PM