Home > database >  Xcode 13 Build failed Command COmpileSwiftSources failed
Xcode 13 Build failed Command COmpileSwiftSources failed

Time:03-13

I was using Xcode 12.5.1 for my iOS App which has iOS Deployment Target iOS12 it was working fine

After I tried to open this project in Xcode 13 I got multiple errors in some libraries like "ImagePicker", "Kingfisher", "FittedSheets"

The error: Command CompileSwiftSources failed with a nonzero exit code

I tried to run pod update but it didn't help me still same errors

My Podfile looks like this:

# Uncomment the next line to define a global platform for your project
# platform :ios, '12.0'

target 'MyApp' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

  # Pods for MyApp
  pod 'Firebase/Messaging'
  pod 'Firebase/Storage'
  pod 'Firebase/Database'  
  pod 'Firebase/Firestore'
  pod 'Firebase/Auth'
  pod 'FittedSheets'
  pod 'ImagePicker'
  pod 'Lightbox'
  pod 'Hue'
  pod 'Kingfisher', '~> 5.0'
pod 'Firebase/Functions'
target 'MyAppTests' do
    inherit! :search_paths
    # Pods for testing
  end

  target 'MyAppUITests' do
    inherit! :search_paths
    # Pods for testing
  end

end

I use iOS 12 as iOS Deployment Target for MyApp and the same I tried to use for failed Pods.

I tried various solutions like setting all Pods to iOS12 as iOS Target but nothing really worked for me anyone knows other solution how to fix it ?

enter image description here

CodePudding user response:

So it seems like maybe you have a class called Configuration? You will need to give it a different name, or qualify it with a namespace, because now UIButton also has a class called Configuration and so there's a naming conflict.

  • Related