我只替换现有代码中的视频文件,但如果我替换所有视频文件,我的应用程序将在iphone中崩溃。它是一个通用的应用程序,但Ipad支持所有新的视频文件和崩溃的iPhone。发生以下警告:
[ NSCFType setLength:]:发送到实例的无法识别的选择器 0x19d790 2012-02-29 15:13:49.932 [584:307] * 终止应用程序 未捕获的异常'NSInvalidArgumentException',原因:' - [__ NSCFType setLength:]:无法识别的选择器发送到实例0x19d790' * 第一次调用时调用堆栈:(0 CoreFoundation 0x3759dc7b __exceptionPreprocess + 114 1 libobjc.A.dylib
0x32d9bee8 objc_exception_throw + 40 2 CoreFoundation
0x3759f3e3 - [NSObject(NSObject)doesNotRecognizeSelector:] + 98 3
CoreFoundation 0x37544467 __ 转发 + 506 4 CoreFoundation 0x37544220 _CF_forwarding_prep_0 + 48 5 Visionaries 0x00005179 - [Visionaries_ViewController connection:didReceiveResponse:] + 56 6基金会 0x35183cd5 - [NSURLConnection(NSURLConnectionReallyInternal) sendDidReceiveResponse:] + 92 7基金会 0x35183c3b _NSURLConnectionDidReceiveResponse + 86 8 CFNetwork
0x302941b4 _ZN19URLConnectionClient29_clientSendDidReceiveResponseEP14_CFURLResponsePNS_26ClientConnectionEventQueueE + 64 9 CFNetwork 0x30284bc8 _ZN19URLConnectionClient26ClientConnectionEventQueue33processAllEventsAndConsumePayloadEP20XConnectionEventInfoI12XClientEvent18XClientEventParamsEl + 332 10 CFNetwork 0x30284d84 _ZN19URLConnectionClient26ClientConnectionEventQueue33processAllEventsAndConsumePayloadEP20XConnectionEventInfoI12XClientEvent18XClientEventParamsEl + 776 11 CFNetwork 0x30284984 _ZN19URLConnectionClient13processEventsEv + 100 12 CFNetwork 0x3028484c _ZN17MultiplexerSource7performEv + 192 13 CFNetwork
0x30284788 _ZN17MultiplexerSource8_performEPv + 12 14 CoreFoundation 0x375518d1 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 14 15 CoreFoundation 0x37521ecd __CFRunLoopDoSources0 + 384 16 CoreFoundation 0x375216f9 __CFRunLoopRun + 264 17 CoreFoundation
0x3752150b CFRunLoopRunSpecific + 226 18 CoreFoundation
0x37521419 CFRunLoopRunInMode + 60 19 GraphicsServices
0x33e76d24 GSEventRunModal + 196 20 UIKit
0x3591d57c - [UIApplication _run] + 588 21 UIKit
0x3591a558 UIApplicationMain + 972 22有远见者 0x00002391 main + 80 23有远见者
0x0000233c start + 40)在抛出一个实例后终止调用 'NSException'
有人有个主意,请帮忙。
答案 0 :(得分:0)
通过崩溃日志,我们看到,在[Visionaries_ViewController connection:didReceiveResponse:]中,你正在调用方法setLength:on一个没有该方法的对象。
可能是内存或逻辑问题。请提供更多信息。