使用 AVPlayer 时出现 Apple Mach-O 链接器错误 seekToTime:kCMTimeZero
Apple Mach-O Linker Error when using AVPlayers seekToTime:kCMTimeZero
尝试重新启动影片剪辑时出现此错误。
Apple Mach-O Linker Error
"_kCMTimeZero", referenced from:
Linker command failed with the exit code 1 (use -v to see invocation)
我查看了构建阶段,其中包含 AVFoundation framework
。
查看了其他 Apple Mach-O Linker Error
,这让我尝试进行全新构建,重新启动 XCode 和 OS。但是没有用。
您需要 CoreMedia
框架才能使用 kCMTimeZero
。
尝试重新启动影片剪辑时出现此错误。
Apple Mach-O Linker Error
"_kCMTimeZero", referenced from:
Linker command failed with the exit code 1 (use -v to see invocation)
我查看了构建阶段,其中包含 AVFoundation framework
。
查看了其他 Apple Mach-O Linker Error
,这让我尝试进行全新构建,重新启动 XCode 和 OS。但是没有用。
您需要 CoreMedia
框架才能使用 kCMTimeZero
。