gpt4 book ai didi

ios - box-ios-sdk认证错误

转载 作者:行者123 更新时间:2023-11-28 19:47:00 28 4
gpt4 key购买 nike

我按照说明设置和集成我的项目 thou pod,一切顺利。

直到我使用下面的代码,它应该显示登录屏幕。

BOXContentClient *contentClient = [BOXContentClient defaultClient];
[contentClient authenticateWithCompletionBlock:^(BOXUser *user, NSError *error) {
if (error) {
if ([error.domain isEqualToString:BOXContentSDKErrorDomain] && error.code == BOXContentSDKAPIUserCancelledError) {
BOXLog(@"Authentication was cancelled, please try again.");
} else {
UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:nil
message:@"Login failed, please try again"
delegate:nil
cancelButtonTitle:nil
otherButtonTitles:@"OK", nil];
[alertView show];
}
} else {
BOXContentClient *tmpClient = [BOXContentClient clientForUser:user];
}
}];

但是我收到以下错误

2015-07-21 17:06:27.290 Sendr[83352:747338] -[BOXContentClient authenticateWithCompletionBlock:]: unrecognized selector sent to instance 0x7be773e0

2015-07-21 17:06:27.295 Sendr[83352:747338] *** 由于未捕获的异常“NSInvalidArgumentException”而终止应用程序,原因:“-[BOXContentClient authenticateWithCompletionBlock:]:无法识别的选择器发送到实例 0x7be773e0”

*** 首先抛出调用栈:( 0 CoreFoundation 0x0064e746 __exceptionPreprocess + 182

1   libobjc.A.dylib                     0x03030a97 objc_exception_throw + 44

2 CoreFoundation 0x00656705 -[NSObject(NSObject) doesNotRecognizeSelector:] + 277

3 CoreFoundation 0x0059d287 ___forwarding___ + 1047

4 CoreFoundation 0x0059ce4e _CF_forwarding_prep_0 + 14

5 Sendr 0x0002a1bc -[SendrAppDelegate application:didFinishLaunchingWithOptions:] + 156

6 UIKit 0x0141df87 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 287

7 UIKit 0x0141ed71 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 2938

8 UIKit 0x014223d2 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1639

9 UIKit 0x0143b8ee __84-[UIApplication _handleApplicationActivationWithScene:transitionContext:completion:]_block_invoke + 59

10 UIKit 0x01420ffa -[UIApplication workspaceDidEndTransaction:] + 155

11 FrontBoardServices 0x08358c9e __37-[FBSWorkspace clientEndTransaction:]_block_invoke_2 + 71

12 FrontBoardServices 0x0835872f __40-[FBSWorkspace _performDelegateCallOut:]_block_invoke + 54

13 FrontBoardServices 0x0836ad7c __31-[FBSSerialQueue performAsync:]_block_invoke_2 + 30

14 CoreFoundation 0x00570050 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 16

15 CoreFoundation 0x00565963 __CFRunLoopDoBlocks + 195

16 CoreFoundation 0x005657bb __CFRunLoopRun + 2715

17 CoreFoundation 0x00564a5b CFRunLoopRunSpecific + 443

18 CoreFoundation 0x0056488b CFRunLoopRunInMode + 123
19 UIKit 0x014209b2 -[UIApplication _run] + 571

20 UIKit 0x014240b6 UIApplicationMain + 1526

21 Sendr 0x0002a0f9 main + 121
22 libdyld.dylib 0x03450ac9 start + 1
23 ??? 0x00000001 0x0 + 1)libc++abi.dylib: terminating with uncaught exception of type NSException

我觉得这或多或少是一个设置问题,但我找不到更多文档。 (在 SDKSample 上一切正常)...请帮忙!

最佳答案

问题已解决!所以最后,这个问题是由 cocoapods 的安装问题引起的。

一旦在其他链接器标志下的build设置中添加了 $(inherited)。问题消失了。

关于ios - box-ios-sdk认证错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31549822/

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