I've to Integrate AviarySDK which is known as AdobeCreativeSDK.
I've added AdobeCreativeSDKFoundation
and AdobeCreativeSDKImage
and other frameworks related to it. Also add some linker flags. and refer Following links.
I'm working with XCode 6.1..
And here is my code.
#import <AdobeCreativeSDKFoundation/AdobeCreativeSDKFoundation.h>
#import <AdobeCreativeSDKImage/AdobeCreativeSDKImage.h>
added 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];
}
But I got some unknown Error as below.
*** Terminating app due to uncaught exception 'SDK Version Mismatch', reason: 'No CreativeSDKFoundation version found'
Please check below Screenshot.
I'm missing something? Help would be appriciated.
I've found the issue. You have to add bundle resource for your each Framework under Build Phases ▸ Copy Bundle Resource you have to add manually. Bundle Resource is exist under AdobeCreativeSDKImage.framework ▸ Versions ▸ A ▸ Resources . Follow same steps for all framework you've added to your project.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With