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

Assertion failed: IDEFileSystemSynchronizedGroupsAreEnabled() #227

Open
mattrighetti opened this issue Feb 16, 2025 · 4 comments
Open

Assertion failed: IDEFileSystemSynchronizedGroupsAreEnabled() #227

mattrighetti opened this issue Feb 16, 2025 · 4 comments
Assignees

Comments

@mattrighetti
Copy link

mattrighetti commented Feb 16, 2025

I'm getting the following stack trace error when trying to run a test on a device

Repository
Job
GH Action

2025-02-16 19:18:20.127 xcodebuild[3333:20921] [MT] DVTAssertions: ASSERTION FAILURE in DevToolsCore/Xcode3Core/LegacyProjects/Frameworks/DevToolsCore/DevToolsCore/ProjectModel/DataModel/References/SynchronizedGroups/PBXFileSystemSynchronizedAbstractGroup.m:28
Details:  Assertion failed: IDEFileSystemSynchronizedGroupsAreEnabled()
Object:   <PBXFileSystemSynchronizedRootGroup>
Method:   +allocWithZone:
Thread:   <_NSMainThread: 0x6000036c0200>{number = 1, name = main}
Hints: 
Backtrace:
  0   -[DVTAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in DVTFoundation)
  1   _DVTAssertionHandler (in DVTFoundation)
  2   _DVTAssertionFailureHandler (in DVTFoundation)
  3   _DVTAssertionWarningHandler (in DVTFoundation)
  4   -[PBXFileSystemSynchronizedAbstractGroup initWithName:path:sourceTree:] (in DevToolsCore)
  5   -[PBXPListUnarchiver _unarchiveObjectWithGlobalIDHexString:] (in DevToolsCore)
  6   -[PBXPListUnarchiver _decodeMutableObjectArrayFromPListArray:] (in DevToolsCore)
  7   -[PBXPListUnarchiver decodeMutableObjectArrayForKey:] (in DevToolsCore)
  8   -[PBXUnarchivingBinding readValueForObject:fromPListUnarchiver:] (in DevToolsCore)
  9   -[PBXObject _unarchiveValuesForArchiveMask:fromPListUnarchiver:] (in DevToolsCore)
 10   -[PBXObject readFromPListUnarchiver:] (in DevToolsCore)
 11   -[PBXReference readFromPListUnarchiver:] (in DevToolsCore)
 12   -[PBXPListUnarchiver _unarchiveObjectWithGlobalIDHexString:] (in DevToolsCore)
 13   -[PBXPListUnarchiver decodeObjectForKey:] (in DevToolsCore)
 14   -[PBXUnarchivingBinding readValueForObject:fromPListUnarchiver:] (in DevToolsCore)
 15   -[PBXObject _unarchiveValuesForArchiveMask:fromPListUnarchiver:] (in DevToolsCore)
 16   -[PBXObject readFromPListUnarchiver:] (in DevToolsCore)
 17   -[PBXContainer readFromPListUnarchiver:] (in DevToolsCore)
 18   -[PBXProject readFromPListUnarchiver:] (in DevToolsCore)
 19   -[PBXPListUnarchiver _unarchiveObjectWithGlobalIDHexString:] (in DevToolsCore)
 20   -[PBXPListUnarchiver decodeRootObject] (in DevToolsCore)
 21   +[PBXProject projectWithFile:errorHandler:readOnly:] (in DevToolsCore)
 22   -[Xcode3Project initWithFilePath:extension:workspace:options:error:] (in DevToolsCore)
 23   __82+[IDEContainer _retainedContainerAtFilePath:fileDataType:workspace:options:error:]_block_invoke_2 (in IDEFoundation)
 24   _dispatch_client_callout (in libdispatch.dylib)
 25   _dispatch_lane_barrier_sync_invoke_and_complete (in libdispatch.dylib)
 26   DVTDispatchBarrierSync (in DVTFoundation)
 27   -[DVTDispatchLock performLockedBlock:] (in DVTFoundation)
 28   __82+[IDEContainer _retainedContainerAtFilePath:fileDataType:workspace:options:error:]_block_invoke (in IDEFoundation)
 29   __58-[DVTModelObjectGraph performBlockCoalescingModelChanges:]_block_invoke (in DVTFoundation)
 30   -[DVTModelGraphTransactionScope performTransaction:] (in DVTFoundation)
 31   -[DVTModelObjectGraph performBlockCoalescingModelChanges:] (in DVTFoundation)
 32   +[IDEContainer _retainedContainerAtFilePath:fileDataType:workspace:options:error:] (in IDEFoundation)
 33   -[IDEWorkspace _configureWrappedWorkspaceWithError:] (in IDEFoundation)
 34   __82+[IDEContainer _retainedContainerAtFilePath:fileDataType:workspace:options:error:]_block_invoke (in IDEFoundation)
 35   +[IDEContainer _retainedContainerAtFilePath:fileDataType:workspace:options:error:] (in IDEFoundation)
 36   +[IDEContainer retainedWrappedWorkspaceForContainerAtFilePath:fileDataType:error:] (in IDEFoundation)
 37   -[Xcode3CommandLineBuildTool _resolveInputOptionsWithTimingSection:] (in Xcode3Core)
 38   -[Xcode3CommandLineBuildTool run] (in Xcode3Core)
 39   XcodeBuildMain (in libxcodebuildLoader.dylib)
 40   -[XcodebuildPreIDEHandler loadXcode3ProjectSupportAndRunXcode3CommandLineBuildToolWithArguments:] (in xcodebuild)
 41   -[XcodebuildPreIDEHandler runWithArguments:] (in xcodebuild)
 42   main (in xcodebuild)
 43   start (in dyld)
@ffried
Copy link
Member

ffried commented Feb 19, 2025

@mattrighetti Can you run the following command locally without issues?
xcodebuild -project HNWidgets.xcodeproj -scheme HNWidgets -destination platform=iOS\ Simulator,name=iPhone\ 16 -sdk iphonesimulator test?

In general, this sounds more like an Xcode issue, than an issue with this action. The command above is exactly what this action runs. So I assume it's an issue with the runner (e.g. I saw you just use the default Xcode that is set up, which might not match your project) or the project.

@mattrighetti
Copy link
Author

Yeah the command runs fine on my Mac, what I did indeed was replicate what I use locally in this action but the runner complains 🫠

@ffried
Copy link
Member

ffried commented Feb 19, 2025

Are you using the same Xcode version?
The macos-latest (which currently resolves to macOS 14 ARM64) is currently using Xcode 15.4 by default.

@ffried ffried self-assigned this Feb 19, 2025
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

2 participants