我必须集成称为Adob eCreativeSDK的AviarySDK。我已经添加了AdobeCreativeSDKFoundation
和AdobeCreativeSDKImage
其他与之相关的框架。还要添加一些链接器标志。并参考以下链接。我正在使用XCode 6.1。.
- https://creativesdk.adobe.com/docs/ios/#/articles/imageediting/index.html
- 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。