2014-09-26 63 views
4

我不明白爲什麼會發生這種情況。我想我們CMTimeMake:架構i386的未定義符號:「_CMTimeMake」,引用自:

CMTime cmTime = CMTimeMake(60, 1); 

.h的進口:

#import <UIKit/UIKit.h> 
#import <MediaPlayer/MediaPlayer.h> 
#import <AVFoundation/AVFoundation.h> 

.m是:

#import "ViewController.h" 
#import "ContentView.h" 
#import "AppDelegate.h" 
#import "BackButton.h" 
#import "NavButton.h" 
#import "IIViewDeckController.h" 
#import "TutorialView.h" 

隨着生成錯誤:

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

我錯過了什麼?

回答

23

您未與CoreMedia框架鏈接。您可以在項目編輯器將它添加到你的目標,這樣的:

linking the framework

+1

Wooow,你是好。很好的接觸gif。 – Jacksonkr 2014-09-26 20:31:18

相關問題