SwiftKickMobile / SwiftMessages

A very flexible message bar for UIKit and SwiftUI.
MIT License
7.24k stars 741 forks source link

Signing for "SwiftMessages-SwiftMessages" requires a development team #510

Open maksirol opened 1 year ago

maksirol commented 1 year ago

I get this error while building with xcode version: 14.0.1. It worked fine with 13.1 version.

error: Signing for "SwiftMessages-SwiftMessages" requires a development team. Select a development team in the Signing & Capabilities editor. (in target 'SwiftMessages-SwiftMessages' from project 'Pods')

In my development environment i just removed additional pod "SwiftMessages-SwiftMessages" and it works. But on build server it pulls pod's from cocoapods, so i cannot remove it manually.

Any advices how to solve it?

supermnemonic commented 1 year ago

i found a general solution to solve this issue.

https://stackoverflow.com/questions/72561696/xcode-14-needs-selected-development-team-for-pod-bundles

SunZhiC commented 1 year ago

Work around, this is necessary for Xcode 14, because it signs resource bundles by default, when building for devices.

  installer.target_installation_results.pod_target_installation_results
  .each do |pod_name, target_installation_result|
    target_installation_result.resource_bundle_targets.each do |resource_bundle_target|
      resource_bundle_target.build_configurations.each do |config|
        config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
      end
    end
  end