Closed GoogleCodeExporter closed 9 years ago
Core Plot always supports the latest public iOS and Mac SDKs. The projects will
be updated for iOS 6 and the iPhone 5 when those tools are released by Apple.
You can add the armv7s architecture to your copy of the iOS project. If you've
included the Core Plot project in your app as a dependent project, you should
be good to go. If you need a static library, build the "Universal Library"
target.
Original comment by eskr...@mac.com
on 19 Sep 2012 at 12:26
Thank you for the update and information on the continued support of core-plot.
We are working on resolving the armv7s issue in our project as well and
attempting to break it out as a dependent project.
Do you have any information regarding setting up the header search path for the
dependent project? Thanks.
Original comment by JDCar...@gmail.com
on 20 Sep 2012 at 3:43
Just found a reference to the header search path here...
http://code.google.com/p/core-plot/wiki/UsingCorePlotInApplications
Original comment by JDCar...@gmail.com
on 20 Sep 2012 at 3:48
Hi all, I tried to import core-plot as a dependent project, and I also tried to
do a new build with the armv7s architecture selected, but both times I ran into
the following error. Any ideas?
ld: warning: ignoring file
/Users/michael.neill/Documents/Development/SMC/Source/iOS/SMC/CorePlot/libCorePl
ot-CocoaTouch.a, file was built for archive which is not the architecture being
linked (armv7s):
/Users/michael.neill/Documents/Development/SMC/Source/iOS/SMC/CorePlot/libCorePl
ot-CocoaTouch.a
Undefined symbols for architecture armv7s:
"_OBJC_CLASS_$_CPTGradient", referenced from:
objc-class-ref in ChartVC.o
objc-class-ref in MPCell.o
"_OBJC_CLASS_$_CPTMutableTextStyle", referenced from:
objc-class-ref in ChartVC.o
"_OBJC_CLASS_$_CPTLegend", referenced from:
objc-class-ref in ChartVC.o
"_CPTDecimalFromString", referenced from:
-[ChartVC constructBarChart] in ChartVC.o
"_OBJC_CLASS_$_CPTTheme", referenced from:
objc-class-ref in ChartVC.o
objc-class-ref in MPCell.o
"_OBJC_CLASS_$_CPTTextLayer", referenced from:
objc-class-ref in ChartVC.o
"_OBJC_CLASS_$_CPTPlotRange", referenced from:
objc-class-ref in ChartVC.o
"_OBJC_CLASS_$_CPTFill", referenced from:
objc-class-ref in ChartVC.o
objc-class-ref in MPCell.o
"_OBJC_CLASS_$_CPTLineStyle", referenced from:
objc-class-ref in ChartVC.o
objc-class-ref in MPCell.o
"_OBJC_CLASS_$_CPTPieChart", referenced from:
objc-class-ref in ChartVC.o
objc-class-ref in MPCell.o
"_OBJC_CLASS_$_CPTAxisLabel", referenced from:
objc-class-ref in ChartVC.o
"_OBJC_CLASS_$_CPTXYGraph", referenced from:
objc-class-ref in ChartVC.o
objc-class-ref in MPCell.o
"_CPTDecimalFromInt", referenced from:
-[ChartVC constructBarChart] in ChartVC.o
"_CPTDecimalFromFloat", referenced from:
-[ChartVC constructBarChart] in ChartVC.o
"_kCPTDarkGradientTheme", referenced from:
-[ChartVC constructPieChart] in ChartVC.o
-[ChartVC constructBarChart] in ChartVC.o
"_OBJC_CLASS_$_CPTBarPlot", referenced from:
objc-class-ref in ChartVC.o
"_kCPTSlateTheme", referenced from:
-[MPCell constructPieChart:] in MPCell.o
"_OBJC_CLASS_$_CPTColor", referenced from:
objc-class-ref in ChartVC.o
objc-class-ref in ChartBusiness.o
objc-class-ref in MPCell.o
ld: symbol(s) not found for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Original comment by mi...@mkndev.net
on 20 Sep 2012 at 6:51
[deleted comment]
Also, to clarify when I said I made a new build I'm referring to a new static
library using the Universal LIbrary target.
Thanks
Original comment by mi...@mkndev.net
on 20 Sep 2012 at 6:52
Ok, I have found the issue. I wasn't adding in armv6 into the mix. I added that
along with the armv7 and armv7s and it worked like charm.
Original comment by mi...@mkndev.net
on 20 Sep 2012 at 7:23
I have the most recent build of Core Plot added as a dependent project in the
project for my app. It runs on the simulator fine (obviously), but the
following error comes up:
CorePlot-CocoaTouch was rejected as an implicit dependency for
'libCorePlot-CocoaTouch.a' because its architectures 'armv7' didn't contain all
requred architectures 'armv7 armv7s'
This prevents building of libCorePlot-CocoaTouch.a file.
If I load the CorePlot-CocoaTouch project independently and attempt building,
the file builds without problems. What do I need to do to make Core Plot
compile as a dependent project instead of static library?
Original comment by wesle...@gmail.com
on 21 Sep 2012 at 6:52
Upon further poking, I was able to get it to compile after setting "Build
Active Architecture Only" to "No" on CorePlot-CocoaTouch project.
Original comment by wesle...@gmail.com
on 21 Sep 2012 at 8:12
I want to second the suggestion to compile the universal static library against
armv6 armv7 and armv7s - My library would compile if I just did it against v7
and v7s, but the iOS app I'm using it in would crash on launch after I archived
it.
Seems a little like voodoo since Xcode 4.5 doesn't support compiling against
armv6 according to the docs, but I can't argue with the results.
Original comment by loudguit...@gmail.com
on 21 Sep 2012 at 12:08
Hey guys,
can somebody tell me how to build the source form the repository for iOS?
And is there an ETA for the fix?
Regards,
Tobi
Original comment by tobiesch...@gmail.com
on 21 Sep 2012 at 2:43
From comment #1 above: "If you need a static library, build the "Universal
Library" target."
I don't think it's possible to compile for both armv6 and armv7s at the same
time. You can compile for armv6 if you install an earlier SDK (e.g., iOS 5.1)
but that prevents using armv7s.
Core Plot defaults to the "Latest iOS" base SDK and the standard processor
architectures for widest compatibility. If you need other settings, you can
modify the Core Plot project and build your own library as described above.
Original comment by eskr...@mac.com
on 21 Sep 2012 at 11:57
I just changed the only_active_arch to NO,then it work fine....
Original comment by ren.fort...@gmail.com
on 23 Sep 2012 at 4:29
[deleted comment]
If you are using the static library all you need to do is change the setting
"Build Active Architecture Only" to "Yes" in your project.
Original comment by JSWils...@gmail.com
on 26 Sep 2012 at 8:48
[deleted comment]
[deleted comment]
[deleted comment]
[deleted comment]
What is the crash? Where is it happening?
Original comment by eskr...@mac.com
on 9 Oct 2012 at 1:02
[deleted comment]
[deleted comment]
Issue 471 has been merged into this issue.
Original comment by eskr...@mac.com
on 4 Nov 2012 at 1:54
Core Plot 1.1 is out. The static library included with the release includes the
armv7s architecture.
Original comment by eskr...@mac.com
on 11 Nov 2012 at 11:00
Original issue reported on code.google.com by
E...@lombardodev.com
on 18 Sep 2012 at 7:48