我正在尝试制作视频缩略图,并且正在关注 SO 上的另一个教程。我确定我已经完成了它让我做的所有事情,但它仍然无法正常工作......
这是我得到的错误:
Undefined symbols for architecture armv7:
"_CMTimeMake", referenced from:
-[MainMenuController imagePickerController:didFinishPickingMediaWithInfo:] in MainMenuController.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
编码:
AVURLAsset* asset = [AVURLAsset URLAssetWithURL:[NSURL URLWithString:movieUrl] options:nil];
AVAssetImageGenerator* imageGenerator = [AVAssetImageGenerator assetImageGeneratorWithAsset:asset];
pickedImage = [UIImage imageWithCGImage:[imageGenerator copyCGImageAtTime:CMTimeMake(1, 1) actualTime:nil error:nil]];
你们中有人知道可能出了什么问题吗?
我已经包含了 AVFoundation 框架,仅供参考...
在此先感谢,汤姆