gpt4 book ai didi

iphone - "_CMTimeGetSeconds",未找到体系结构 armv7 -IOS 的符号

转载 作者:IT王子 更新时间:2023-10-29 08:17:16 24 4
gpt4 key购买 nike

通过使用此代码

AVPlayerItem *playerItem = [AVPlayerItem playerItemWithURL:selectedVideoUrl];
CMTime duration = playerItem.duration;
float seconds = CMTimeGetSeconds(duration);
NSLog(@"duration: %.2f", seconds);

错误

Undefined symbols for architecture armv7:
"_CMTimeGetSeconds", referenced from:
-[VideoUpload imagePickerController:didFinishPickingMediaWithInfo:] in VideoUpload.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

最佳答案

CMTime 在 CoreMedia.framework 中定义。将该框架添加到您的项目中。

再看看 Apple 的 CMTime reference

关于iphone - "_CMTimeGetSeconds",未找到体系结构 armv7 -IOS 的符号,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15677588/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com