‘Xcode Unable to execute command: Segmentation fault: 11‘

overview,

 'Xcode Unable to execute command: Segmentation fault: 11' 

solution,

添加: Build Setting -> Other Linker Flags -> -ld64

extension, what is -ld64,

In Xcode's Build Setting, Other Linker Flags are used to pass additional command line parameters to the linker. where -ld64is a specific linker flag.

-ld64Is used to specify the linker to use ld64 instead of the default linker. ld64 is a Mach-O file format linker developed by Apple, used to link executable files and dynamic libraries on macOS and iOS systems.

Add -ld64to Other Linker Flags to tell Xcode to use the ld64 linker to build the project. This is typically used for specific needs, such as advanced functionality or specific optimizations that require the use of ld64.

Note that in most cases there is no need to manually add -ld64to Other Linker Flags as Xcode will select the correct linker by default. You only need to add this linker flag if you need to use ld64 in specific situations or if you need to make custom configurations.

Source code > Preprocessor > Compiler > Assembler > Machine code > Linker > Executable file

thanks for watching,

Thank you even more for applying what you have learned.

Guess you like

Origin blog.csdn.net/siwen1990/article/details/133024992