crino / instagram-ios-sdk

Instagram SDK for iOS
http://www.followgram.me
228 stars 63 forks source link

Cannot compile it #20

Open cristibaluta opened 11 years ago

cristibaluta commented 11 years ago

Hi, I'm using xcode 4.6.2 and have 2 problems with it. First, the project does not compile in a blank project, it says that can't synthesize weak references and the error persists even if i remove the synthesizes, i have to make the variables strong in order to work. Second problem is that i'm trying to use it in a larger project, with fb integration also if matters, and get different 2 errors that i can't fix. Your example works instead but i can't see any difference in settings. Thanks

Ld /Users/Cristi/Library/Developer/Xcode/DerivedData/Instaslider-aqebwmejbvqneyakujwnvwcbpaal/Build/Products/Debug-iphoneos/Instaslider.app/Instaslider normal armv7 cd /Users/Cristi/Documents/iphone/Instaslider setenv IPHONEOS_DEPLOYMENT_TARGET 6.0 setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/opt/local/bin:/opt/local/sbin:/Applications/Xcode.app/Contents/Developer/usr/bin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin" /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk -L/Users/Cristi/Library/Developer/Xcode/DerivedData/Instaslider-aqebwmejbvqneyakujwnvwcbpaal/Build/Products/Debug-iphoneos -F/Users/Cristi/Library/Developer/Xcode/DerivedData/Instaslider-aqebwmejbvqneyakujwnvwcbpaal/Build/Products/Debug-iphoneos -F/Users/Cristi/Documents/iphone/Instaslider/../../facebook-ios-sdk/build -filelist /Users/Cristi/Library/Developer/Xcode/DerivedData/Instaslider-aqebwmejbvqneyakujwnvwcbpaal/Build/Intermediates/Instaslider.build/Debug-iphoneos/Instaslider.build/Objects-normal/armv7/Instaslider.LinkFileList -dead_strip -lsqlite3.0 -ObjC -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=6.0 -framework CoreImage -framework CoreVideo -framework CoreMedia -weak_framework AdSupport -weak_framework Accounts -weak_framework Social -framework FacebookSDK -framework MediaPlayer -framework AVFoundation -framework AssetsLibrary -framework UIKit -framework Foundation -framework CoreGraphics -o /Users/Cristi/Library/Developer/Xcode/DerivedData/Instaslider-aqebwmejbvqneyakujwnvwcbpaal/Build/Products/Debug-iphoneos/Instaslider.app/Instaslider

Undefined symbols for architecture armv7: "_OBJCCLASS$_Instagram", referenced from: objc-class-ref in AppDelegate.o ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)

(null): "_OBJCCLASS$_Instagram", referenced from:

(null): Objc-class-ref in AppDelegate.o

(null): Symbol(s) not found for architecture armv7

(null): Linker command failed with exit code 1 (use -v to see invocation)

cristibaluta commented 11 years ago

The second was my mistake, i was importing the files in the wrong target. Now it works with the original files. Using it in a blank project still complains about the weak properties.