找到你要的答案

Q:Apple Mach-O Linker Error while loading iOS Application

Q:苹果的iOS应用程序在加载Mach-O链接错误

I am getting this error by trying to launch my iOS Application.

ld: file not found: /Users/tomkortney/Library/Developer/Xcode/DerivedData/Hello_&_World_Application-aiizoqrzgnuqfuecelrkyaxgisik/Build/Products/Debug-iphonesimulator/Hello & World Application.app/Hello & World Application
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I have red bunch of similar Stack Overflow questions similar to mine, but none of those helped me to solve this issue.

I guess that there is a problem with "&" symbol.

我试图启动我的iOS应用得到这个错误。

ld: file not found: /Users/tomkortney/Library/Developer/Xcode/DerivedData/Hello_&_World_Application-aiizoqrzgnuqfuecelrkyaxgisik/Build/Products/Debug-iphonesimulator/Hello & World Application.app/Hello & World Application
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我有一堆类似的堆栈溢出问题类似我的,但没有帮助我解决这个问题。

我猜有一个问题,“和”符号。

answer1: 回答1:

Generally overwriting project may cause this prolems.Try this method.

-UPDATE - Clang error - Mach-O Linker error

In some case error log window displaying .xctest error, to fix it

-> Select your project

-> Beside this(just before General tab) select your projectTest file from dropdown

-> There is one option (like ProjNameTests)

-> In Host Application, select your project from dropdown only if it show custom

Happy Coding :)

一般覆盖项目可能会导致这个问题。试试这个方法。

-更新- Clang错误Mach-O链接错误

在某些情况下的错误日志窗口显示。xctest误差,解决它

- >;选择你的项目

- >;除此之外(前tab)选择您的项目检测文件从下拉

- >;有一个选项(如projnametests)

- >;在宿主应用程序,只有当它显示自定义选择您的项目从下拉

快乐编码:)

answer2: 回答2:

Try to remove reference of your third party from Xcode and add it again. Clean the code by using: Xcode-->Product+(Press option key)-->Clean Build Folder

Make build it again.

Hope it helps!

Try to remove reference of your third party from Xcode and add it again. Clean the code by using: Xcode-->Product+(Press option key)-->Clean Build Folder

再建造它。

希望它帮助!

ios  linker-error