Ios Xcode Apple Mach-O链接器错误1

Ios Xcode Apple Mach-O链接器错误1,ios,iphone,xcode,swift,mach-o,Ios,Iphone,Xcode,Swift,Mach O,每当我尝试构建应用程序时,重命名我的项目后,我会得到一个 苹果Mach-O链接器错误 下面是Xcode本身的输出 Ld /Users/joshevans/Library/Developer/Xcode/DerivedData/Broadcast!-gbvxmzbukuqqgxcmlipegtnzosze/Build/Products/Debug-iphonesimulator/Broadcast!Tests.xctest/Broadcast!Tests normal x86_64 cd

每当我尝试构建应用程序时,重命名我的项目后,我会得到一个 苹果Mach-O链接器错误 下面是Xcode本身的输出

Ld /Users/joshevans/Library/Developer/Xcode/DerivedData/Broadcast!-gbvxmzbukuqqgxcmlipegtnzosze/Build/Products/Debug-iphonesimulator/Broadcast!Tests.xctest/Broadcast!Tests normal x86_64
    cd "/Users/joshevans/Desktop/sn app/SwifferApp"
    export IPHONEOS_DEPLOYMENT_TARGET=8.0
    export 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
-arch x86_64 -bundle -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk
-L/Users/joshevans/Library/Developer/Xcode/DerivedData/Broadcast!-gbvxmzbukuqqgxcmlipegtnzosze/Build/Products/Debug-iphonesimulator
-F/Users/joshevans/Library/Developer/Xcode/DerivedData/Broadcast!-gbvxmzbukuqqgxcmlipegtnzosze/Build/Products/Debug-iphonesimulator
-F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk/Developer/Library/Frameworks
-F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks
-F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk/Developer/Library/Frameworks
-filelist /Users/joshevans/Library/Developer/Xcode/DerivedData/Broadcast!-gbvxmzbukuqqgxcmlipegtnzosze/Build/Intermediates/Broadcast!.build/Debug-iphonesimulator/Broadcast!Tests.build/Objects-normal/x86_64/Broadcast!Tests.LinkFileList
-Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -bundle_loader /Users/joshevans/Library/Developer/Xcode/DerivedData/Broadcast!-gbvxmzbukuqqgxcmlipegtnzosze/Build/Products/Debug-iphonesimulator/SwifferApp.app/SwifferApp
-Xlinker -objc_abi_version -Xlinker 2 -framework XCTest -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator
-Xlinker -add_ast_path -Xlinker /Users/joshevans/Library/Developer/Xcode/DerivedData/Broadcast!-gbvxmzbukuqqgxcmlipegtnzosze/Build/Intermediates/Broadcast!.build/Debug-iphonesimulator/Broadcast!Tests.build/Objects-normal/x86_64/Broadcast_Tests.swiftmodule
-mios-simulator-version-min=8.0 -Xlinker -dependency_info -Xlinker /Users/joshevans/Library/Developer/Xcode/DerivedData/Broadcast!-gbvxmzbukuqqgxcmlipegtnzosze/Build/Intermediates/Broadcast!.build/Debug-iphonesimulator/Broadcast!Tests.build/Objects-normal/x86_64/Broadcast!Tests_dependency_info.dat
-o /Users/joshevans/Library/Developer/Xcode/DerivedData/Broadcast!-gbvxmzbukuqqgxcmlipegtnzosze/Build/Products/Debug-iphonesimulator/Broadcast!Tests.xctest/Broadcast!Tests ld: file not found: /Users/joshevans/Library/Developer/Xcode/DerivedData/Broadcast!-gbvxmzbukuqqgxcmlipegtnzosze/Build/Products/Debug-iphonesimulator/SwifferApp.app/SwifferApp clang: error: linker command failed with exit code 1 (use -v to see invocation)
谢谢你的帮助,因为我是Xcode和swift语言的新手。
Josh

在尝试实施AdMob广告时,我偶尔会遇到苹果Mach-O链接器错误1。我处理它的方法是首先进入我的应用程序的构建设置,定位“库搜索路径”,并清除所有搜索路径。然后我将AdMob文件夹重新添加到项目中,错误消失了


很明显你的情况有点不同。就我个人而言,我会将该文件重新命名为以前的名称。如果错误仍然存在,请清除库搜索路径。还是个错误?当我不断收到错误时,我所做的是用我想要的名称创建一个新的Xcode项目,然后将所有文件复制到新项目中。这是一个简单的过程,特别是如果你是初学者,它可能不会花太长时间。我希望这有帮助

重命名后,只需转到您的项目文件(在那里您将看到选项卡:常规、功能、信息等)

并在左侧列表中选择您的应用程序测试

你可能会看到这张照片


将主机应用程序设置为项目名称,就这样。

Clang建议使用-v查看调用。你试过了吗?我是Xcode新手,最好的方法是什么?你的项目名称是否包含感叹号?是的,产品名称是广播的!bundle标识符是com.wasd.broadcast-这可能是导致此问题的原因吗?我再次重命名了该项目,遗漏了感叹号,但仍然没有成功,并且在构建时出现了相同的错误谢谢!我不知道它是怎么进入这种状态的。救命!改名后,我有这个和改变按照您的指示完美地工作!非常感谢你。我的名字在xcode 6上被设置为自定义,并改为新名字-完美。我们的天父,愿你的名字神圣。你的国降临,你的旨意在地上成就,如同在天上一样。感谢这位美国总统在这个问题上的出色回答。阿门。