制作视频缩略图时CMTimeMake崩溃

时间:2012-09-16 10:38:57

标签: iphone objective-c ios

我正在尝试制作视频缩略图,并在此处关注另一个教程。我确信我已经完成了它告诉我要做的一切,但它仍然无法正常工作......

这是我得到的错误:

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框架,只是fyi ...

先谢谢,汤姆

0 个答案:

没有答案