简体   繁体   English

使用依赖项目场景使用Xcode 5.0构建ios corePlot

[英]Building ios corePlot with Xcode 5.0 using a Dependent project scenario

I am new to IOS and am writing an ios 7.0 app that uses coreplot (latest version 1.3). 我是IOS的新手,正在编写一个使用coreplot(最新版本1.3)的ios 7.0应用程序。 I had the "Build active architecture" set to YES - so during the development, I did not run into any linking problem (I used static linking method as described at https://code.google.com/p/core-plot/wiki/UsingCorePlotInApplications 我将“建立活动架构”设置为YES-因此在开发过程中,我没有遇到任何链接问题(我使用了静态链接方法,如https://code.google.com/p/core-plot/维基/ UsingCorePlotInApplications

Then I built and deployed on my device (iphone 4, ios 7). 然后,我在设备(iphone 4,ios 7)上进行了构建和部署。 It worked fine - I dont remember if it asked to change build settings or not. 它工作正常-我不记得它是否要求更改构建设置。 Today morning, when I tried to run the same code on simulator it started giving me linker error. 今天早晨,当我尝试在模拟器上运行相同的代码时,它开始给我链接器错误。 After doing some research, I realized I need to set the build for active architecture to No and rebuild the core plot using "dependent project install" strategy. 经过研究,我意识到我需要将活动架构的构建设置为“否”,并使用“依赖项目安装”策略来重建核心图。 I am stuck at the point where I need to set the header files search path. 我被困在需要设置头文件搜索路径的位置。 The compilation fails to detect the header file. 编译无法检测到头文件。 The coreplot is in a directory CorePlot_1.3. coreplot在目录CorePlot_1.3中。

The main linking error reads as "ignoring file /Users/rmenon/Documents/Developer/MoneyTrail/MoneyTrail/libCorePlot-CocoaTouch.a, missing required architecture x86_64 in file /Users/rmenon/Documents/Developer/MoneyTrail/MoneyTrail/libCorePlot-CocoaTouch.a (3 slices)" 主要链接错误显示为“忽略文件/Users/rmenon/Documents/Developer/MoneyTrail/MoneyTrail/libCorePlot-CocoaTouch.a,缺少文件/ Users / rmenon / Documents / Developer / MoneyTrail / MoneyTrail / libCorePlot-CocoaTouch所需的架构x86_64 .a(3片)”

As part of my attempt to solve this, I tried to load the coreplot project separately, change the architecure to Stndard (armv7 nd armv7s) and tried to build it. 作为解决此问题的一部分,我尝试单独加载coreplot项目,将架构更改为Stndard(armv7 nd armv7s),然后尝试构建它。 I get two deprecation errors below. 我在下面收到两个弃用错误。 Any help in getting me compile this library for ios 7 so I can use the same setting in debug and device would be really appreciated! 让我为ios 7编译该库的任何帮助,因此我可以在调试和设备中使用相同的设置,我们将不胜感激! Thank you! 谢谢!

在此处输入图片说明在此处输入图片说明

You'll need to update to a newer version of Core Plot. 您需要更新到Core Plot的较新版本。 It has been updated to work with Xcode 5 and iOS 7, but we haven't done a release with those changes yet. 它已更新为可与Xcode 5和iOS 7一起使用,但我们尚未发布包含这些更改的版本。 You can pull the latest code with Mercurial or wait for the next release, which should be soon (within the next week or so). 您可以使用Mercurial提取最新的代码,也可以等待下一个发行版(应该在下个星期左右)。

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

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