当我创建一个 iOS 项目和“Build Phases -> Link binary with Libraries”时,我添加了 AVFoundation.framework 库并使用 #import "<AVFoundation/AVFoundation.h>"
.我收到一个编译错误:
"AVFoundation/AVFoundation.h file not found".
这是我的代码:
#import <UIKit/UIKit.h>
#import "<AVFoundation/AVFoundation.h>"
我该如何解决?
最佳答案
使用
#import <AVFoundation/AVFoundation.h>
#import
只有两种类型声明:
#import <file.h>
和
#import "file.h"
没有像这样的类型:#import "<file.h>"
你在这里犯了错误:#import "<AVFoundation/AVFoundation.h>"
In general the #import "QuartzCore/QuartzCore.h" form is "find my very own header, if you can't find it look for a system header", and the form is "find a system header". In theory the locations are compiler defined and they could be implemented differently on a given platform, but I haven't run into a C compiler that does anything different.
引用:SO
关于iphone - 找不到 AVFoundation/AVFoundation.h 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13226543/