3

I can't run my app only on the iOS Simulator since I updated to Aviary SDK 4.4. I can run the app on my iPhone and iPad.

clang: error: linker command failed with exit code 1 (use -v to see invocation)
ld: 30 duplicate symbols for architecture x86_64

The framework and the bundle are visible in "Link binaries with Libraries" and "Bundle ressources".

The Framework search path is OK in build settings.

It looks like the Aviary framework was managed twice ?

I leave/restart Xcode, clean the app in iOS simulator, clean target and destroy DerivedData without success.

Very strange I have no problems in the real devices.

7
  • Aviary has been bought by Adobe and moved into Adobe's SDK. Having said that, I have not been able to install and compile the Adobe SDK equivalent of Aviary successfully by following their instructions.
    – reallyseth
    Dec 16, 2014 at 20:08
  • OK. This morning I received the email update from Aviary. That's why I installed the last version from Aviary website, not from Creative SDK website. I will test too.
    – alex.bour
    Dec 16, 2014 at 20:26
  • Just got an email back from Adobe Support, they said they just fixed an issue with the SDK, and asked me to redownload. Wanted to let you know in case you downloaded it yesterday, give it a redownload today.
    – reallyseth
    Dec 17, 2014 at 21:47
  • I am also having an issue in moving our app using the AviarySDK to the Adobe Creative SDK. It seems that it is trying to find the AviarySDKResource.
    – SleepNot
    Dec 18, 2014 at 10:30
  • It is still broken for me today. Did you get this working with a new version? Do you have a direct link? Dec 22, 2014 at 5:11

1 Answer 1

7

I got this problem resolved. Here is how:

Solution

Do not use #import <AviarySDK/AviarySDK.h>, instead of that, import the classes that you're using directly. Like: #import <AviarySDK/AVYPhotoEditorController.h> etc.

Reason

The reason I believe lies in the newly introduced AVYPhotoEditorCompatibility.h, which is by default included in <AviarySDK/AviarySDK.h>.

I think here is the problematic code that is using typedef with const

typedef AVYPhotoEditorPremiumAddOn AFPhotoEditorPremiumAddOn AVY_PREMIUM_ADDON_NAMESPACE_DEPRECATED_ATTRIBUTE;
AVY_PREMIUM_ADDON_NAMESPACE_DEPRECATED_ATTRIBUTE AFPhotoEditorPremiumAddOn const AFPhotoEditorPremiumAddOnNone = AVYPhotoEditorPremiumAddOnNone;
AVY_PREMIUM_ADDON_NAMESPACE_DEPRECATED_ATTRIBUTE AFPhotoEditorPremiumAddOn const AFPhotoEditorPremiumAddOnHiRes = AVYPhotoEditorPremiumAddOnHiRes;
AVY_PREMIUM_ADDON_NAMESPACE_DEPRECATED_ATTRIBUTE AFPhotoEditorPremiumAddOn const AFPhotoEditorPremiumAddOnWhiteLabel = AVYPhotoEditorPremiumAddOnWhiteLabel;
2
  • Thanks! This fix worked well for me. Also worth noting the Cocoapod for Aviary 4.4.0 has been updated. Jan 4, 2015 at 19:26
  • I have almost 10 emails in a conversation with Adobe support and they couldn't figure this one out. Thanks Tonny! Feb 2, 2015 at 23:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.