How to add a new target using Xcode16 and cocoapods

On my Mac I have MacOs15 and Xcode 16 installed. I'm working with cocoapods, when adding a new target to my App, pod update it fails. What can I do to solve the problem.

hunter-movil-main % npx cap update ios ✔ Updating iOS plugins in 23.10ms [info] Found 6 Capacitor plugins for ios: -capacitor-community/fcm-3.0.2 -capacitor/app-4.1.1 -capacitor/haptics-4.1.0 -capacitor/keyboard-4.1.1 -capacitor/push-notifications-4.1.2 -capacitor/status-bar-4.1.1 ✖ Updating iOS native dependencies with pod install - failed! ✖ update ios - failed! [error] Analyzing dependencies Searching for inspections failed: undefined method `map' for nil

    ### Command
    
    
    /opt/homebrew/Cellar/cocoapods/1.15.2_1/libexec/bin/pod install
    
    
    ### Report
    
    * What did you do?
    
    * What did you expect to happen?
    
    * What happened instead?
    
    
    ### Stack
    
    
    CocoaPods : 1.15.2
    Ruby : ruby 3.3.5 (2024-09-03 revision ef084cc8f4) [arm64-darwin24]
    RubyGems : 3.5.18
    Host : macOS 15.0 (24A335)
    Xcode : 16.0 (16A242d)
    Git : git version 2.39.5 (Apple Git-154)
    Ruby lib dir : /opt/homebrew/Cellar/ruby/3.3.5/lib
    Repositories : trunk - CDN - https://cdn.cocoapods.org/
    
    
    ### Plugins
    
    
    cocoapods-deintegrate : 1.0.5
    cocoapods-plugins     : 1.0.0
    cocoapods-search      : 1.0.1
    cocoapods-trunk       : 1.6.0
    cocoapods-try         : 1.2.0
    
    
    ### Podfile
    
    ruby
    require_relative
    '../../node_modules/@capacitor/ios/scripts/pods_helpers'
    
    platform :ios, '13.0'
    use_frameworks!
    
    # workaround to avoid Xcode caching of Pods that requires
    # Product -> Clean Build Folder after new Cordova plugins installed
    # Requires CocoaPods 1.6 or newer
    install! 'cocoapods', :disable_input_output_paths => true
    
    def capacitor_pods
    pod 'Capacitor', :path => '../../node_modules/@capacitor/ios'
    pod 'CapacitorCordova', :path => '../../node_modules/@capacitor/ios'
    pod 'CapacitorCommunityFcm', :path =>
    '../../node_modules/@capacitor-community/fcm'
    pod 'CapacitorApp', :path => '../../node_modules/@capacitor/app'
    pod 'CapacitorHaptics', :path => '../../node_modules/@capacitor/haptics'
    pod 'CapacitorKeyboard', :path =>
    '../../node_modules/@capacitor/keyboard'
    pod 'CapacitorPushNotifications', :path =>
    '../../node_modules/@capacitor/push-notifications'
    pod 'CapacitorStatusBar', :path =>
    '../../node_modules/@capacitor/status-bar'
    end
    
    target 'App' do
    capacitor_pods
    # Add your Pods here
    pod 'Firebase/Messaging'
    end
    
    post_install do |installer|
    assertDeploymentTarget(installer)
    end
    
    
    ### Error

    

    

    RuntimeError - `PBXGroup` attempted to initialize an object with unknown

    ISA `PBXFileSystemSynchronizedRootGroup` from attributes:

    `{"isa"=>"PBXFileSystemSynchronizedRootGroup",

    "exceptions"=>["743C7E622CA48F72000F87A0"], "explicitFileTypes"=>{},

    "explicitFolders"=>[], "path"=>"pushextension",

    "sourceTree"=>"<group>"}`
Answered by DTS Engineer in 805823022

While someone here may be able to assist you, you should also use the support resources provided by the vendors of Capacitor and Cocoapods to get assistance with their software.

While someone here may be able to assist you, you should also use the support resources provided by the vendors of Capacitor and Cocoapods to get assistance with their software.

As I am redirected here from Google Search, I found this as an opportunity to share about my finding that worked for me.

In Xcode, right-click on the folder, select "Convert to Group" from the menu, and then it can be used normally.

How to add a new target using Xcode16 and cocoapods
 
 
Q