IOS微信API异常:unrecognized selector sent to instance 0x17005c9b0'

开发IOS整合微信API的时候,在运行程序的过程中可能会在注册你的APPID的时候抛出此异常而导致程序崩溃。

异常描述

[7661:2826851] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSArrayM enqueue:]: unrecognized selector sent to instance 0x17005c9b0'

开发环境

IOS:10

Xcode:8

解决方案

Target->Buid Settings->Linking 下 Other Linker Flags 项添加-all_load

有关Other Linker Flags请参考:http://www.cnblogs.com/robinkey/archive/2013/05/27/3101095.html

原文地址:https://www.cnblogs.com/keitsi/p/6489906.html