4

我必须集成称为Adob ​​eCreativeSDK的AviarySDK。我已经添加了AdobeCreativeSDKFoundationAdobeCreativeSDKImage其他与之相关的框架。还要添加一些链接器标志。并参考以下链接。我正在使用XCode 6.1。.

  1. https://creativesdk.adobe.com/docs/ios/#/articles/imageediting/index.html
  2. https://creativesdk.zendesk.com/hc/en-us/articles/202903359-Migrating-from-the-Aviary-SDK-to-the-Adobe-Creative-SDK-Beta

这是我的代码。

#import <AdobeCreativeSDKFoundation/AdobeCreativeSDKFoundation.h>
#import <AdobeCreativeSDKImage/AdobeCreativeSDKImage.h>

添加AdobeUXImageEditorViewControllerDelegate

[[AdobeUXAuthManager sharedManager]setAuthenticationParametersWithClientID:@"MyKey" withClientSecret:@"MySecret"];
AVYPhotoEditorController *editorController = [[AVYPhotoEditorController alloc] initWithImage:imageToEdit];
    [editorController setDelegate:self];
[self presentViewController:editorController animated:YES completion:nil];

#pragma mark - AdobeCreativeSDK Delegates
- (void)photoEditor:(AdobeUXImageEditorViewController *)editor finishedWithImage:(UIImage *)image
{
    //Got Image.
    [self dismissViewControllerAnimated:YES completion:nil];
}
- (void)photoEditorCanceled:(AdobeUXImageEditorViewController *)editor
{
    [self dismissViewControllerAnimated:YES completion:nil];
}

但是我得到了一些未知的错误,如下所示。

*** 由于未捕获的异常“SDK 版本不匹配”而终止应用程序,原因:“未找到 CreativeSDKFoundation 版本”

请检查下面的屏幕截图。

在此处输入图像描述

我错过了什么?帮助将被appriciated。

4

1 回答 1

8

我发现了这个问题。您必须在Build Phases 下为每个框架添加捆绑资源 ▸ 复制捆绑资源 ,您必须手动添加。Bundle Resource 存在于Adob​​eCreativeSDKImage.framework ▸ Versions ▸ A ▸ Resources下。对您添加到项目中的所有框架执行相同的步骤。

于 2015-03-31T04:38:56.123 回答