Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/119.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
突然:iOS中的核心绘图:Apple LLVM编译器4,1错误_Ios_Xcode4_Compiler Errors_Core Plot_Linker Errors - Fatal编程技术网

突然:iOS中的核心绘图:Apple LLVM编译器4,1错误

突然:iOS中的核心绘图:Apple LLVM编译器4,1错误,ios,xcode4,compiler-errors,core-plot,linker-errors,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/us

我不知道发生了什么;突然我开始犯这个错误。我试图重新移动和添加核心情节,但似乎没有改变任何事情。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,但当我遇到这个错误时,它仍然在后台安装一些库,一旦这些过程完成,错误就消失了

升级我的xcode版本后,我遇到了这个问题。我发现,虽然安装了xcode,但当我遇到这个错误时,它仍然在后台安装一些库,一旦这些过程完成,错误就消失了

复制品:不是复制品。解决方案不起作用。您真的使用最新的CorePlot版本吗?看起来您使用的是1.0版。最新版本没有版本号,无法作为预打包下载。相反,你需要用hg检索它。哦,谢谢。我试着运行hg代码,但它似乎什么都没做——它应该坐一会儿,然后看起来什么都没做吗?不,它不应该坐着等待。我不是
hg
专家,但我认为命令是
hg克隆https://code.google.com/p/core-plot/
。你试过这个吗?或者您正在使用另一个客户端?副本:不是副本。解决方案不起作用。您真的使用最新的CorePlot版本吗?看起来您使用的是1.0版。最新版本没有版本号,无法作为预打包下载。相反,你需要用hg检索它。哦,谢谢。我试着运行hg代码,但它似乎什么都没做——它应该坐一会儿,然后看起来什么都没做吗?不,它不应该坐着等待。我不是
hg
专家,但我认为命令是
hg克隆https://code.google.com/p/core-plot/
。你试过这个吗?或者你在使用另一个客户?我不是这样的。我认为这可能更多的是因为没有真正使用最新的核心情节版本。我不是这样。我认为这可能更多的是因为没有真正使用最新的核心情节版本。