2013-03-28 9 views
16

przy użyciu tego hasła"_CMTimeGetSeconds", symbol (a) nie znaleziono dla architektury ARMv7 -IOS

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

błędów

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) 
+0

byłaś związana ramy CoreMedia? –

Odpowiedz

44

CMTime zdefiniowaną w CoreMedia.framework. Dodaj tę strukturę do swojego projektu.

I spojrzeć na Apple CMTime reference

+0

Dzięki to działa !!!!!!!! –

+0

zapisałem mój dzień :) – hafedh

Powiązane problemy