具有依赖性的CocoaPods框架-框架模块内部包含非模块化标头 [英] CocoaPods framework with dependencies - include of non-modular header inside framework module

查看:104
本文介绍了具有依赖性的CocoaPods框架-框架模块内部包含非模块化标头的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试构建具有其他Pod依赖项的私有CocoaPods框架。

I am trying to build a private CocoaPods framework with other pod dependencies.

除其他外,我在Podspec文件中添加了Parse作为依赖项:

Among others, I added Parse as a dependency in the podspec file:

s.dependency 'Parse'

但是,当我尝试掉毛时

pod lib lint MyPrivateSpec.podspec  --verbose --sources 'git@bitbucket.org:MY_BITBUCKET_NAME/specs.git,https://github.com/CocoaPods/Specs'

我遇到以下错误:


目标支持文件/Parse/Parse-umbrella.h:3:9:注意:在目标支持文件/Parse/Parse-umbrella.h:3中包含的文件:

Target Support Files/Parse/Parse-umbrella.h:3:9: note: in file included from Target Support Files/Parse/Parse-umbrella.h:3:

错误| xcodebuild:Parse / Parse / Parse.h:12:9:错误:在框架模块 Parse.Parse中包含非模块化标头

ERROR | xcodebuild: Parse/Parse/Parse.h:12:9: error: include of non-modular header inside framework module 'Parse.Parse'

[以及以下类型的错误中的更多以下几行...]

[and more of these types of errors in the following lines ...]

我查看了关于SO和github问题的几乎所有相关问题,但找不到任何适用的方法我。有没有人遇到过这些问题,或者熟悉为什么它不起作用?

I looked at virtually every relevant question asked on SO and in github issues, but I could not find anything that worked for me. Has anybody experienced these issues, or is familiar with why this does not work ?

推荐答案

不幸的是,这是解析库的问题本身。一段时间以前,当我尝试在为iOS构建的框架中使用Parse库时,遇到了类似的情况。

This is unfortunately a problem with the Parse library itself. I ran into a similar situation a while back when I was trying to use the Parse library inside a framework I was building for iOS.

错误的意思是,有标头包含在Parse的公共.h文件之一中,不属于模块。如果我没记错的话,在Parse的情况下,这是< sqlite3.h> 。如果不从Parse的公共标头中删除它,就不可能建立一个也包含Parse的框架目标。这应该作为Parse的一个错误提交,以便他们可以进行升级以支持模块化框架构建。

What the error means is that there is a header included in one of Parse's public .h files that does not belong to a module. In Parse's case this is <sqlite3.h> if I remember correctly. Without removing this from Parse's public headers it will not be possible to build a framework target that also includes Parse. This should be filed as a bug with Parse so they could work on an upgrade to support modular framework builds.

由于需要我的项目来构建框架目标,由于上述原因,必须在我的项目中继续使用Parse。

Due to the need for my project to build a framework target I had to pass on using Parse in my project as a result of the above.

这里是对类似问题的参考,答案类似:https://stackoverflow.com/a/24728646/296708

Here is a reference to a similar problem with similar answer: https://stackoverflow.com/a/24728646/296708

这篇关于具有依赖性的CocoaPods框架-框架模块内部包含非模块化标头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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