IOS 使用AFNETworking出现错误
姚小白 2015-12-09 01:35:36 *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSDictionaryI dataUsingEncoding:]: unrecognized selector sent to instance 0x156e3dfc0'
之前没有错误,在真机上测试出现这个之后,再回到模拟器上就发生了这个错误,单步执行发现是 Afnetworking 在post的时候崩溃。
*** First throw call stack:
(0x184da8f48 0x19995bf80 0x184dafc5c 0x184dacc00 0x184cb0cac 0x10011d4cc 0x10011b55c 0x1001057b8 0x1001062ec 0x10009c4d8 0x18a373cfc 0x18a373c78 0x18a35b930 0x18a37c3cc 0x18a373014 0x18a36bcdc 0x18a33c4a4 0x18a33a76c 0x184d60544 0x184d5ffd8 0x184d5dcd8 0x184c8cca0 0x18fec8088 0x18a3a4ffc 0x1000ccd50 0x19a1aa8b8)
libc++abi.dylib: terminating with uncaught exception of type NSException