簡體   English   中英

iOS 7.1中的SDWebImage崩潰

[英]SDWebImage in iOS 7.1 crashes

所以,我剛剛更新了我的xcode並開始為iOS 7.1構建我的應用程序。 但現在我發現我的SDWebImage壞了。 每當我嘗試為UIImageView設置ImageWithUrl時,我的應用程序崩潰時出現以下異常和stacktrace:

2014-03-11 12:55:36.647 Wiggle[1983:70b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIImageView setImageWithURL:placeholderImage:options:]: unrecognized selector sent to instance 0x10fa12890'


*** First throw call stack:
(
    0   CoreFoundation                      0x0000000103188795 __exceptionPreprocess + 165
    1   libobjc.A.dylib                     0x0000000102eeb991 objc_exception_throw + 43
    2   CoreFoundation                      0x0000000103219bad -[NSObject(NSObject) doesNotRecognizeSelector:] + 205
    3   CoreFoundation                      0x000000010317a09d ___forwarding___ + 973
    4   CoreFoundation                      0x0000000103179c48 _CF_forwarding_prep_0 + 120
    5   Wiggle                              0x000000010001fe94 -[MenuTableViewController tableView:viewForHeaderInSection:] + 1316
    6   UIKit                               0x000000010182cdb3 __84-[UITableView _sectionHeaderView:withFrame:forSection:floating:reuseViewIfPossible:]_block_invoke + 112
    7   UIKit                               0x00000001017b60ac +[UIView(Animation) performWithoutAnimation:] + 70
    8   UIKit                               0x000000010182ccc5 -[UITableView _sectionHeaderView:withFrame:forSection:floating:reuseViewIfPossible:] + 223
    9   UIKit                               0x00000001018149cf -[UITableView _updateVisibleHeadersAndFootersNow:] + 2596
    10  UIKit                               0x0000000101815b6f -[UITableView _updateVisibleCellsNow:] + 3122
    11  UIKit                               0x0000000101826381 -[UITableView layoutSubviews] + 207
    12  UIKit                               0x00000001017bdb27 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 354
    13  QuartzCore                          0x0000000100bb7a22 -[CALayer layoutSublayers] + 151
    14  QuartzCore                          0x0000000100bac589 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 363
    15  QuartzCore                          0x0000000100bac40a _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 24
    16  QuartzCore                          0x0000000100b21694 _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 252
    17  QuartzCore                          0x0000000100b2270c _ZN2CA11Transaction6commitEv + 394
    18  UIKit                               0x0000000101779444 _afterCACommitHandler + 128
    19  CoreFoundation                      0x0000000103153ff7 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
    20  CoreFoundation                      0x0000000103153f67 __CFRunLoopDoObservers + 391
    21  CoreFoundation                      0x00000001031336d2 __CFRunLoopRun + 946
    22  CoreFoundation                      0x0000000103132f33 CFRunLoopRunSpecific + 467
    23  GraphicsServices                    0x00000001036a53a0 GSEventRunModal + 161
    24  UIKit                               0x0000000101762043 UIApplicationMain + 1010

我不知道該怎么辦,有人可以幫忙嗎?

感謝Amar,我找到了答案。

SDWebImage與基地SDK的iOS 7.1,需要您排除arm64在

項目>構建設置>體系結構>有效的體系結構。

您可能還需要將Build Active Architectures Only設置為NO才能使其正常工作。

顯然現在有很多64位設備你不想再這樣做了,你想要下載與新架構兼容的最新SDWeb庫。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM