新しいBoxサポートサイトへようこそ。 変更点の詳細はこちらをご確認ください .

BOXFilePreviewController of Box iOS preview sdk can't preview mov, pdf and ppt files

新規投稿

コメント

4件のコメント

  • Box Product Support

    previewerror.png

    Add the screenshot of the error.

     

    0
    コメントアクション Permalink
  • RicoY

    Hi Bingshan,

     

    Could you please check which version of the Box iOS Preview SDK you are using? The latest version is 1.0.2. If you're bringing it in through Cocoa Pods, you can look at your Podfile.lock to check.

     

    The reason I ask is that there was a bug in versions prior to 1.0.2 which would result in the screenshot you posted. 

    0
    コメントアクション Permalink
  • Box Product Support

    Hi Rico,

     

    I am using version 1.0.1. When I change to use 1.0.2, there is always an exception when doing preview as below. Seems to me there is some change on user authentication between 1.0.1 and 1.0.2?

     

    [BOXAppUserSession authorizeURL]: unrecognized selector sent to instance 0x600000476c00
    20**removed**:17:56.475 boxplatform-photo-tagger[removed for privacy75] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[BOXAppUserSession authorizeURL]: unrecognized selector sent to instance 0x600000476c00'
    *** First throw call stack:
    (
        0   CoreFoundation                      0x00000001147e734b __exceptionPreprocess + 171
        1   libobjc.A.dylib                     0x000000011424821e objc_exception_throw + 48
        2   CoreFoundation                      0x0000000114856f34 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
        3   CoreFoundation                      0x000000011476cc15 ___forwarding___ + 1013
        4   CoreFoundation                      0x000000011476c798 _CF_forwarding_prep_0 + 120
        5   boxplatform-photo-tagger            0x000000010d70c4aa -[BOXAuthorizationViewController authorizeURL] + 122
        6   boxplatform-photo-tagger            0x000000010d70c937 -[BOXAuthorizationViewController loadAuthorizationURL] + 455
        7   boxplatform-photo-tagger            0x000000010d70c349 -[BOXAuthorizationViewController viewDidLoad] + 73
        8   UIKit                               0x0000000112b9c06d -[UIViewController loadViewIfRequired] + 1258
        9   UIKit                               0x0000000112b9c4a0 -[UIViewController view] + 27
        10  UIKit                               0x00000001134608d0 -[_UIFullscreenPresentationController _setPresentedViewController:] + 87
        11  UIKit                               0x0000000112b76d26 -[UIPresentationController initWithPresentedViewController:presentingViewController:] + 141
        12  UIKit                               0x0000000112baf30b -[UIViewController _presentViewController:withAnimationController:completion:] + 3956
        13  UIKit                               0x000000011354496d -[_UIViewControllerTransitionCoordinator _applyBlocks:releaseBlocks:] + 311
        14  UIKit                               0x0000000113540725 -[_UIViewControllerTransitionContext _runAlongsideCompletions] + 151
        15  UIKit                               0x0000000113540401 -[_UIViewControllerTransitionContext completeTransition:] + 118
        16  UIKit                               0x00000001129e28a7 __53-[_UINavigationParallaxTransition animateTransition:]_block_invoke.97 + 871
        17  UIKit                               0x0000000112ab4a9e -[UIViewAnimationBlockDelegate _didEndBlockAnimation:finished:context:] + 528
        18  UIKit                               0x0000000112a87869 -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 222
        19  UIKit                               0x0000000112a87dbe -[UIViewAnimationState animationDidStop:finished:] + 136
        20  QuartzCore                          0x00000001125d09a8 _ZN2CA5Layer23run_animation_callbacksEPv + 316
        21  libdispatch.dylib                   0x0000000114d230cd _dispatch_client_callout + 8
        22  libdispatch.dylib                   0x0000000114d038d6 _dispatch_main_queue_callback_4CF + 406
        23  CoreFoundation                      0x00000001147ab4f9 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
        24  CoreFoundation                      0x0000000114770f8d __CFRunLoopRun + 2205
        25  CoreFoundation                      0x0000000114770494 CFRunLoopRunSpecific + 420
        26  GraphicsServices                    0x0000000115e45a6f GSEventRunModal + 161
        27  UIKit                               0x00000001129faf34 UIApplicationMain + 159
        28  boxplatform-photo-tagger            0x000000010d6aef0f main + 111
        29  libdyld.dylib                       0x0000000114d6f68d start + 1
        30  ???                                 0x00000000000000**removed**x0 + 1
    )
    libc++abi.dylib: terminating with uncaught exception of type NSException

     

     

    Thanks,

    Bingshan

    0
    コメントアクション Permalink
  • RicoY

    Hi Bingshan,

     

    I think we've discovered the issue you're running into. The problem is likely in the base Box iOS SDK (repo: box-ios-sdk), which the Box Preview SDK brings in as a dependency. We've got a fix proposed, and once we get it tested we'll push a new version, likely today.

     

    https://github.com/box/box-ios-sdk/pull/267

     

    After we push this change, update your pods and pull in the newest version of 'box-ios-sdk'. It should fix the issue you're running into. You are of course also welcome to pull this change in manually to test immediately.

     

    Rico

    0
    コメントアクション Permalink

サインインしてコメントを残してください。