Xcode16 beta4 build error-"_mh_execute_header"

Upgrade Xcode16 beta4 compiler error, error message as follows

Undefined symbols for architecture arm64:

"__mh_execute_header", referenced from:

 -exported_symbol[s_list] command line option

ld: symbol(s) not found for architecture arm64

clang: error: linker command failed with exit code 1 (use -v to see invocation)

But the interesting thing is that I used Debug mode and it compiled successfully.This error is reported using the Release mode.

I searched for the keyword "_mh_execute_header" in the project and found nothing useful.

Now I am very confused how to solve this error.

Answered by jiehaowu in 798152022

这边是找到了配置项Exported Symbols File,里面设置了“_mh_execute_header”,去掉之后就解决了;

朋友,我现在也遇到了这个问题,而且处于一直解决不了的地步,如果这个问题有结论的时候希望同步下我,万分感谢

developer.apple.com/forums/thread/760227

Accepted Answer

这边是找到了配置项Exported Symbols File,里面设置了“_mh_execute_header”,去掉之后就解决了;

Xcode16 beta4 build error-"_mh_execute_header"
 
 
Q