简体   繁体   English

DDMathParser和iOS7 / XCode兼容性

[英]DDMathParser & iOS7/XCode Compatibility

I added DDMathParser as a submodule in my Git repository, and after running it, the code only seems to work with OS X. Right away it gives me the following error in DemoController.h , etc.: 我将DDMathParser添加为我的Git存储库中的子模块,并且在运行它之后,该代码似乎只能在OS X上使用。马上,它在DemoController.h等中给了我以下错误:

'Cocoa/Cocoa.h' file not found

Can DDMathParser work with a mobile device using iOS7? DDMathParser可以与使用iOS7的移动设备一起使用吗? If so, it isn't clear to me how to accomplish this. 如果是这样,我不清楚如何完成此操作。 My google search online suggests that Cocoa is not possible with iOS. 我的Google在线搜索表明,iOS无法使用Cocoa。 I was able to get it working with Mac OS X - how can I do the same for iOS with my app? 能得到它与Mac OS X的工作-我该怎么办的iOS一样与我的应用程序?

DDMathParser author here. DDMathParser作者在这里。 You've copied over more than you need. 您已复制了超过所需的副本。 As the name implies, DemoController is part of a demo showing how the parser works. 顾名思义, DemoController是演示程序的一部分,演示了解析器的工作方式。 You shouldn't be including it in your app. 您不应该在应用程序中包含它。

It definitely works with iOS 7. I copied it into my Xcode project folder and it parses like a champ. 它肯定可以在iOS 7上使用。我将其复制到Xcode项目文件夹中,并且分析起来像冠军。 Can you try that first, then work on Git? 您可以先尝试一下然后再在Git上工作吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM