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

slather coverage fails because of PBXGroup #573

Closed
trichard-jabra opened this issue Nov 4, 2024 · 2 comments
Closed

slather coverage fails because of PBXGroup #573

trichard-jabra opened this issue Nov 4, 2024 · 2 comments

Comments

@trichard-jabra
Copy link

trichard-jabra commented Nov 4, 2024

I have a floder in Xcode (16.1) that needs to remain a folder but I get this error.
Changing it to a group fixes the error but is not a solution

I am not using Cocoapods which is why I am reporting this here

Generating script.
Script contents:
slather coverage -x --output-directory /Users/vm1/jplus-agent/_work/1/coverage/
========================== Starting Command Output ===========================
/bin/bash --noprofile --norc /Users/vm1/jplus-agent/_work/_temp/ffcfb277-30c5-41c2-844e-6228c9ec905e.sh
/Users/vm1/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/xcodeproj-1.25.0/lib/xcodeproj/project/object.rb:359:in `rescue in object_with_uuid': `PBXGroup` attempted to initialize an object with unknown ISA `PBXFileSystemSynchronizedRootGroup` from attributes: `{"isa"=>"PBXFileSystemSynchronizedRootGroup", "explicitFileTypes"=>{}, "explicitFolders"=>[], "path"=>"src", "sourceTree"=>"<group>"}` (RuntimeError)
If this ISA was generated by Xcode please file an issue: https://github.com/CocoaPods/Xcodeproj/issues/new
	from /Users/vm1/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/xcodeproj-1.25.0/lib/xcodeproj/project/object.rb:349:in `object_with_uuid'
	from /Users/vm1/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/xcodeproj-1.25.0/lib/xcodeproj/project/object.rb:300:in `block (2 levels) in configure_with_plist'
	from /Users/vm1/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/xcodeproj-1.25.0/lib/xcodeproj/project/object.rb:299:in `each'
	from /Users/vm1/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/xcodeproj-1.25.0/lib/xcodeproj/project/object.rb:299:in `block in configure_with_plist'
	from /Users/vm1/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/xcodeproj-1.25.0/lib/xcodeproj/project/object.rb:296:in `each'
	from /Users/vm1/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/xcodeproj-1.25.0/lib/xcodeproj/project/object.rb:296:in `configure_with_plist'
	from /Users/vm1/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/xcodeproj-1.25.0/lib/xcodeproj/project.rb:272:in `new_from_plist'
	from /Users/vm1/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/xcodeproj-1.25.0/lib/xcodeproj/project/object.rb:350:in `object_with_uuid'
	from /Users/vm1/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/xcodeproj-1.25.0/lib/xcodeproj/project/object.rb:290:in `block in configure_with_plist'
	from /Users/vm1/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/xcodeproj-1.25.0/lib/xcodeproj/project/object.rb:287:in `each'
	from /Users/vm1/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/xcodeproj-1.25.0/lib/xcodeproj/project/object.rb:287:in `configure_with_plist'
	from /Users/vm1/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/xcodeproj-1.25.0/lib/xcodeproj/project.rb:272:in `new_from_plist'
	from /Users/vm1/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/xcodeproj-1.25.0/lib/xcodeproj/project.rb:213:in `initialize_from_file'
	from /Users/vm1/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/xcodeproj-1.25.0/lib/xcodeproj/project.rb:113:in `open'
	from /Users/vm1/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/slather-2.8.4/lib/slather/project.rb:53:in `open'
	from /Users/vm1/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/slather-2.8.4/lib/slather/command/coverage_command.rb:115:in `project'
	from /Users/vm1/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/slather-2.8.4/lib/slather/command/coverage_command.rb:82:in `setup_output_directory'
	from /Users/vm1/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/slather-2.8.4/lib/slather/command/coverage_command.rb:49:in `execute'
	from /Users/vm1/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/clamp-1.3.2/lib/clamp/command.rb:66:in `run'
	from /Users/vm1/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/clamp-1.3.2/lib/clamp/subcommand/execution.rb:18:in `execute'
	from /Users/vm1/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/clamp-1.3.2/lib/clamp/command.rb:66:in `run'
	from /Users/vm1/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/clamp-1.3.2/lib/clamp/command.rb:140:in `run'
	from /Users/vm1/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/slather-2.8.4/bin/slather:17:in `<top (required)>'
	from /Users/vm1/.rbenv/versions/3.1.4/bin/slather:25:in `load'
	from /Users/vm1/.rbenv/versions/3.1.4/bin/slather:25:in `<main>'
/Users/vm1/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/xcodeproj-1.25.0/lib/xcodeproj/project.rb:268:in `new_from_plist': uninitialized constant Xcodeproj::Project::Object::PBXFileSystemSynchronizedRootGroup (NameError)


        klass = Object.const_get(attributes['isa'])
                      ^^^^^^^^^^
	from /Users/vm1/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/xcodeproj-1.25.0/lib/xcodeproj/project/object.rb:350:in `object_with_uuid'
	from /Users/vm1/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/xcodeproj-1.25.0/lib/xcodeproj/project/object.rb:300:in `block (2 levels) in configure_with_plist'
	from /Users/vm1/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/xcodeproj-1.25.0/lib/xcodeproj/project/object.rb:299:in `each'
	from /Users/vm1/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/xcodeproj-1.25.0/lib/xcodeproj/project/object.rb:299:in `block in configure_with_plist'
	from /Users/vm1/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/xcodeproj-1.25.0/lib/xcodeproj/project/object.rb:296:in `each'
	from /Users/vm1/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/xcodeproj-1.25.0/lib/xcodeproj/project/object.rb:296:in `configure_with_plist'
	from /Users/vm1/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/xcodeproj-1.25.0/lib/xcodeproj/project.rb:272:in `new_from_plist'
	from /Users/vm1/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/xcodeproj-1.25.0/lib/xcodeproj/project/object.rb:350:in `object_with_uuid'
	from /Users/vm1/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/xcodeproj-1.25.0/lib/xcodeproj/project/object.rb:290:in `block in configure_with_plist'
	from /Users/vm1/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/xcodeproj-1.25.0/lib/xcodeproj/project/object.rb:287:in `each'
	from /Users/vm1/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/xcodeproj-1.25.0/lib/xcodeproj/project/object.rb:287:in `configure_with_plist'
	from /Users/vm1/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/xcodeproj-1.25.0/lib/xcodeproj/project.rb:272:in `new_from_plist'
	from /Users/vm1/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/xcodeproj-1.25.0/lib/xcodeproj/project.rb:213:in `initialize_from_file'
	from /Users/vm1/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/xcodeproj-1.25.0/lib/xcodeproj/project.rb:113:in `open'
	from /Users/vm1/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/slather-2.8.4/lib/slather/project.rb:53:in `open'
	from /Users/vm1/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/slather-2.8.4/lib/slather/command/coverage_command.rb:115:in `project'
	from /Users/vm1/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/slather-2.8.4/lib/slather/command/coverage_command.rb:82:in `setup_output_directory'
	from /Users/vm1/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/slather-2.8.4/lib/slather/command/coverage_command.rb:49:in `execute'
	from /Users/vm1/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/clamp-1.3.2/lib/clamp/command.rb:66:in `run'
	from /Users/vm1/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/clamp-1.3.2/lib/clamp/subcommand/execution.rb:18:in `execute'
	from /Users/vm1/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/clamp-1.3.2/lib/clamp/command.rb:66:in `run'
	from /Users/vm1/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/clamp-1.3.2/lib/clamp/command.rb:140:in `run'
	from /Users/vm1/.rbenv/versions/3.1.4/lib/ruby/gems/3.1.0/gems/slather-2.8.4/bin/slather:17:in `<top (required)>'
	from /Users/vm1/.rbenv/versions/3.1.4/bin/slather:25:in `load'
	from /Users/vm1/.rbenv/versions/3.1.4/bin/slather:25:in `<main>'
Slathering...



@authiatr
Copy link
Contributor

authiatr commented Nov 4, 2024

Hello,

Slather uses the Cocoapods/XcodeProj open-source library as a sub-dependency.
Until last week release, XcodeProj didn't support Xcode 16 new attributes.

Now, we need Slather's maintainers to update this library and release a new version.

@authiatr
Copy link
Contributor

authiatr commented Nov 4, 2024

I opened a pull request #574.
Hopefully, it will be approved and merged soon.

Cheers

@ksuther ksuther closed this as completed Nov 10, 2024
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

3 participants