gpt4 book ai didi

iphone - 找不到 AVFoundation/AVFoundation.h 文件

转载 作者:可可西里 更新时间:2023-11-01 05:00:46 27 4
gpt4 key购买 nike

当我创建一个 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/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com