iOS 项目在 Apple Mach-O 链接器错误中给出错误 "-bundle_loader can only be used with -bundle"

标签 ios objective-c linker-errors

我正在使用 xcode 6.0 和部署目标 7.0。
它给出了错误链接器错误。请给我解决方案。我厌倦了。
提前致谢

clang 错误文本:
"-bundle_loader can only be used with -bundle"
Screenshot of linker errors

最佳答案

如果您正在构建目标测试,那么 this answer应该可以帮助你。

go to the Test Target build settings, and then search for "Mach-O" or "Linker", and you should see it as "Mach-O Linker", Mach-O Linker flag in the test target was set to "executable" instead of "bundle".



从 Xcode 6 开始,链接器标志称为 Mach-O Type

关于iOS 项目在 Apple Mach-O 链接器错误中给出错误 "-bundle_loader can only be used with -bundle",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29649573/

相关文章:

objective-c - Mac OS X 的说话头库

ios - 以编程方式滑动 UIScrollView

ios - CollectionViewCell 中的约束动画问题

c - 对 pthread_create 和 pthread_join 的 undefined reference

ios - 将 SpriteNode 与碰撞表面对齐 SpriteKit Swift3

ios - 如何从 UIImageView 中删除边框/阴影?

c++ - Visual Studio 2012 中的运行时不匹配

c - 如何解决 pgcc&openacc linker error "__pgi_uacc_multicorestart", "__pgi_uacc_multicoreend"

ios - 如何自动检查 ipa 的嵌入.mobileprovision 中的字段?

ios - 如何从父ViewController中的ContainerView获取值?