devedup / FlickrKit

An iOS Flickr Framework, written in Objective-C
http://www.devedup.com
219 stars 71 forks source link

Link error: duplicate symbol _OBJC_IVAR_$_AppDelegate._window #36

Closed mironal closed 8 years ago

mironal commented 8 years ago

I was install FlickrKit (v1.0.6) using cocoapods. After that, I got link error. :arrow_down:

duplicate symbol _OBJC_IVAR_$_AppDelegate._window in:
    /Users/miro/Library/Developer/Xcode/DerivedData/feather-baxuldxkouoqtreylprgzubzrwmc/Build/Intermediates/feather.build/Debug-iphonesimulator/feather.build/Objects-normal/i386/AppDelegate.o
    /Users/miro/Library/Developer/Xcode/DerivedData/feather-baxuldxkouoqtreylprgzubzrwmc/Build/Products/Debug-iphonesimulator/libFlickrKit.a(AppDelegate.o)
duplicate symbol _OBJC_CLASS_$_AppDelegate in:
    /Users/miro/Library/Developer/Xcode/DerivedData/feather-baxuldxkouoqtreylprgzubzrwmc/Build/Intermediates/feather.build/Debug-iphonesimulator/feather.build/Objects-normal/i386/AppDelegate.o
    /Users/miro/Library/Developer/Xcode/DerivedData/feather-baxuldxkouoqtreylprgzubzrwmc/Build/Products/Debug-iphonesimulator/libFlickrKit.a(AppDelegate.o)
duplicate symbol _OBJC_METACLASS_$_AppDelegate in:
    /Users/miro/Library/Developer/Xcode/DerivedData/feather-baxuldxkouoqtreylprgzubzrwmc/Build/Intermediates/feather.build/Debug-iphonesimulator/feather.build/Objects-normal/i386/AppDelegate.o
    /Users/miro/Library/Developer/Xcode/DerivedData/feather-baxuldxkouoqtreylprgzubzrwmc/Build/Products/Debug-iphonesimulator/libFlickrKit.a(AppDelegate.o)
ld: 3 duplicate symbols for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Probably.. I think because the library contains AppDelegate.h, AppDelegate.m and main.m files.

image

topa51 commented 8 years ago

I have same issue, I've changed my appDelegate class, to Prefix_Appdelegate class. This solve an issue. But AppDelegate should't be included to pods.

devedup commented 8 years ago

Sorry. I'll take a look and do another release.

devedup commented 8 years ago

Fixed and released 1.0.7. It's because I had moved the ModelGenerator classes inside the main Classes directory - they didn't need to be in there, so I'm moved them out again so that they aren't packaged with FlickrKit.

mironal commented 8 years ago

thanks!! :+1: