在生成bundle資源包的時(shí)候我們?nèi)绻褂昧藊ib會出現(xiàn)無法加載的情況
Terminating app due to uncaught exception
'NSInternalInconsistencyException', reason:'Could not load NIB in bundle:
'NSBundle
/Documents/asset-4.bundle> (not yet loaded)' with name 'ZYBannerCell''
這時(shí)牡彻,我們的處理方法是需要把xib轉(zhuǎn)化成nib疯搅,轉(zhuǎn)化方法如下
ibtool --errors --warnings --output-format human-readable-text --compile ZYBannerCell.nib ZYBannerCell.xib