ios - 解析 NSObjCRuntime、NSZone 和 NSObject 中的问题 [英] ios - Parse Issues in NSObjCRuntime, NSZone, and 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屋!