I am trying to integrate coreplot in my mac application.
我正在尝试将coreplot集成到我的mac应用程序中。
Anyone having easy steps to integrate it?
任何人都有简单的步骤来集成它?
I got the sample code from here. core plot
我从这里得到了示例代码。核心情节
Nut when i tried to integrated core plot with my own application it is giving me this error. There is also one document for following the steps but I am not getting it.If any one has any other steps in understanding language then please suggest me its urgent for me.
Nut当我试图将核心情节与我自己的应用程序集成时,它给了我这个错误。还有一个文件用于遵循这些步骤但我没有得到它。如果任何人在理解语言方面有任何其他步骤,那么请告诉我它对我来说是紧急的。
Till now I have followed this.
直到现在我都遵循了这一点。
-
Added its framework folder to my application folder.
将其框架文件夹添加到我的应用程序文件
-
I added coreplot to my target dependency and built phase->link binary with libraries
我将coreplot添加到我的目标依赖项中,并使用库构建了phase-> link二进制文件
-
I also set other linker flag -all_load, -ObjC
我还设置了其他链接器标志-all_load,-ObjC
What other steps are remain? so that it is giving this error?
还有哪些其他步骤?所以它给出了这个错误?
Somewhere I found solution to delete this file checkformisalignedlayers.d
file but it is creating new errors after deleting it.
在某个地方,我找到了删除此文件checkformisalignedlayers.d文件的解决方案,但删除后会创建新错误。
I also found suggestion as to set header search path but didn't get how to set that because I have added whole framework folder to my application because when I drag & drop only .xcodeproject it was not allowing me to import its files.
我还发现了设置标题搜索路径的建议,但没有得到如何设置,因为我已将整个框架文件夹添加到我的应用程序,因为当我只拖放.xcodeproject时,它不允许我导入其文件。
1 个解决方案
#1
1
I followed this tutorial for CorePlot
. I got the same problem, but i did import like,
我遵循了CorePlot的本教程。我遇到了同样的问题,但我确实导入了,
- Add only
TestResources, Source, and iPhoneOnly Folders
andCorePlot-CocoaTouch.h
- Search For Tests in your
project resources
and Remove all files namedtest
under yourSource folder
. - Remove
checkformisalignedlayers.d
in yourTestResources
folder. - Run
CorePlot-CocoaTouch.xcodeproj
andCorePlot.xcodeproj
Separately. You'll findbuild
folder. - In that
build
folder, you'll findCorePlot.framework
under yourDebug
folder andlibCorePlot-CocoaTouch.a
under yourDebug-iphoneos
folder. - Open your
Project -> Build Phases -> Link Binary With Libraries
and Drag & Drop theCorePlot.framework
andlibCorePlot-CocoaTouch.a
there. - Add these
-all_load and -ObjC
flag in yourBuild Settings -> Other Linker Flags
section. - Add
QuartzCore framework
.
仅添加TestResources,Source和iPhoneOnly文件夹以及CorePlot-CocoaTouch.h
在项目资源中搜索测试并删除Source文件夹下名为test的所有文件。
删除TestResources文件夹中的checkformisalignedlayers.d。
分别运行CorePlot-CocoaTouch.xcodeproj和CorePlot.xcodeproj。你会找到build文件夹。
在该build文件夹中,您将在Debug文件夹下找到CorePlot.framework,在Debug-iphoneos文件夹下找到libCorePlot-CocoaTouch.a。
打开您的项目 - >构建阶段 - >使用库链接二进制文件并将CorePlot.framework和libCorePlot-CocoaTouch.a拖放到那里。
在Build Settings - > Other Linker Flags部分添加-all_load和-ObjC标志。
添加QuartzCore框架。
Note:
After Completing this process, delete your Derived Data
in your Organizer
and Clean
the Build
.
注意:完成此过程后,删除管理器中的派生数据并清理构建。
#1
1
I followed this tutorial for CorePlot
. I got the same problem, but i did import like,
我遵循了CorePlot的本教程。我遇到了同样的问题,但我确实导入了,
- Add only
TestResources, Source, and iPhoneOnly Folders
andCorePlot-CocoaTouch.h
- Search For Tests in your
project resources
and Remove all files namedtest
under yourSource folder
. - Remove
checkformisalignedlayers.d
in yourTestResources
folder. - Run
CorePlot-CocoaTouch.xcodeproj
andCorePlot.xcodeproj
Separately. You'll findbuild
folder. - In that
build
folder, you'll findCorePlot.framework
under yourDebug
folder andlibCorePlot-CocoaTouch.a
under yourDebug-iphoneos
folder. - Open your
Project -> Build Phases -> Link Binary With Libraries
and Drag & Drop theCorePlot.framework
andlibCorePlot-CocoaTouch.a
there. - Add these
-all_load and -ObjC
flag in yourBuild Settings -> Other Linker Flags
section. - Add
QuartzCore framework
.
仅添加TestResources,Source和iPhoneOnly文件夹以及CorePlot-CocoaTouch.h
在项目资源中搜索测试并删除Source文件夹下名为test的所有文件。
删除TestResources文件夹中的checkformisalignedlayers.d。
分别运行CorePlot-CocoaTouch.xcodeproj和CorePlot.xcodeproj。你会找到build文件夹。
在该build文件夹中,您将在Debug文件夹下找到CorePlot.framework,在Debug-iphoneos文件夹下找到libCorePlot-CocoaTouch.a。
打开您的项目 - >构建阶段 - >使用库链接二进制文件并将CorePlot.framework和libCorePlot-CocoaTouch.a拖放到那里。
在Build Settings - > Other Linker Flags部分添加-all_load和-ObjC标志。
添加QuartzCore框架。
Note:
After Completing this process, delete your Derived Data
in your Organizer
and Clean
the Build
.
注意:完成此过程后,删除管理器中的派生数据并清理构建。