作者热门文章
- objective-c - iOS 5 : Can you override UIAppearance customisations in specific classes?
- iphone - 如何将 CGFontRef 转换为 UIFont?
- ios - 以编程方式关闭标记的信息窗口 google maps iOS
- ios - Xcode 5 - 尝试验证存档时出现 "No application records were found"
我是 Xcode 子项目的新手。在我的 iPhone 应用程序项目 MyProject
中,我试图将一些通用代码重构为名为 MyLibrary
的静态库项目。在我创建 MyLibrary
并移动代码后,MyProject
不再编译。错误是 MyProject
看不到 MyLibrary
中的 .h 文件。
错误 MyLibraryConfig.h: No such file or directory
is coming in the line:
#import "MyLibraryConfig.h"
MyProject
中导入 MyLibrary
.h 文件?最佳答案
在build设置中 --> Header Search Path --> 添加下面的条目
$(SRCROOT) 并将其标记为递归。
关于ios - Xcode 4.2 : How to import . 来自子项目的 h 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9501799/
我是一名优秀的程序员,十分优秀!