python程序封装,dist下没有exe文件

工作需要封装一个PYTHON程序,电脑是mac book,pyinstaller安装显示成功:

进入程序所在目录运行:
pyinstaller -F tree.py

显示:

File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/PyInstaller/utils/osx.py", line 298, in convert_binary_to_thin_arch
raise SystemError(f"lipo command ({cmd_args}) failed with error code {p.returncode}!\noutput: {p.stdout}")
SystemError: lipo command (['lipo', '-thin', 'arm64', '/Users/txqj/Library/Application Support/pyinstaller/bincache00_py311_64bit/arm64/adhoc/no-entitlements/lib-dynload/math.cpython-311-darwin.so', '-output', '/Users/txqj/Library/Application Support/pyinstaller/bincache00_py311_64bit/arm64/adhoc/no-entitlements/lib-dynload/math.cpython-311-darwin.so']) failed with error code 1!
output: xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

然后进入dist文档也没发现.exe文件

初学,请大家帮忙,看是什么问题并如何解决?非常感谢

对比下这个成功的实例,看下哪一步有不同:Python 程序封装-打包成exe程序,链接:https://blog.csdn.net/NBDwo/article/details/115429859

可以参考下文章:https://www.jianshu.com/p/560895b1334b
mac上面打包命令和windows不同。