iOS - Linker error after upgrading to Xcode 4.5, possibly Core Plot related

前端 未结 10 1085
猫巷女王i
猫巷女王i 2020-12-03 11:02

I\'ve just upgraded to Xcode 4.5GM and tidied up some screens in my iPhone project to cope with the extra screen size on iPhone 5. The project is targeting

相关标签:
10条回答
  • 2020-12-03 11:19

    Simply i compiled the core-plot library and followed the Dependent Project install from this link http://code.google.com/p/core-plot/wiki/UsingCorePlotInApplications
    and every thing going like a charm (my project now support both armv7 and armv7s without any problems) , in addition i still set Build Active Architecture Only to NO , to be sure to support all Architectures

    0 讨论(0)
  • 2020-12-03 11:20

    I have been struggling with this for days now and finally succeeded getting it to work by creating a new static library.

    I used the Mercurial Source Code control system via the instructions here: Create a static library using Mecurial and the "Core-Plot Static Library Install" from the wiki found here: How to do a Static Library Install of Core-Plot

    I am posting this for people like me, with low experience, as this is quite simple and self explained.

    0 讨论(0)
  • 2020-12-03 11:27

    I'm also using the Core Plot 1.0 static library in my project. I was able to address the problem by Setting Build Active Architectures Only to Yes. Build Active Architectures Only is in the Architecture section of the Target's Build Settings in Xcode.

    I downloaded the Core Plot 1.0 zip file which seems to be incomplete so I cannot rebuild the libraries.

    0 讨论(0)
  • 2020-12-03 11:27

    I use Core Plot 1.0 static library for iOS 6.1 in Xcode 4.4. After updating to Xcode 4.5 with iOS 7.0 I faced the same problem as yours.

    To fix it, I deleted the CorePlotHeaders folder and libCorePlot-CocoaTouch.a in my project. If you delete it in Xcode, choose the option "Move To Trash".

    Then I download CorePlot_1.4.zip from https://code.google.com/p/core-plot/downloads/list, then I follow Static Library Install from https://code.google.com/p/core-plot/wiki/UsingCorePlotInApplications

    Hope it helps

    0 讨论(0)
  • 2020-12-03 11:29

    Switch the compiler on the CorePlot project from the Apple LLVM Compiler 4.1 to LLVM GCC 4.2

    0 讨论(0)
  • 2020-12-03 11:31

    It works in the simulator because the simulator will always use i386 architecture. That hasn't changed with the new SDK. What has changed is the presence of the iPhone 5, which uses a new architecture (armv7s). The project for your app automatically added armv7s as a valid architecture, but the library was likely compiled without knowledge of it. Thus, your arm7s-enabled app tries to link against a library that was built without armv7s and fails.

    To fix it, you'll just need access to the project that produces the library. Modify the "Valid Architecture" setting on the target to include armv7s, then rebuild.

    0 讨论(0)
提交回复
热议问题