Box iOS SDK - Receiver 'BoxSearchRequestBuilder' for class message is a forward declaration

Guven

I am trying to use the BoxSearchRequestBuilder class to be able to perform a search in Box via the iOS SDK (v2). When I try to instantiate a BoxSearchRequestBuilder instance with its initializer, I get a compiler error.

What I am trying to do:

BoxSearchRequestBuilder* builder = [[BoxSearchRequestBuilder alloc] initWithSearch:@"123" queryStringParameters:@{@"content_types" : @"tags"}];

The error:

receiver 'BoxSearchRequestBuilder' for class message is a forward declaration or receiver type 'BoxSearchRequestBuilder' for instance message is a forward declaration.

Basically the BoxSearchRequestBuilder class is declared via a forward declaration (@BoxSearchRequestBuilder), so I cannot directly access its properties/initializers.

I can fix the error by going to the iOS SDK class BoxSearchResourceManager and changing the forward declaration to an import statement:

#import "BoxSearchRequestBuilder.h"
//@class BoxSearchRequestBuilder;

However, I don't think I should be doing this. Are there any other alternatives? The rest of the API works fine.

Boris Suvorov

Thanks for flagging this. It has been fixed thanks to your feedback in this change: https://github.com/box/box-ios-sdk-v2/commit/67064ea1f0c1aff040fba1e249b9f550281c01e2

feel free to file issues on SDK github page.

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

Forward Declaration Stalls 앱

분류에서Dev

Scoped forward declaration

분류에서Dev

내 iOS 프로젝트에 Box IOS SDK 통합

분류에서Dev

Receiver not picking up message with Mass Transit - Subscription

분류에서Dev

Custom Error Message for Event Receiver in SharePoint 2010

분류에서Dev

Is class member declaration not a statement?

분류에서Dev

Message box in CATScript

분류에서Dev

Swift Message Box

분류에서Dev

BOX SDK iOS에서 파일 다운로드

분류에서Dev

How use Forward declaration in clojure and unbound variables across namespace

분류에서Dev

"syntax error, unfinished class declaration"

분류에서Dev

How to create a message containing xml prolog declaration

분류에서Dev

Message box closing form erradically

분류에서Dev

Message box show output of command

분류에서Dev

Citrix Receiver가 포함 된 Citrix Simulation API SDK

분류에서Dev

BOX SDK iOS를 사용하여 파일 다운로드 링크 받기

분류에서Dev

Thermodo iOS SDK

분류에서Dev

IOS Swift and Facebook SDK

분류에서Dev

Issue with declaration of Map<String,Class<? extends Serializable>>

분류에서Dev

Where is declaration of invoke method in Delegate class?

분류에서Dev

Confirm message box return error value

분류에서Dev

Change color of text in pop up message box

분류에서Dev

V2 Box iOS SDK에서 파일 확장자 및 경로를 얻는 방법은 무엇입니까?

분류에서Dev

C ++ make failing on forward declaration-도커에서 실행

분류에서Dev

Can JMS guarantee that a message in the queue can received by only one instance of receiver at a time?

분류에서Dev

IOS CSRF 토큰 Drupal IOS SDK

분류에서Dev

Corona SDK Director class error

분류에서Dev

IOS Potential Leak an Object Message

분류에서Dev

What is the difference between private and private[Class] declaration in scala?

Related 관련 기사

뜨겁다태그

보관