Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
xinsight opened this issue Sep 26, 2024 · 10 comments

Comments

@xinsight
Copy link

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
Copy link
Author

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

@Flexible-Universe
Copy link

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
Copy link
Author

xinsight commented Sep 27, 2024

Looks like all these issues are the same Xcode 16 issue:
#968
#967
#965
#963
#950
#951

@AIFlowML
Copy link

Having same issues and more

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

@xinsight
Copy link
Author

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
Copy link

Same issue any fixes around it

@sapnabansaltrinet
Copy link

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

@ninacoder-info
Copy link

@sapnabansaltrinet i just convert the OneSignalNotificationServiceExtension to Group and it working fine, but screw OneSignal its always the one cause trouble, really tired everytime using it

@amorde
Copy link
Member

amorde commented Oct 27, 2024

This is fixed by #985 and shipped in 1.26.0

@amorde amorde closed this as completed Oct 27, 2024
@thisisadithk
Copy link

@sapnabansaltrinet i just convert the OneSignalNotificationServiceExtension to Group and it working fine, but screw OneSignal its always the one cause trouble, really tired everytime using it

This worked for me. Went to Xcode, right clicked on the OneSignalNoificationSeviceExtension folder (which would be in blue), clicked on the "Convert to Group" option, the color changes to grey. Ran pod install in the iOS folder and the build error was no longer coming. Successfully installed pods.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants