ios - 解析NSObjCRuntime,NSZone和NSObject中的问题 [英] ios - Parse Issues in NSObjCRuntime, NSZone, and NSObject

查看:370
本文介绍了ios - 解析NSObjCRuntime,NSZone和NSObject中的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 AddThis 在我的iOS应用程序中添加共享选项。

I'm using AddThis to add sharing options in my iOS app.

我已导入类,并将-fno-objc-arc标记添加到所有导入因为他们不使用ARC。

I have imported the classes and added the -fno-objc-arc flag to all the imported classes since they don't use ARC.

但是,当我尝试运行应用程序,我得到了一大堆解析问题,如:

However, when I try to run the app I get a slew of Parse Issues such as:

Expected identifier or '('
Unknown type name 'NSString'
Unknown type name 'Protocol'
...

这些错误发生在NSObjCRuntime,NSZone和NSObject。

These errors occur in NSObjCRuntime, NSZone, and NSObject. I have the requisite frameworks included as well. Any ideas?

包括此图片如果有帮助:

Including this image if it helps:

推荐答案

我刚刚将Base64Transcoder.c的文件名更改为Base64Transcoder.m,现在项目编译不知道为什么这解决了问题,但它的工作原理。

I just changed the filename of Base64Transcoder.c to Base64Transcoder.m, and now the project compiles. I have no idea why this fixes the problem, but it works.

这篇关于ios - 解析NSObjCRuntime,NSZone和NSObject中的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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