微信分享出现问题:Terminating app due to
出现如下报错:
-[__NSArrayM enqueue:]: unrecognized selector sent to instance 0x126ea4a10
2016-11-23 10:26:40.392 [20102:5383730] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSArrayM enqueue:]: unrecognized selector sent to instance 0x126ea4a10'
*** First throw call stack:
(0x18109d900 0x18070bf80 0x1810a461c 0x1810a15b8 0x180fa568c 0x10018a0bc 0x10018a2ac 0x10016b93c 0x10016b5ec 0x10037dbf0 0x10037dbb0 0x10038a6c8 0x1003818a0 0x10037dbb0 0x10038ce10 0x10038c4d8 0x180d05470 0x180d05020
libc++abi.dylib: terminating with uncaught exception of type NSException
解决方案:
如果是这种情况的话,你可以尝试下面的解决方法:
在项目的“build settings” 中找到other linker flags 添加值 -Objc
如果以上方法不行,换下边的:
在项目的“build settings” 中找到other linker flags 添加值 -Objc,运行还是报 这个错误,改为添加值-all_load,再次运行,问题才解决了。