Flipboard / FLAnimatedImage

Performant animated GIF engine for iOS
MIT License
7.92k stars 1.21k forks source link

Bug Report #242

Closed narniaexpert closed 4 years ago

narniaexpert commented 4 years ago

I have tried to use this library according to the instructions provided by https://vikrambahl.com/animated-gifs-ios-xcode-storyboards/

This was the build error I came across:

Ld /Users/David/Library/Developer/Xcode/DerivedData/MathInvaders-bccdvarvqbkxcqaqzhwhquyuluol/Build/Products/Debug-iphonesimulator/MathInvaders.app/MathInvaders normal i386 cd "/Users/David/Documents/iPhone Development/MathInvaders" setenv IPHONEOS_DEPLOYMENT_TARGET 6.1 setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk -L/Users/David/Library/Developer/Xcode/DerivedData/MathInvaders-bccdvarvqbkxcqaqzhwhquyuluol/Build/Products/Debug-iphonesimulator -F/Users/David/Library/Developer/Xcode/DerivedData/MathInvaders-bccdvarvqbkxcqaqzhwhquyuluol/Build/Products/Debug-iphonesimulator -filelist /Users/David/Library/Developer/Xcode/DerivedData/MathInvaders-bccdvarvqbkxcqaqzhwhquyuluol/Build/Intermediates/MathInvaders.build/Debug-iphonesimulator/MathInvaders.build/Objects-normal/i386/MathInvaders.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=6.1 -framework UIKit -framework Foundation -framework CoreGraphics -o /Users/David/Library/Developer/Xcode/DerivedData/MathInvaders-bccdvarvqbkxcqaqzhwhquyuluol/Build/Products/Debug-iphonesimulator/MathInvaders.app/MathInvaders

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

narniaexpert commented 4 years ago

This was my mistake based on how I added the files to the XCode project. Sorry.