2014-12-19 5 views
0

Daily Notes 애플리케이션의 64 비트 아키텍처를 지원하기 위해 IOS evernote sdks Migration_from_SDK_1_x.md에서 evernote-cloud-sdk-ios로 마이그레이션했습니다.Evernote iOS Cloud SDK- EDAMResource 데이터 다운로드 중 오류가 발생했습니다.

가이드 (https://github.com/evernote/evernote-cloud-sdk-ios/blob/master/Migration_from_SDK_1_x.md)에서 언급 한 절차에 따라 마이그레이션해야합니다.

리소스 데이터 다운로드를 제외한 모든 작업이 정상적으로 작동합니다.

ENNoteStoreClient 클래스의 getResourceDataWithGuid : API를 사용하여 첨부 파일 (이미지)을 다운로드하려고 할 때마다 다음과 같은 오류가 발생합니다.

오류 도메인 = ENErrorDomain 코드 = 1 "결과를 누락 : getResourceData 실패 : 알 수없는 결과"사용자 정보 = 0x16b40490는 {NSLocalizedDescription = 누락 결과 : getResourceData 실패 : 알 수없는 결과}

을 단계

  1. 만들기를 재현하는 Evernote의 메모.
  2. 해당 메모에 이미지를 첨부하십시오.
  3. 그리고 자원을 다운로드하려고 ..

다음은 그것에서 EDAMResource을 받고 다음 EDAMNote을 얻고위한 코드입니다.

ENNoteStoreClient *noteStore=[ENSession sharedSession].primaryNoteStore; 

    EDAMSyncChunkFilter *filter=[[EDAMSyncChunkFilter alloc]init]; 
    filter.includeNotes = @YES; 
    filter.includeNoteResources = @YES; 
    filter.includeNoteAttributes = @YES; 
    filter.includeNotebooks = @YES; 
    filter.includeTags = @YES; 
    filter.includeSearches = @NO; 
    filter.includeResources = @NO; 
    filter.includeLinkedNotebooks = @NO; 
    filter.includeExpunged = [NSNumber numberWithBool:!fullSunc]; 
    filter.includeNoteApplicationDataFullMap = @YES; 
    filter.includeResourceApplicationDataFullMap = @NO; 
    filter.includeNoteResourceApplicationDataFullMap = @YES; 
    filter.requireNoteContentClass = nil; 
    [noteStore getFilteredSyncChunkAfterUSN:currentUSN 
           maxEntries:255 
            filter:filter 
            success:^(EDAMSyncChunk *syncChunk) 
    { 
     completionHandler(syncChunk,nil); 
    } 
            failure:^(NSError *error) 
    { 
     completionHandler(nil,error); 
    }]; 
} 

//I then extract the required EDAMNote from the syncChunk. 


5. if I try to download the resource associated with this EDAMNote using “getResourceDataWithGuid:” API, it always returns the error. This was working fine in earlier version. Here is the code snippet. 

EDAMResource *resource = self.evernoteResource; 
ENNoteStoreClient *noteStore = [ENSession sharedSession].primaryNoteStore; 

[noteStore getResourceDataWithGuid:resource.guid success:^(NSData *data) 
    { 


    } failure:^(NSError *error) 
    { 

    }]; 
} 

오류 도메인 = ENErrorDomain 코드 = 1 "결과를 누락 : getResourceData 실패 : 알 수없는 결과"사용자 정보 = 0x16b40490가 {NSLocalizedDescription = 누락 결과 : getResourceData 실패 : 알 수없는 결과}

은 또한 다음과 같은 로그를 관찰 이 오류가 발생하기 전에 SDK에서 콘솔을 설정하십시오. 필드 건너 뛰기 : 형식이 일치하지 않아 (수신 된 : 11)

샘플 앱에서이 절차를 시도했지만 동일한 동작을 관찰했습니다.

누구든지이 문제에 직면 했습니까?

+1

대답은 다음과 같습니다. http://stackoverflow.com/questions/25243353/unable-to-download-the-note-attachmet-using-evernote-ios-sdk/27564429#27564429 – loganathan

답변