xcode Apple Mach-O 链接器错误:命令 /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-g++-4.2 失败,退出代码为 1

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/7510273/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 04:07:08  来源:igfitidea点击:

Apple Mach-O Linker Error: Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-g++-4.2 failed with exit code 1

xcodecompiler-warnings

提问by Zach

I've searched and searched and am having trouble compiling one of the Hyman Audio iPhone projects. I modernized the project and keep getting this when I compile. Can't figure it out.

我搜索了又搜索,但在编译 Hyman Audio iPhone 项目之一时遇到了问题。我对项目进行了现代化改造,并在编译时不断得到它。想不通

Ld /Users/zacharywilliams/Library/Developer/Xcode/DerivedData/iPhoneNet-bjquhpgcjgjaitgvrbiuaobtwtfy/Build/Products/Debug-iphoneos/NetHymanSlave.app/NetHymanSlave normal armv7
cd /Users/zacharywilliams/trunk/Hymanmp/macosx/iphone
setenv IPHONEOS_DEPLOYMENT_TARGET 4.3
setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-g++-4.2 -arch armv7 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk -L/Users/zacharywilliams/Library/Developer/Xcode/DerivedData/iPhoneNet-bjquhpgcjgjaitgvrbiuaobtwtfy/Build/Products/Debug-iphoneos -L/Users/zacharywilliams/trunk/Hymanmp/macosx/iphone/build/Debug-iphonesimulator -F/Users/zacharywilliams/Library/Developer/Xcode/DerivedData/iPhoneNet-bjquhpgcjgjaitgvrbiuaobtwtfy/Build/Products/Debug-iphoneos -filelist /Users/zacharywilliams/Library/Developer/Xcode/DerivedData/iPhoneNet-bjquhpgcjgjaitgvrbiuaobtwtfy/Build/Intermediates/iPhoneNet.build/Debug-iphoneos/iPhoneNetSlave.build/Objects-normal/armv7/NetHymanSlave.LinkFileList -dead_strip libcelt.a -miphoneos-version-min=4.3 -framework Foundation -framework UIKit -framework CoreGraphics -framework AudioToolbox -o /Users/zacharywilliams/Library/Developer/Xcode/DerivedData/iPhoneNet-bjquhpgcjgjaitgvrbiuaobtwtfy/Build/Products/Debug-iphoneos/NetHymanSlave.app/NetHymanSlave

Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-g++-4.2 failed with exit code 1

Thanks for any help!

谢谢你的帮助!

Zach

扎克

采纳答案by Raptor

UPDATE: Hey, note the line in your build log:

更新:嘿,请注意构建日志中的这一行:

Couldn't open shared capabilities memory GSCapabilities (No such file or directory). 

Here is the solution: What is "Couldn't open shared capabilities memory GSCapabilities (No such file or directory)"

这是解决方案:什么是“无法打开共享功能内存 GSCapabilities(没有此类文件或目录)”

回答by Flea

In my case, I was accidentally importing a .mfile.

就我而言,我不小心导入了一个.m文件。