Xcode“缺少子模块"警告 [英] Xcode "Missing Submodule" warning

查看:910
本文介绍了Xcode“缺少子模块"警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I'm using Xcode6 GM to create a Coacoa Touch Framework (a new function in Xcode6), then this framework is included into my app.

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

Everything is fine (works fine), except that I get warnings in "#import". What is the root cause?

推荐答案

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

I ran into the same problem and eventually fixed it by adding my project headers into the umbrella header. When you create a new framework it should start with a single .h file titled by the project (in your case DirectProximityFramework.h).

此文件内是注释:

在此标头中,您应导入自己的所有公共标头 使用诸如#import <DirectProximityFramework/PublicHeader.h>

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

因此,只需将GeofencingHelper.h文件添加到此文件中即可:

So just add your GeofencingHelper.h file in this file:

#import <DirectProximityFramework/GeofencingHelper.h>

这应该删除您所有的警告!

This should remove all of your warnings!

这篇关于Xcode“缺少子模块"警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆