9

When opening in Xcode 12.5 a project created with Xcode13, I get this error message:

"The project at '/Users/[...].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."

how am I supposed to adjust the project?

Screenshot of error

multitudes
  • 2,898
  • 2
  • 22
  • 29

3 Answers3

16

It is easy to change the project format in the Xcode file inspector:

screenshot of the file inspector

But this is not the whole picture.

Another issue is the missing plist file in Xcode13 created projects.

To make the new project compatible in Xcode 12 you need to add a plist file. The best and quicker solution is to make a new project in Xcode 12 and copy and drop the plist file in the new Xcode13 project. Then make add the necessary changes for your project.

You will need to stop Xcode 13 to generate new plist files when you make changes. So return to the project in Xcode13 and set generate plist file to no under packaging in Build Settings:

enter image description here

I found very helpful information about this in a very good article on useyourloaf.com

multitudes
  • 2,898
  • 2
  • 22
  • 29
  • Where you set the project format? I've been looking for it for an hour – Farras Doko Oct 11 '21 at 04:22
  • 1
    Took me a moment to find it too. First you select your project on the left then you open the pane on the right and the Project Document will be there. – multitudes Oct 11 '21 at 14:43
  • 1
    I found it, it turned out the project I cloned have some error on it. It is built after the errors are gone. – Farras Doko Oct 18 '21 at 03:24
  • It might also be good to remember if it is a workspace to install pods again after updating the format. – Alaskalaya Nov 01 '21 at 05:15
  • what if I don't have the latest version to open the project? I tried directly modifying pbxproj file (under show package) and setting but still it is giving the same error. I have downloaded the project which is created by XCode 14 while I do have Xcode 13.2 only on my machine. – Manish Nahar Nov 13 '22 at 07:46
  • @ManishNahar Have you resolved it? I followed [this](https://stackoverflow.com/a/70047054/4933696) to make it working – Anurag Sharma Nov 15 '22 at 05:22
  • @AnuragSharma Yes I was able to resolve it by changing the object version using [this](https://stackoverflow.com/a/69688492/1606492) – Manish Nahar Nov 15 '22 at 07:49
4

Apart from what the other answers suggested, I also had to manually change

objectVersion = 53;

to

objectVersion = 50;

in the *.xcodeproj/project.pbxproj file in order to be able to open a Swift command-line project created with Xcode 14.2 with Xcode 11.3.1.

I also changed

LastSwiftUpdateCheck = 1420;
LastUpgradeCheck = 1420;

CreatedOnToolsVersion = 14.2;

CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";

to

LastSwiftUpdateCheck = 1130;
LastUpgradeCheck = 1130;

CreatedOnToolsVersion = 11.3.1;

CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
CLANG_CXX_LIBRARY = "libc++";

and now it compiles fine but that didn't affect whether the actual project could be opened with Xcode 11.3.1.

YourMJK
  • 1,429
  • 1
  • 11
  • 22
0

I solved it selecting the target in the project settings, opening the identity and type window and changing to Xcode 12.0. Then open the project workspace again and done!

Check also the command line tools you are using in Xcode preferences --> locations

enter image description here enter image description here