当我创建一个iOS项目和“用库构建阶段->链接二进制文件”时,我会添加AVFoundation.framework库并使用#import "<AVFoundation/AVFoundation.h>"。我得到一个编译错误:
"AVFoundation/AVFoundation.h文件未找到“。
这是我的密码:
#import <UIKit/UIKit.h>
#import "<AVFoundation/AVFoundation.h>" 我怎么解决这个问题?
发布于 2012-11-05 05:51:24
使用
#import <AVFoundation/AVFoundation.h>只有两种类型的#import语句:
#import <file.h>和
#import "file.h"没有像:#import "<file.h>"这样的类型,您在这里犯了错误:#import "<AVFoundation/AVFoundation.h>"
通常,#import "QuartzCore/QuartzCore.h“表单是”查找我自己的标头,如果找不到系统标头“,表单是”查找系统标头“。理论上,位置是编译器定义的,它们可以在给定的平台上以不同的方式实现,但我没有遇到执行任何不同操作的C编译器。
参考资料:SO
发布于 2012-11-05 05:50:28
你还有额外的引号。
使用
#import <AVFoundation/AVFoundation.h>不
#import "<AVFoundation/AVFoundation.h>" 发布于 2013-12-03 05:37:03
请不要使用
#import "<AVFoundation/AVFoundation.h>" 使用这个
#import <AVFoundation/AVFoundation.h>我们可以导入两种类型的库
第一个是由Apple developer开发的系统库
作为
#import <Library.h>第二种是由Application实现的类
就像
#import "Library.h"https://stackoverflow.com/questions/13226543
复制相似问题