close

[Solved] Command CompileSwiftSources failed with a nonzero exit code xcode 13

Hello Guys, How are you all? Hope You all Are Fine. Today I am just trying to run pod cache clean –all, deleting the derived data, and running a pod update and then I am trying to run a project on the Xcode13 but I am facing following error Command CompileSwiftSources failed with a nonzero exit code xcode 13. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How Command CompileSwiftSources failed with a nonzero exit code xcode 13 Error Occurs ?

I am just trying to run pod cache clean –all, deleting the derived data, and running a pod update and then I am trying to run a project on the Xcode13 but I am facing following error.

CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler (in target 'Alamofire' from project 'Pods')
    cd /Users/milan/Wondra/Pods
    export DEVELOPER_DIR\=/Applications/Xcode.app/Contents/Developer
    export SDKROOT\=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk

Command CompileSwiftSources failed with a nonzero exit code

How To Solve Command CompileSwiftSources failed with a nonzero exit code xcode 13 Error ?

  1. How To Solve Command CompileSwiftSources failed with a nonzero exit code xcode 13 Error ?

    To Solve Command CompileSwiftSources failed with a nonzero exit code xcode 13 Error If app is for iOS 11 or higher, one of the libraries should be modified to target iOS 11 or higher. So that Set every pod minimum to iOS 11 or above. Open xcworkspace Select Pods Then Select Build Settings iOS Deployment Target And Set every pod minimum to iOS 11 or above

  2. Command CompileSwiftSources failed with a nonzero exit code xcode 13

    To Solve Command CompileSwiftSources failed with a nonzero exit code xcode 13 Error If app is for iOS 11 or higher, one of the libraries should be modified to target iOS 11 or higher. So that Set every pod minimum to iOS 11 or above. Open xcworkspace Select Pods Then Select Build Settings iOS Deployment Target And Set every pod minimum to iOS 11 or above

Solution 1: Set every pod minimum to iOS 11 or above

If app is for iOS 11 or higher, one of the libraries should be modified to target iOS 11 or higher. So that Set every pod minimum to iOS 11 or above.

  1. Open xcworkspace
  2. Select Pods
  3. Then Select Build Settings
  4. iOS Deployment Target
  5. And Set every pod minimum to iOS 11 or above

Summary

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?

Also, Read

Please Rate Our Solution to Motivate Us For Give Our Best

Leave a Comment