TimOliver / TOCropViewController

A view controller for iOS that allows users to crop portions of UIImage objects
http://www.timoliver.com.au/2015/06/21/tocropviewcontroller-an-open-source-image-cropper-for-ios/
MIT License
4.68k stars 932 forks source link

Xcode 14 built error #533

Closed ygf-git closed 1 year ago

ygf-git commented 1 year ago

"TOCropViewController-TOCropViewControllerBundle" requires a development team. Select a development team in the Signing & Capabilities editor.

iworkcloud commented 1 year ago

+1

sabiland commented 1 year ago

Hm I didn't have any issues building with Xcode 14.

orzzp commented 1 year ago

+1

simonemarra commented 1 year ago

I'm having the same issue when using the flutter package https://github.com/hnvn/flutter_image_cropper that uses TOCropViewController as iOS component.

Is there any suggestion?

orzzp commented 1 year ago

I have solved this issue temporarily with the following, but I am not sure if it will cause new issue yet.

post_install do |installer|
  installer.pods_project.targets.each do |target|
    flutter_additional_ios_build_settings(target)
    target.build_configurations.each do |config|
        config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
        config.build_settings['CODE_SIGN_IDENTITY'] = ''
    end
  end
end
befirst commented 1 year ago

I just chose a team inside the Signing&Capabilities -> Targets -> TOCropViewController-TOCropViewControllerBundle and it works perfectly

befirst commented 1 year ago

https://stackoverflow.com/questions/39945377/no-code-signature-found-after-pod-installed-in-xcode-8/39949186#39949186

the best solution if you have some CI/CD:

post_install do |installer|
    installer.pods_project.targets.each do |target|
      target.build_configurations.each do |config|
        config.build_settings['EXPANDED_CODE_SIGN_IDENTITY'] = ""
        config.build_settings['CODE_SIGNING_REQUIRED'] = "NO"
        config.build_settings['CODE_SIGNING_ALLOWED'] = "NO"
       end
    end
  end
simonemarra commented 1 year ago

I just chose a team inside the Signing&Capabilities -> Targets -> TOCropViewController-TOCropViewControllerBundle and it works perfectly

...Oh dear! If a debug message says EXACTLY what is missing, then give to the IDE what it needs. Clean and simple!

I was blocked by my mind: "WTF, why you need my team signature if the package is signed by another developer?"

And the answer sometimes is "just try it and don't mind, you freaky-nerdy-guy!! What do you have to loose?!"

Really thank you dude!

yuanzhiying commented 1 year ago

+1

gslender commented 1 year ago

After 3.3.2 upgrade I had issues building locally but the above PODS workaround fixed it for me. Not really sure why !?

acabreragnz commented 1 year ago

+1

jordanliu commented 1 year ago

+1

JPGuptaJee commented 1 year ago

https://stackoverflow.com/questions/39945377/no-code-signature-found-after-pod-installed-in-xcode-8/39949186#39949186

the best solution if you have some CI/CD:

post_install do |installer|
    installer.pods_project.targets.each do |target|
      target.build_configurations.each do |config|
        config.build_settings['EXPANDED_CODE_SIGN_IDENTITY'] = ""
        config.build_settings['CODE_SIGNING_REQUIRED'] = "NO"
        config.build_settings['CODE_SIGNING_ALLOWED'] = "NO"
       end
    end
  end

I was facing same issue and this solution worked for me perfectly Thank @befirst