Xcodeproj icon indicating copy to clipboard operation
Xcodeproj copied to clipboard

RuntimeError - `PBXTargetDependency` attempted to initialize an object with unknown ISA `PBXNativeTarget` Xcode 16

Open sandeeprana011 opened this issue 11 months ago • 2 comments

After adding a target for Watch OS. If i run pod install

Error

RuntimeError - `PBXTargetDependency` attempted to initialize an object with unknown ISA `PBXNativeTarget` from attributes: `{"isa" => "PBXNativeTarget", "buildConfigurationList" => "056DE0B72C96A2F6004D2DA0", "buildPhases" => ["3BA9CD9A5D2B3C4CB7C01F0D", "056DE0882C96A2F3004D2DA0", "056DE0892C96A2F3004D2DA0", "056DE08A2C96A2F3004D2DA0"], "buildRules" => [], "dependencies" => [], "fileSystemSynchronizedGroups" => ["05041E0B2CB115DE00072A10"], "name" => "WatchFM Watch App", "packageProductDependencies" => ["056DE0BC2C96A446004D2DA0", "056DE0D32C99FCB2004D2DA0", "056DE0DD2CA5F176004D2DA0"], "productName" => "WatchFM Watch App", "productReference" => "056DE08C2C96A2F3004D2DA0", "productType" => "com.apple.product-type.application"}`
If this ISA was generated by Xcode please file an issue: https://github.com/CocoaPods/Xcodeproj/issues/new
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/xcodeproj-1.27.0/lib/xcodeproj/project/object.rb:359:in 'Xcodeproj::Project::Object::AbstractObject#object_with_uuid'
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/xcodeproj-1.27.0/lib/xcodeproj/project/object.rb:290:in 'block in Xcodeproj::Project::Object::AbstractObject#configure_with_plist'
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/xcodeproj-1.27.0/lib/xcodeproj/project/object.rb:287:in 'Array#each'
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/xcodeproj-1.27.0/lib/xcodeproj/project/object.rb:287:in 'Xcodeproj::Project::Object::AbstractObject#configure_with_plist'
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/xcodeproj-1.27.0/lib/xcodeproj/project.rb:272:in 'Xcodeproj::Project#new_from_plist'
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/xcodeproj-1.27.0/lib/xcodeproj/project/object.rb:350:in 'Xcodeproj::Project::Object::AbstractObject#object_with_uuid'
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/xcodeproj-1.27.0/lib/xcodeproj/project/object.rb:300:in 'block (2 levels) in Xcodeproj::Project::Object::AbstractObject#configure_with_plist'
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/xcodeproj-1.27.0/lib/xcodeproj/project/object.rb:299:in 'Array#each'
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/xcodeproj-1.27.0/lib/xcodeproj/project/object.rb:299:in 'block in Xcodeproj::Project::Object::AbstractObject#configure_with_plist'
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/xcodeproj-1.27.0/lib/xcodeproj/project/object.rb:296:in 'Array#each'
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/xcodeproj-1.27.0/lib/xcodeproj/project/object.rb:296:in 'Xcodeproj::Project::Object::AbstractObject#configure_with_plist'
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/xcodeproj-1.27.0/lib/xcodeproj/project.rb:272:in 'Xcodeproj::Project#new_from_plist'
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/xcodeproj-1.27.0/lib/xcodeproj/project/object.rb:350:in 'Xcodeproj::Project::Object::AbstractObject#object_with_uuid'
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/xcodeproj-1.27.0/lib/xcodeproj/project/object.rb:300:in 'block (2 levels) in Xcodeproj::Project::Object::AbstractObject#configure_with_plist'
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/xcodeproj-1.27.0/lib/xcodeproj/project/object.rb:299:in 'Array#each'
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/xcodeproj-1.27.0/lib/xcodeproj/project/object.rb:299:in 'block in Xcodeproj::Project::Object::AbstractObject#configure_with_plist'
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/xcodeproj-1.27.0/lib/xcodeproj/project/object.rb:296:in 'Array#each'
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/xcodeproj-1.27.0/lib/xcodeproj/project/object.rb:296:in 'Xcodeproj::Project::Object::AbstractObject#configure_with_plist'
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/xcodeproj-1.27.0/lib/xcodeproj/project.rb:272:in 'Xcodeproj::Project#new_from_plist'
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/xcodeproj-1.27.0/lib/xcodeproj/project.rb:213:in 'Xcodeproj::Project#initialize_from_file'
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/xcodeproj-1.27.0/lib/xcodeproj/project.rb:113:in 'Xcodeproj::Project.open'
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/cocoapods-1.16.2/lib/cocoapods/installer/analyzer.rb:1194:in 'block (2 levels) in Pod::Installer::Analyzer#inspect_targets_to_integrate'
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/cocoapods-1.16.2/lib/cocoapods/installer/analyzer.rb:1193:in 'Hash#each'
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/cocoapods-1.16.2/lib/cocoapods/installer/analyzer.rb:1193:in 'block in Pod::Installer::Analyzer#inspect_targets_to_integrate'
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/cocoapods-1.16.2/lib/cocoapods/user_interface.rb:64:in 'Pod::UserInterface.section'
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/cocoapods-1.16.2/lib/cocoapods/installer/analyzer.rb:1188:in 'Pod::Installer::Analyzer#inspect_targets_to_integrate'
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/cocoapods-1.16.2/lib/cocoapods/installer/analyzer.rb:107:in 'Pod::Installer::Analyzer#analyze'
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/cocoapods-1.16.2/lib/cocoapods/installer.rb:422:in 'Pod::Installer#analyze'
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/cocoapods-1.16.2/lib/cocoapods/installer.rb:244:in 'block in Pod::Installer#resolve_dependencies'
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/cocoapods-1.16.2/lib/cocoapods/user_interface.rb:64:in 'Pod::UserInterface.section'
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/cocoapods-1.16.2/lib/cocoapods/installer.rb:243:in 'Pod::Installer#resolve_dependencies'
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/cocoapods-1.16.2/lib/cocoapods/installer.rb:162:in 'Pod::Installer#install!'
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/cocoapods-1.16.2/lib/cocoapods/command/install.rb:52:in 'Pod::Command::Install#run'
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/claide-1.1.0/lib/claide/command.rb:334:in 'CLAide::Command.run'
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/cocoapods-1.16.2/lib/cocoapods/command.rb:52:in 'Pod::Command.run'
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/gems/cocoapods-1.16.2/bin/pod:55:in '<top (required)>'
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/bin/pod:25:in 'Kernel#load'
/opt/homebrew/Cellar/cocoapods/1.16.2_1/libexec/bin/pod:25:in '<main>'

sandeeprana011 avatar Jan 24 '25 16:01 sandeeprana011

similar problem after adding OneSignalNotificationServiceExtension: RuntimeError - PBXGroup attempted to initialize an object with unknown ISA PBXFileSystemSynchronizedRootGroup from attributes: {"isa"=>"PBXFileSystemSynchronizedRootGroup", "exceptions"=>["80AC00A22D71A98900C3D8F4"], "explicitFileTypes"=>{}, "explicitFolders"=>[], "path"=>"OneSignalNotificationServiceExtension", "sourceTree"=>"<group>"} If this ISA was generated by Xcode please file an issue: https://github.com/CocoaPods/Xcodeproj/issues/new /Users/pixnek/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/xcodeproj-1.24.0/lib/xcodeproj/project/object.rb:359:in rescue in object_with_uuid' /Users/pixnek/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/xcodeproj-1.24.0/lib/xcodeproj/project/object.rb:349:in object_with_uuid' /Users/pixnek/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/xcodeproj-1.24.0/lib/xcodeproj/project/object.rb:300:in block (2 levels) in configure_with_plist' /Users/pixnek/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/xcodeproj-1.24.0/lib/xcodeproj/project/object.rb:299:in each' /Users/pixnek/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/xcodeproj-1.24.0/lib/xcodeproj/project/object.rb:299:in block in configure_with_plist' /Users/pixnek/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/xcodeproj-1.24.0/lib/xcodeproj/project/object.rb:296:in each' /Users/pixnek/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/xcodeproj-1.24.0/lib/xcodeproj/project/object.rb:296:in configure_with_plist' /Users/pixnek/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/xcodeproj-1.24.0/lib/xcodeproj/project.rb:272:in new_from_plist' /Users/pixnek/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/xcodeproj-1.24.0/lib/xcodeproj/project/object.rb:350:in object_with_uuid' /Users/pixnek/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/xcodeproj-1.24.0/lib/xcodeproj/project/object.rb:290:in block in configure_with_plist' /Users/pixnek/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/xcodeproj-1.24.0/lib/xcodeproj/project/object.rb:287:in each' /Users/pixnek/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/xcodeproj-1.24.0/lib/xcodeproj/project/object.rb:287:in configure_with_plist' /Users/pixnek/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/xcodeproj-1.24.0/lib/xcodeproj/project.rb:272:in new_from_plist' /Users/pixnek/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/xcodeproj-1.24.0/lib/xcodeproj/project.rb:213:in initialize_from_file' /Users/pixnek/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/xcodeproj-1.24.0/lib/xcodeproj/project.rb:113:in open' /Users/pixnek/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/cocoapods-1.15.2/lib/cocoapods/installer/analyzer.rb:1194:in block (2 levels) in inspect_targets_to_integrate' /Users/pixnek/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/cocoapods-1.15.2/lib/cocoapods/installer/analyzer.rb:1193:in each' /Users/pixnek/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/cocoapods-1.15.2/lib/cocoapods/installer/analyzer.rb:1193:in block in inspect_targets_to_integrate' /Users/pixnek/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/cocoapods-1.15.2/lib/cocoapods/user_interface.rb:64:in section' /Users/pixnek/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/cocoapods-1.15.2/lib/cocoapods/installer/analyzer.rb:1188:in inspect_targets_to_integrate' /Users/pixnek/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/cocoapods-1.15.2/lib/cocoapods/installer/analyzer.rb:107:in analyze' /Users/pixnek/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/cocoapods-1.15.2/lib/cocoapods/installer.rb:422:in analyze' /Users/pixnek/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/cocoapods-1.15.2/lib/cocoapods/installer.rb:244:in block in resolve_dependencies' /Users/pixnek/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/cocoapods-1.15.2/lib/cocoapods/user_interface.rb:64:in section' /Users/pixnek/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/cocoapods-1.15.2/lib/cocoapods/installer.rb:243:in resolve_dependencies' /Users/pixnek/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/cocoapods-1.15.2/lib/cocoapods/installer.rb:162:in install!' /Users/pixnek/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/cocoapods-1.15.2/lib/cocoapods/command/install.rb:52:in run' /Users/pixnek/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/claide-1.1.0/lib/claide/command.rb:334:in run' /Users/pixnek/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/cocoapods-1.15.2/lib/cocoapods/command.rb:52:in run' /Users/pixnek/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/cocoapods-1.15.2/bin/pod:55:in <top (required)>' /Users/pixnek/.rbenv/versions/2.7.4/bin/pod:23:in load' /Users/pixnek/.rbenv/versions/2.7.4/bin/pod:23:in

'

pixnek avatar Feb 28 '25 08:02 pixnek

I had this issue in 1.25.0, updating to 1.27.0 produces a new and exciting error:

❯ git merge main
/opt/homebrew/lib/ruby/gems/3.4.0/gems/xcodeproj-1.27.0/lib/xcodeproj/project/object_attributes.rb:83:in 'Xcodeproj::Project::Object::AbstractObjectAttribute#get_value': stack level too deep (SystemStackError)
	from /opt/homebrew/lib/ruby/gems/3.4.0/gems/xcodeproj-1.27.0/lib/xcodeproj/project/object.rb:443:in 'block in Xcodeproj::Project::Object::AbstractObject#to_tree_hash'
	from /opt/homebrew/lib/ruby/gems/3.4.0/gems/xcodeproj-1.27.0/lib/xcodeproj/project/object.rb:442:in 'Array#each'
	from /opt/homebrew/lib/ruby/gems/3.4.0/gems/xcodeproj-1.27.0/lib/xcodeproj/project/object.rb:442:in 'Xcodeproj::Project::Object::AbstractObject#to_tree_hash'
	from /opt/homebrew/lib/ruby/gems/3.4.0/gems/kintsugi-0.7.9/lib/kintsugi/xcodeproj_extensions.rb:90:in 'Method#call'
	from /opt/homebrew/lib/ruby/gems/3.4.0/gems/kintsugi-0.7.9/lib/kintsugi/xcodeproj_extensions.rb:90:in 'Xcodeproj::Project::Object::XCBuildConfiguration#to_tree_hash'
	from /opt/homebrew/lib/ruby/gems/3.4.0/gems/xcodeproj-1.27.0/lib/xcodeproj/project/object.rb:454:in 'Array#map'
	from /opt/homebrew/lib/ruby/gems/3.4.0/gems/xcodeproj-1.27.0/lib/xcodeproj/project/object.rb:454:in 'block in Xcodeproj::Project::Object::AbstractObject#to_tree_hash'
	from /opt/homebrew/lib/ruby/gems/3.4.0/gems/xcodeproj-1.27.0/lib/xcodeproj/project/object.rb:452:in 'Array#each'
	 ... 10586 levels...
	from /opt/homebrew/lib/ruby/gems/3.4.0/gems/kintsugi-0.7.9/lib/kintsugi.rb:26:in 'Kintsugi.run'
	from /opt/homebrew/lib/ruby/gems/3.4.0/gems/kintsugi-0.7.9/bin/kintsugi:10:in '<top (required)>'
	from /opt/homebrew/lib/ruby/gems/3.3.0/bin/kintsugi:25:in 'Kernel#load'
	from /opt/homebrew/lib/ruby/gems/3.3.0/bin/kintsugi:25:in '<main>'

elihwyma avatar Mar 03 '25 12:03 elihwyma