我的工作区中有两个目标:iOS应用(捆绑ID:com.gotit.iphone.gotit
,应用组:group.com.gotit.iphone.gotit
)和共享扩展(捆绑ID:group.com.gotit.iphone.gotit.Got-it
,应用组:{ {1}})。
我可以毫无问题地使用我的共享扩展程序,但有时(并非所有时间)我直接回到我的iOS应用程序时出现此错误并且我的应用程序崩溃:
group.com.gotit.iphone.gotit
我使用AFNetworking(使用BDBOAuth1SessionManager),这就是我创建networkManager的方式:
Attempted to create a task in a session that has been invalidated
2015-07-22 16:31:21.999 iphone[6095:717111] *** Assertion failure in -[BDBOAuth1SessionManager setDelegate:forTask:], /Users/gautier/Documents/Dev/gotit/iOS/iPhone/trunk/iphone/Pods/AFNetworking/AFNetworking/AFURLSessionManager.m:449
2015-07-22 16:31:22.001 iphone[6095:717111] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: task'
*** First throw call stack:
(0x1865a02d8 0x1982140e4 0x1865a0198 0x187454ed4 0x100547340 0x1005476d8 0x100549190 0x100522084 0x100520a38 0x1000c94a8 0x1000d9f9c 0x1000d9d8c 0x18b02ff08 0x18b1bb2bc 0x18b0cde84 0x18b0cdc50 0x18b0cdbd0 0x18b0156f4 0x18a951db8 0x18a94c820 0x18a94c6c4 0x18a94be58 0x18a94bbd8 0x18a945300 0x1865582a4 0x186555230 0x186555610 0x1864812d4 0x18fedf6fc 0x18b07ef40 0x1000d6fac 0x1988bea08)
libc++abi.dylib: terminating with uncaught exception of type NSException
告诉我你是否需要更多代码