Xcode 14 needs selected Development Team for Pod Bundles

Viewed 4937

XCode image indicating error for lack of required development team

Both projects won't build with the Xcode 14 beta because of no selected Development Team. Both times it's the target with the blue lego icon (Bundles I suppose?)

It seems that in earlier versions of Xcode the Team also wasn't set but it hasn't lead to a build error.

Would it be wrong to select my own development team here?

2 Answers

This post_install script in podfile fixed it. As it seems setting the own developer team is necessary. Replace Your Team ID with the TeamID of your project.

post_install do |installer|
  installer.generated_projects.each do |project|
    project.targets.each do |target|
        target.build_configurations.each do |config|
            config.build_settings["DEVELOPMENT_TEAM"] = "Your Team ID"
         end
    end
  end
end

I prefer the below code so you not need to sign every individual package and it is easy when you are using multiple signing teams.

post_install do |installer|

    installer.pods_project.targets.each do |target|
      if target.respond_to?(:product_type) and target.product_type == "com.apple.product-type.bundle"
        target.build_configurations.each do |config|
            config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
        end
      end
    end

  end
Related