在升级了xcode12以及macOS big sur之后发现老工程无法运行,提示The file “xxx.app” could not be opened because you don't have permission to view it,You don’t have permission. To view or change permissions, select the item in the Finder and choose File > Get info.
如图:
然后打开资源库DeriverData发现编译后并没有生成Unix可执行文件。
解决办法:
Targets -> Build Settings滑到最下面,在User-Defined的VALID_ARCHS加上x86_64,如图:
然后clean重新编译即可。希望对你有用。