AdobeCreativeSDK:'SDK Version Mismatch',原因:'No CreativeSDKFoundation version found'

AdobeCreativeSDK : 'SDK Version Mismatch', reason: 'No CreativeSDKFoundation version found'

我必须集成 AviarySDK,即 AdobeCreativeSDK。 我添加了 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];
}

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

*** Terminating app due to uncaught exception 'SDK Version Mismatch', reason: 'No CreativeSDKFoundation version found'

请查看下方截图。

我错过了什么?我们将不胜感激。

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