AFNetworking Xcode6上传图片崩溃或超时解决方法

来源:互联网 发布:p2p无法连入emule网络 编辑:程序博客网 时间:2024/05/07 14:29

报错原因:

 *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -streamStatus only defined for abstract class.  Define -[AFMultipartBodyStream streamStatus]!'

*** First throw call stack:

(0x2e3cbecb 0x38b66ce7 0x2e3cbe0d 0x2eda8bcb 0x2edb0e35 0xdeddb 0x2e32097b 0x2dfcf6cb 0x2e05f0c7 0x2dfb7e3d 0x2dfced3f 0x2dfce2cb 0x2dfce0a7 0x2e0140d7 0x2dfb7e3d 0x2dfcdac5 0x2e01dcf7 0x2dfcd0d9 0x2dfccf39 0x2dfcb22d 0x2dfcad51 0x2e0221cd 0x2e2ff159 0x2dfc799b 0x2dfc7859 0x2dfc76e9 0x2e396faf 0x2e396477 0x2e394c67 0x2e2ff729 0x2e2ff50b 0x2ed40241 0x2edb5a0f 0x39182959 0x391828cb 0x39180ae8)

libc++abi.dylib: terminating with uncaught exception of type NSException


解决方法:

更新到Xcode6以后AFNetworking相关的上传文件在iOS7崩溃、iOS8请求超时,去 https://github.com/AFNetworking/AFNetworking 下载个最新的替换就好了


错误信息:*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -streamStatus only defined for abstract class.  Define -[AFMultipartBodyStream streamStatus]!' 

0 0
原创粉丝点击