2017-04-23 29 views
0

我正嘗試在iOS應用程序中的Creative Cloud上載文檔文件。它工作正常,但現在我得到了上傳錯誤。將文件上傳到Creative Cloud iOS時出錯

error uploading Error Domain=AdobeAssetErrorDomain Code=2 "(null)" UserInfo={AdobeNetworkResponseHeaders={ 
    connection = "keep-alive"; 
    "content-encoding" = gzip; 
    "content-length" = 90; 
    "content-type" = "application/vnd.adobe.error-response+json"; 
    date = "Sun, 23 Apr 2017 13:33:13 GMT"; 
    server = APIP; 
    vary = "Accept-Encoding"; 
    "x-request-id" = "DB0C9B95-7D84-45EA-9BFF-F04020C3796E"; 
}, AdobeNetworkRequestURLStringKey=https://cc-api-storage.adobe.io/files/?order=asc&orderby=name, AdobeNetworkResponseData={"reason":"bad_request","message":"A required parameter is missing or invalid"}, AdobeNetworkHTTPDebugIDKey=DB0C9B95-7D84-45EA-9BFF-F04020C3796E, AdobeNetworkHTTPStatus=400} 

以下是我的代碼。

if ([AdobeUXAuthManager sharedManager].isAuthenticated) 
     { 
      NSLog(@"The user has already been authenticated. User profile: %@", [AdobeUXAuthManager sharedManager].userProfile); 

      AdobeAssetFolder *root = [AdobeAssetFolder getRootOrderedByField:AdobeAssetFolderOrderByName 
                   orderDirection:AdobeAssetFolderOrderDescending]; 

      [AdobeAssetFile create:_fileName 
          inFolder:root 
         withDataPath:[NSURL fileURLWithPath:filePath] 
          withType:kAdobeMimeTypeRaw 
       withCollisionPolicy:AdobeAssetFileCollisionPolicyAppendUniqueNumber 
         onProgress:^(double fractionCompleted) { 
          NSLog(@"Percent complete %f", fractionCompleted); 
         } 
         onCompletion:^(AdobeAssetFile *file) { 

         } 
        onCancellation:NULL 
          onError:^(NSError *error) { 
           NSLog(@"error uploading %@", error); 
          }]; 
     } 

回答

0

我解決了這個問題。 「AdobeCreativeSDKAssetModel.framework」未與嵌入式二進制文件鏈接。刪除它並在嵌入式二進制文件中再次添加可以解決此問題。您還需要您的Adobe帳戶經過電子郵件驗證,否則您將上傳錯誤。