gpt4 book ai didi

objective-c - iPhone应用程序在替换视频文件时崩溃

转载 作者:行者123 更新时间:2023-12-03 17:41:10 24 4
gpt4 key购买 nike

我只替换现有代码中的视频文件,但是如果替换所有视频文件,我的应用程序将在iPhone中崩溃。它是通用应用程序,但Ipad支持所有新视频文件,并且在iPhone上崩溃。出现以下警告:

[NSCFType setLength:]: unrecognized selector sent to instance 0x19d790 2012-02-29 15:13:49.932[584:307] * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFType setLength:]: unrecognized selector sent to instance 0x19d790' * Call stack at first throw: ( 0 CoreFoundation 0x3759dc7b __exceptionPreprocess + 114 1 libobjc.A.dylib
0x32d9bee8 objc_exception_throw + 40 2 CoreFoundation
0x3759f3e3 -[NSObject(NSObject) doesNotRecognizeSelector:] + 98 3
CoreFoundation 0x37544467 __forwarding
+ 506 4 CoreFoundation 0x37544220 _CF_forwarding_prep_0 + 48 5 Visionaries 0x00005179 -[Visionaries_ViewController connection:didReceiveResponse:] + 56 6 Foundation
0x35183cd5 -[NSURLConnection(NSURLConnectionReallyInternal) sendDidReceiveResponse:] + 92 7 Foundation
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 Visionaries
0x00002391 main + 80 23 Visionaries
0x0000233c start + 40 ) terminate called after throwing an instance of 'NSException'



有人有主意,请帮忙。

最佳答案

通过崩溃日志,我们可以看到,在[[Visionaries_ViewController connection:didReceiveResponse:]]中,您正在对没有该方法的对象调用setLength:方法。

可能是内存或逻辑问题。请提供更多信息。

关于objective-c - iPhone应用程序在替换视频文件时崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9496861/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com