zhangao0086 / DKImagePickerController

Image Picker Controller for iOS written in Swift 4 & 5.
MIT License
1.49k stars 471 forks source link

ios error Signing for "DKImagePickerController-DKImagePickerController" requires a development team. #701

Open timfong888 opened 2 years ago

timfong888 commented 2 years ago

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

However, in my project files, I have already indicated that I am signing the two targets, my project's target and Image Notification.

So I'm not clear why this needs a separate signing of the development team. The target doesn't show up in Xcode, so where in the code do I specify the team?

SimonVillage commented 2 years ago

same problem here

armandojimenez commented 2 years ago

How do we solve this?

armandojimenez commented 2 years ago

Any fix for this?

armandojimenez commented 2 years ago

Any fix for this? This is the only thing preventing me from testing my app on iOS 16

sarinupreti2021 commented 2 years ago

+1

sarinupreti2021 commented 2 years ago

Adding this code worked for me.

def removeFlutterFilePickerUnwantedPod
  if !Pod.const_defined?(:PICKER_MEDIA) || PICKER_MEDIA
    Pod.const_set(:PICKER_MEDIA, false)
  end
  if !Pod.const_defined?(:PICKER_AUDIO) || PICKER_AUDIO
    Pod.const_set(:PICKER_AUDIO, false)
  end
end

removeFlutterFilePickerUnwantedPod()
Cheng455153666 commented 2 years ago
gem 'cocoapods-pod-sign'

It's work!

ThickLine commented 2 years ago

plugin 'cocoapods-pod-sign' skip_pod_bundle_sign

Helped me!

zhangao0086 commented 2 years ago

See this Swift Forum thread for more info, in our case passing CODE_SIGN_STYLE=Manual alongside with DEVELOPMENT_TEAM and CODE_SIGN_IDENTITY worked. https://forums.swift.org/t/xcode-14-beta-code-signing-issues-when-spm-targets-include-resources/59685

miguelpruivo commented 2 years ago

@zhangao0086 will you update the plugin in order to fix this?

daiki1003 commented 2 years ago

+1

ykiran commented 2 years ago

@ThickLine @Cheng455153666 Where do you specify these lines? Please help. Thanks in advance.

ThickLine commented 2 years ago

@ykiran In your Podfile. Or better add config.build_settings['CODE_SIGN_IDENTITY'] = ''

like this:


post_install do |installer|
        installer.pods_project.targets.each do |target|
            target.build_configurations.each do |config|
                config.build_settings['CODE_SIGN_IDENTITY'] = ''
            end
        end
    end
ykiran commented 2 years ago

Thanks @ThickLine for taking the time to explain this. However, I went with this fix and it worked. https://github.com/zhangao0086/DKImagePickerController/issues/705#issuecomment-1250706936