CocoaPods / Xcodeproj

Create and modify Xcode projects from Ruby.
http://rubygems.org/gems/xcodeproj
MIT License
2.35k stars 455 forks source link

xcodeproj fails to initialize object from unknown ISA: PBXFileSystemSynchronizedRootGroup #966

Open xinsight opened 1 week ago

xinsight commented 1 week ago

Xcode 16, I added a folder "Fonts" to my project and xcodeproj now fails with the following:

/opt/homebrew/lib/ruby/gems/3.0.0/gems/xcodeproj-1.25.0/lib/xcodeproj/project/object.rb:359:in rescue in object_with_uuid':PBXGroupattempted to initialize an object with unknown ISAPBXFileSystemSynchronizedRootGroupfrom attributes:{"isa"=>"PBXFileSystemSynchronizedRootGroup", "explicitFileTypes"=>{}, "explicitFolders"=>[], "path"=>"Fonts", "sourceTree"=>""}` (RuntimeError)

If this ISA was generated by Xcode please file an issue: https://github.com/CocoaPods/Xcodeproj/issues/new

xinsight commented 1 week ago

Workaround: Use "New Group" instead of "New Folder".

Flexible-Universe commented 1 week ago

When I use 'New Group,' it works. Every newly created project in Xcode 16 now always creates folders. Is there already a timeline for when it will also work with folders?

xinsight commented 1 week ago

Looks like all these issues are the same Xcode 16 issue: https://github.com/CocoaPods/Xcodeproj/issues/968 https://github.com/CocoaPods/Xcodeproj/issues/967 https://github.com/CocoaPods/Xcodeproj/issues/965 https://github.com/CocoaPods/Xcodeproj/issues/963

950

951

AIFlowML commented 5 days ago

Having same issues and more

[Xcodeproj] Xcode project version (77) is higher than the latest supported by xcodeproj (63)

xinsight commented 5 days ago

Correct, when i added a folder, the xcodeproj version gets bumped from 54 -> 70. And when i remove the folder and use a group, it gets automatically downgraded.

--- a/XXX.xcodeproj/project.pbxproj
+++ b/XXX.xcodeproj/project.pbxproj
@@ -3,7 +3,7 @@
    archiveVersion = 1;
    classes = {
    };
-   objectVersion = 70;
+   objectVersion = 54;
    objects = {

 /* Begin PBXAggregateTarget section */
Varun-Sethi-Dev commented 4 days ago

Same issue any fixes around it

sapnabansaltrinet commented 2 days ago

I am also facing the same issue with creation of new project in Xcode16