CorePlot failed to build in Xcode 4.4

I use CorePlot 0.3, everything was fine until I upgraded Xcode to 4.4 (2 days ago), CorePlot failed to build, and I got some errors with the message:

clang: error: -Z-reserved-lib-stdC ++: the input 'linker' is not used when the '-c' command is present /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ clang failed with exit code 1

I tried to search, and it looks like many people have the same problem, and I also found some suggestions and a solution to fix this, I applied to my version of CorePlot, but no luck, the problem occurs in some classes like: CPTPlot.m, CPTScatterPlot.m, CPTBarPlot.m, CPTPlotSymbol.m.

I have 2 days for this problem, but I still can not solve it, please help me, thanks in advance.

enter image description here

+6
source share
2 answers

The last kernel block will fix your problems with Xcode 4.4 - https://github.com/djw/core-plot

However, I have not received these recent changes in order to work properly in both Xcode 4.4 and Xcode 4.3, so if you work in teams, there are different versions, be careful.

+6
source

I managed to solve this problem by switching the selected compiler in the build option to "LLVM GCC 4.2". The Validate Settings operation seems to be what the compiler switches to "Apple LLVM compiler 4.0".

+3
source

Source: https://habr.com/ru/post/921914/


All Articles