开发者社区> 问答> 正文

IOS 短视频OSS上传文件 AVURLAsset avcNaturalSize]: unrecognized selector sent to instance 0x600000424ae0

018-03-18 13:13:55.664535+0800 osstest[69251:7873380] -[AVURLAsset avcNaturalSize]: unrecognized selector sent to instance 0x600000424ae0
2018-03-18 13:13:55.964985+0800 osstest[69251:7873380] * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[AVURLAsset avcNaturalSize]: unrecognized selector sent to instance 0x600000424ae0'
* First throw call stack:
(

0   CoreFoundation                      0x000000010b14512b __exceptionPreprocess + 171
1   libobjc.A.dylib                     0x0000000109c4af41 objc_exception_throw + 48
2   CoreFoundation                      0x000000010b1c6024 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
3   CoreFoundation                      0x000000010b0c7f78 ___forwarding___ + 1432
4   CoreFoundation                      0x000000010b0c7958 _CF_forwarding_prep_0 + 120
5   osstest                             0x0000000108f76089 -[VODUploadClient sendStartEvent] + 420
6   osstest                             0x0000000108f71291 -[VODUploadClient initMultiUpload] + 379
7   osstest                             0x0000000108f70f5f -[VODUploadClient next] + 1057
8   osstest                             0x0000000108f7000f -[VODUploadClient start] + 229
9   osstest                             0x0000000108f6ad4e -[VODUploadDemo start] + 46
10  osstest                             0x0000000108f627cc -[ViewController test] + 76
11  UIKit                               0x000000010bf9c972 -[UIApplication sendAction:to:from:forEvent:] + 83
12  UIKit                               0x000000010c11bc3c -[UIControl sendAction:to:forEvent:] + 67
13  UIKit                               0x000000010c11bf59 -[UIControl _sendActionsForEvents:withEvent:] + 450
14  UIKit                               0x000000010c11ae86 -[UIControl touchesEnded:withEvent:] + 618
15  UIKit                               0x000000010c012807 -[UIWindow _sendTouchesForEvent:] + 2807
16  UIKit                               0x000000010c013f2a -[UIWindow sendEvent:] + 4124
17  UIKit                               0x000000010bfb7365 -[UIApplication sendEvent:] + 352
18  UIKit                               0x000000010c903a1d __dispatchPreprocessedEventFromEventQueue + 2809
19  UIKit                               0x000000010c906672 __handleEventQueueInternal + 5957
20  CoreFoundation                      0x000000010b0e8101 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
21  CoreFoundation                      0x000000010b187f71 __CFRunLoopDoSource0 + 81
22  CoreFoundation                      0x000000010b0cca19 __CFRunLoopDoSources0 + 185
23  CoreFoundation                      0x000000010b0cbfff __CFRunLoopRun + 1279
24  CoreFoundation                      0x000000010b0cb889 CFRunLoopRunSpecific + 409
25  GraphicsServices                    0x00000001113079c6 GSEventRunModal + 62
26  UIKit                               0x000000010bf9b5d6 UIApplicationMain + 159
27  osstest                             0x0000000108f6389f main + 111
28  libdyld.dylib                       0x000000010e69ad81 start + 1
29  ???                                 0x0000000000000001 0x0 + 1

)

展开
收起
kaizi 2018-03-18 14:00:09 2531 0
2 条回答
写回答
取消 提交回答
  • -avcNaturalSize不属于系统AVURLAsset的实现,按崩溃记录,你并没有正确链接category实现所在的库,检查链接设置。

    2019-07-17 22:02:10
    赞同 展开评论 打赏
  • 同问

    2019-07-17 22:02:10
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
手淘iOS性能优化探索 立即下载
From Java/Android to Swift iOS 立即下载
深入剖析iOS性能优化 立即下载