错误:CorePlot0不包含核心图的有效pid

时间:2021-05-10 10:33:29

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的本教程。我遇到了同样的问题,但我确实导入了,

  1. Add only TestResources, Source, and iPhoneOnly Folders and CorePlot-CocoaTouch.h
  2. 仅添加TestResources,Source和iPhoneOnly文件夹以及CorePlot-CocoaTouch.h

  3. Search For Tests in your project resources and Remove all files named test under your Source folder.
  4. 在项目资源中搜索测试并删除Source文件夹下名为test的所有文件。

  5. Remove checkformisalignedlayers.d in your TestResources folder.
  6. 删除TestResources文件夹中的checkformisalignedlayers.d。

  7. Run CorePlot-CocoaTouch.xcodeproj and CorePlot.xcodeproj Separately. You'll find build folder.
  8. 分别运行CorePlot-CocoaTouch.xcodeproj和CorePlot.xcodeproj。你会找到build文件夹。

  9. In that build folder, you'll find CorePlot.framework under your Debug folder and libCorePlot-CocoaTouch.a under your Debug-iphoneos folder.
  10. 在该build文件夹中,您将在Debug文件夹下找到CorePlot.framework,在Debug-iphoneos文件夹下找到libCorePlot-CocoaTouch.a。

  11. Open your Project -> Build Phases -> Link Binary With Libraries and Drag & Drop the CorePlot.framework and libCorePlot-CocoaTouch.a there.
  12. 打开您的项目 - >构建阶段 - >使用库链接二进制文件并将CorePlot.framework和libCorePlot-CocoaTouch.a拖放到那里。

  13. Add these -all_load and -ObjC flag in your Build Settings -> Other Linker Flags section.
  14. 在Build Settings - > Other Linker Flags部分添加-all_load和-ObjC标志。

  15. Add QuartzCore framework.
  16. 添加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的本教程。我遇到了同样的问题,但我确实导入了,

  1. Add only TestResources, Source, and iPhoneOnly Folders and CorePlot-CocoaTouch.h
  2. 仅添加TestResources,Source和iPhoneOnly文件夹以及CorePlot-CocoaTouch.h

  3. Search For Tests in your project resources and Remove all files named test under your Source folder.
  4. 在项目资源中搜索测试并删除Source文件夹下名为test的所有文件。

  5. Remove checkformisalignedlayers.d in your TestResources folder.
  6. 删除TestResources文件夹中的checkformisalignedlayers.d。

  7. Run CorePlot-CocoaTouch.xcodeproj and CorePlot.xcodeproj Separately. You'll find build folder.
  8. 分别运行CorePlot-CocoaTouch.xcodeproj和CorePlot.xcodeproj。你会找到build文件夹。

  9. In that build folder, you'll find CorePlot.framework under your Debug folder and libCorePlot-CocoaTouch.a under your Debug-iphoneos folder.
  10. 在该build文件夹中,您将在Debug文件夹下找到CorePlot.framework,在Debug-iphoneos文件夹下找到libCorePlot-CocoaTouch.a。

  11. Open your Project -> Build Phases -> Link Binary With Libraries and Drag & Drop the CorePlot.framework and libCorePlot-CocoaTouch.a there.
  12. 打开您的项目 - >构建阶段 - >使用库链接二进制文件并将CorePlot.framework和libCorePlot-CocoaTouch.a拖放到那里。

  13. Add these -all_load and -ObjC flag in your Build Settings -> Other Linker Flags section.
  14. 在Build Settings - > Other Linker Flags部分添加-all_load和-ObjC标志。

  15. Add QuartzCore framework.
  16. 添加QuartzCore框架。

Note:
After Completing this process, delete your Derived Data in your Organizer and Clean the Build.

注意:完成此过程后,删除管理器中的派生数据并清理构建。