ios - Xcode "Missing Submodule"警告

标签 ios objective-c swift xcode xcode6

我正在使用Xcode6 GM创建一个Coacoa Touch框架(Xcode6中的一个新功能),然后这个框架包含在我的应用程序中。

一切都很好(工作正常),除了我在“#import”中收到警告。根本原因是什么?

enter image description here

最佳答案

我遇到了同样的问题,并最终通过将项目 header 添加到伞 header 中来解决它。当您创建新框架时,它应该以单个 .h 开头。以项目为标题的文件(在您的情况下 DirectProximityFramework.h )。

此文件内有一条注释:

In this header, you should import all the public headers of your framework using statements like #import <DirectProximityFramework/PublicHeader.h>

所以只需添加您的 GeofencingHelper.h该文件中的文件:

#import <DirectProximityFramework/GeofencingHelper.h>

这应该会删除所有警告!

关于ios - Xcode "Missing Submodule"警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25800301/

相关文章:

ios - 无法将类型 'Array<AboutMe>' 的返回表达式转换为返回类型 '[About me]'

objective-c - 进行类扩展时避免警告

ios - 无法在 Today Extension ios 中加载 TableView

ios - ios应用程序在iPad上运行,launchscreen.storyboard旋转屏幕问题

javascript - 用于 jQuery/Javascript 的现代 KVO 库?

ios - UINavigationController 中的 UITabBarController 中的 UITableViewController

swift - 关于 RxSwift 中 flatMapLatest 的困惑

ios - IOS 的 getFromLocationName() 的替代品是什么?

iphone - 更改导航项(栏)的背景颜色

ios - UIimage 未加载到 tableview 上