打開工程文件的時候遇到過以下錯誤:
The project at '/Users/yy/Desktop/TestModule/Test.xcodeproj' cannot be opened because it is in a future Xcode project file format. Adjust the project format using a compatible version of Xcode to allow it to be opened by this version of Xcode.

image.png
根據(jù)提示,發(fā)現(xiàn)是電腦上安裝了多個版本的Xcode,用高版本(我用的Xcode13.0)創(chuàng)建項目的項目,用低版本(我用的Xcode12.5)打開的時候就會報此錯誤,舊版本需要修改格式進行兼容后才能打開。具體操作如下:
1,找到 你的項目名.xcodeproj ,使用文本編輯器打開;
2,修改文件頂部的 objecVersion 字段為你的 Xcode 兼容的版本,將版本號改小一點,保存;
3,重新打開工程,大功告成。