我想在我的图像视图中添加一个gif,所以按照网上的说明,我导入了我下载的类FLAnimatedImage和FLAnimatedImageView类.我将它们添加到我的项目中的一个组中,选择了副本,并使用了这些类.现在我得到15个错误,如下所述.
描述部分是:
Ld "/Users/mark/Library/Developer/Xcode/DerivedData/iMark_OS-dmxhnswrkktqsacxqtlldejutoqb/Build/Products/Debug-iphonesimulator/iMark OS.app/iMark OS" normal i386
cd "/Users/mark/Desktop/Xcode Projects/iMark OS"
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/mark/Library/Developer/Xcode/DerivedData/iMark_OS-dmxhnswrkktqsacxqtlldejutoqb/Build/Products/Debug-iphonesimulator -F/Users/mark/Library/Developer/Xcode/DerivedData/iMark_OS-dmxhnswrkktqsacxqtlldejutoqb/Build/Products/Debug-iphonesimulator -filelist "/Users/mark/Library/Developer/Xcode/DerivedData/iMark_OS-dmxhnswrkktqsacxqtlldejutoqb/Build/Intermediates/iMark OS.build/Debug-iphonesimulator/iMark OS.build/Objects-normal/i386/iMark OS.LinkFileList" -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=6.1 -framework CoreData -framework UIKit -framework Foundation -framework CoreGraphics -o "/Users/mark/Library/Developer/Xcode/DerivedData/iMark_OS-dmxhnswrkktqsacxqtlldejutoqb/Build/Products/Debug-iphonesimulator/iMark OS.app/iMark OS"
Run Code Online (Sandbox Code Playgroud)
错误部分是:
Undefined symbols for architecture i386:
"_CACurrentMediaTime", referenced from:
___42-[FLAnimatedImage addFrameIndexesToCache:]_block_invoke_2 in FLAnimatedImage.o
"_CGImageSourceCopyProperties", referenced from:
-[FLAnimatedImage initWithAnimatedGIFData:] in FLAnimatedImage.o
"_CGImageSourceCopyPropertiesAtIndex", referenced from:
-[FLAnimatedImage initWithAnimatedGIFData:] …Run Code Online (Sandbox Code Playgroud) 我需要模拟按下主页按钮以使用动画退出应用程序.我想我可以用UIATarget类做到这一点,但我不知道它是什么框架所以我可以导入它.如何模拟按下主页按钮?