Xcode 工程文件打不开,cannot be opened because it is in a future Xcode project file format

打开工程文件的时候遇到过以下错误:

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

根据提示,发现是电脑上安装了多个版本的Xcode,用高版本(我用的Xcode13.0)创建项目的项目,用低版本(我用的Xcode12.5)打开的时候就会报此错误,旧版本需要修改格式进行兼容后才能打开。具体操作如下:
1,找到 你的项目名.xcodeproj ,使用文本编辑器打开;
2,修改文件顶部的 objecVersion 字段为你的 Xcode 兼容的版本,将版本号改小一点,保存;
3,重新打开工程,大功告成。

你可能感兴趣的:(Xcode 工程文件打不开,cannot be opened because it is in a future Xcode project file format)