尝试使用clean命令构建或归档会导致:
Could not delete some/build/path/here because it was not created by the build system and it is not a subfolder of derived data.
运行一样没有干净,工作正常。同样,在任何旧的xcode上运行相同的代码都将成功完成。
运行于macOS大sur, 11.6 Xcode Version 13.0 (13A233)
你可以试着在product选项下选择Destination as iPhone,然后选择product ->存档而不是命令行