我不明白为什么会发生这种情况。我正在尝试使用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)
我漏掉了什么?