最近在做项目时,遇到了一个奇葩的问题,图片加进工程后,报以下错误:
运行报错
invalid mode 'kCFRunLoopCommonModes' provided to CFRunLoopRunSpecific - break on _CFRunLoopError_RunCalledWithInvalidMode to debug. This message will only appear once per execution.
libc++abi.dylib: terminate_handler unexpectedly threw an exception
然后打印了下图片,根本就读不到
图片为nil
然后就去Build Phases下的Copy Bundle Resources中,发现找不到用到的图片资源,如下图
Copy Bundle Resources位置