Skip to content

pod install does not work after adding a new test/watch/extension/other target with Xcode 16 #156733

@jmagman

Description

@jmagman

CocoaPods does not work with Xcode 16 since it has not yet been updated to handled synchronized groups/folders CocoaPods/CocoaPods#12456

Add flutter tooling support that detects the Xcode project contains PBXFileSystemSynchronizedRootGroup, and outputs a warning linking to this issue or https://stackoverflow.com/a/79003357/431116 or similar with the workaround.

Around here check if the error contains "unknown ISA `PBXFileSystemSynchronizedRootGroup`"

void _diagnosePodInstallFailure(ProcessResult result, XcodeBasedProject xcodeProject) {

From https://discord.com/channels/608014603317936148/1295165633931120642/1295166301626564628

The issue encountered after adding the native Unit/UI tests target for macOS in the example app by following Flutter instructions of Enabling XCTests or XCUITests, which prevent running or building the example app, causing failure when running pod install or flutter run -d macos

### Command

/opt/homebrew/Cellar/cocoapods/1.15.2_1/libexec/bin/pod install

...
### Error

RuntimeError - `PBXGroup` attempted to initialize an object with unknown ISA `PBXFileSystemSynchronizedRootGroup` from attributes: `{"isa"=>"PBXFileSystemSynchronizedRootGroup", "explicitFileTypes"=>{}, "explicitFolders"=>[], "path"=>"RunnerTests", "sourceTree"=>"<group>"}`
If this ISA was generated by Xcode please file an issue: https://github.com/CocoaPods/Xcodeproj/issues/new
/opt/homebrew/Cellar/cocoapods/1.15.2_1/libexec/gems/xcodeproj-1.25.0/lib/xcodeproj/project/object.rb:359:in `rescue in object_with_uuid'

Originally posted by @jmagman in #153402 (comment)

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listt: xcode"xcodebuild" on iOS and general Xcode project managementteam-iosOwned by iOS platform teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-iosTriaged by iOS platform team

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions