iOS 8扩展中的TBXML无法构建 [英] TBXML in an iOS 8 extension fails to build

查看:134
本文介绍了iOS 8扩展中的TBXML无法构建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的iOS应用程序中,我使用TBXML进行xml处理,它没有正式更新,但它仍然适用于我。

In my iOS app I use TBXML for xml processing, it's not officially updated but it still working fine for me.

我正在尝试创建今天的扩展程序对于iOS 8,当我将TBXML添加为编译源时,我得到以下结果:

I'm trying to create a Today extension for iOS 8 and when I add TBXML as a Compile Source I get the following:

TBXML.h

TBXML.h

在添加扩展程序之前,我没有TBXML的任何构建问题。

Before adding the extension, I didn't have any build issue with TBXML.

如何解决这个问题?

谢谢

推荐答案

通过在TBXML.h的开头添加 #import< Foundation / Foundation.h> 来解决。

Fixed by adding #import <Foundation/Foundation.h> at the beggining of TBXML.h.

似乎在使用扩展时,此文件未导入或稍后导入

Seems that when working with extension, this file is not imported or is imported later

这篇关于iOS 8扩展中的TBXML无法构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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