ios - 突然: Core Plot in iOS: Apple LLVM compiler 4,1 Error

标签 ios xcode4 compiler-errors core-plot linker-errors

我不知道发生了什么事。突然我开始收到这个错误。我尝试删除并重新添加Core Plot,但似乎没有任何改变。核心图本来没有给我任何错误,但是现在我得到以下信息:

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

我已经在stackoverflow上看到了类似的问题,但是a)他们没有帮助我,b)这是XCode的较新版本(4.5.1),所以也许这是问题的一部分吗?

谢谢你的帮助。

编辑:在此期间,我切换到静态库安装,这似乎工作。我真的不知道一个相对于另一个的区别/优势,除了也许更新依赖项目的安装更容易? (对不起,我的傻瓜)
更多详情:
CompileC /Users/username/Library/Developer/Xcode/DerivedData/appname-cbzeyejhjnktceepdvakngcfqjhy/Build/Intermediates/CorePlot-CocoaTouch.build/Debug-iphonesimulator/CorePlot-CocoaTouch.build/Objects-normal/i386/CPTPlot.o Source/CPTPlot.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/username/Developer/appname/CorePlot_1.0/Source/framework
    setenv LANG en_US.US-ASCII
    setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch i386 -fmessage-length=0 -std=c99 -Wno-trigraphs -fpascal-strings -O0 -Werror -Wmissing-field-initializers -Wmissing-prototypes -Wreturn-type -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wformat -Wmissing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wsign-compare -Wno-shorten-64-to-32 -Wpointer-sign -Wnewline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk -fexceptions -fasm-blocks -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion -fobjc-abi-version=2 -fobjc-legacy-dispatch "-DIBOutlet=__attribute__((iboutlet))" "-DIBOutletCollection(ClassName)=__attribute__((iboutletcollection(ClassName)))" "-DIBAction=void)__attribute__((ibaction)" -mios-simulator-version-min=3.1.3 -iquote /Users/username/Library/Developer/Xcode/DerivedData/appname-cbzeyejhjnktceepdvakngcfqjhy/Build/Intermediates/CorePlot-CocoaTouch.build/Debug-iphonesimulator/CorePlot-CocoaTouch.build/CorePlot-CocoaTouch-generated-files.hmap -I/Users/username/Library/Developer/Xcode/DerivedData/appname-cbzeyejhjnktceepdvakngcfqjhy/Build/Intermediates/CorePlot-CocoaTouch.build/Debug-iphonesimulator/CorePlot-CocoaTouch.build/CorePlot-CocoaTouch-own-target-headers.hmap -I/Users/username/Library/Developer/Xcode/DerivedData/appname-cbzeyejhjnktceepdvakngcfqjhy/Build/Intermediates/CorePlot-CocoaTouch.build/Debug-iphonesimulator/CorePlot-CocoaTouch.build/CorePlot-CocoaTouch-all-target-headers.hmap -iquote /Users/username/Library/Developer/Xcode/DerivedData/appname-cbzeyejhjnktceepdvakngcfqjhy/Build/Intermediates/CorePlot-CocoaTouch.build/Debug-iphonesimulator/CorePlot-CocoaTouch.build/CorePlot-CocoaTouch-project-headers.hmap -I/Users/username/Library/Developer/Xcode/DerivedData/appname-cbzeyejhjnktceepdvakngcfqjhy/Build/Products/Debug-iphonesimulator/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/username/Library/Developer/Xcode/DerivedData/appname-cbzeyejhjnktceepdvakngcfqjhy/Build/Intermediates/CorePlot-CocoaTouch.build/Debug-iphonesimulator/CorePlot-CocoaTouch.build/DerivedSources/i386 -I/Users/username/Library/Developer/Xcode/DerivedData/appname-cbzeyejhjnktceepdvakngcfqjhy/Build/Intermediates/CorePlot-CocoaTouch.build/Debug-iphonesimulator/CorePlot-CocoaTouch.build/DerivedSources -F/Users/username/Library/Developer/Xcode/DerivedData/appname-cbzeyejhjnktceepdvakngcfqjhy/Build/Products/Debug-iphonesimulator -lstdc++ -falign-loops=16 -MMD -MT dependencies -MF /Users/username/Library/Developer/Xcode/DerivedData/appname-cbzeyejhjnktceepdvakngcfqjhy/Build/Intermediates/CorePlot-CocoaTouch.build/Debug-iphonesimulator/CorePlot-CocoaTouch.build/Objects-normal/i386/CPTPlot.d --serialize-diagnostics /Users/username/Library/Developer/Xcode/DerivedData/appname-cbzeyejhjnktceepdvakngcfqjhy/Build/Intermediates/CorePlot-CocoaTouch.build/Debug-iphonesimulator/CorePlot-CocoaTouch.build/Objects-normal/i386/CPTPlot.dia -c /Users/username/Developer/appname/CorePlot_1.0/Source/framework/Source/CPTPlot.m -o /Users/username/Library/Developer/Xcode/DerivedData/appname-cbzeyejhjnktceepdvakngcfqjhy/Build/Intermediates/CorePlot-CocoaTouch.build/Debug-iphonesimulator/CorePlot-CocoaTouch.build/Objects-normal/i386/CPTPlot.o

最佳答案

升级我的xcode版本后,我只是遇到了这个问题。我发现尽管安装了xcode,但在遇到此错误时仍在后台安装一些库,一旦这些进程完成,该错误就会消失。

关于ios - 突然: Core Plot in iOS: Apple LLVM compiler 4,1 Error,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13005188/

相关文章:

c++ - 重载类方法的歧义调用

c++ - 使用不同文件声明函数/vector 的 C++ 中的多重定义错误

ios - 如何获取适合特定矩形的 NSAttributedString 子字符串?

xcode4 - 将新的主菜单对象添加到 Xcode 4 中的项目

ios - 取消打印事件后应用程序崩溃

ios - Xcode 4 图标问题!

ios - 具有多个目标的 XCode 项目的启动和图标图像文件的位置

c - 我现在应该担心 gcc -pedantic 选项吗?

ios - didReceiveRemoteNotification 函数不使用 FCM 通知服务器调用

ios - Swift - 为什么 AFHTTPSessionManager 需要 init(coder)?