2013-03-28 6 views
16

のARMv7、記号(S)アーキテクチャが見つかりません"_CMTimeGetSeconds" このコードを使用して-IOS

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

エラー

+0

あなたはCoreMediaフレームワークをリンクしているを見てみましょうか? –

答えて

44
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

+0

ありがとうございます!!!!!!!! –

+0

保存日: – hafedh

関連する問題