Command CompileSwift failed with a nonzero exit code in Xcode 10
Currently my build is working.
Here you are the steps I tried until it finally worked:
- Search in the whole project the word CommonCrypto.
- If you have a Pod containing that header import, remove this Pod from the Podfile and perform a pod install.
- Clean and build the project.
- Add again the Pod to the Podfile and perform a pod install.
- Clean and build the project again using a real device if possible.
And If you don't have that Pod, maybe you can try by making the same steps with some old Pod that you may encounter in your project.
Added information: also If you have some code error inside a Pod, first you need to solve that code problem and then try to compile again the project.
I'm going to copy the changes made in my project.pbxproj. I know it's not very helpful but it's the only thing that have changed in the git difference commit:
Removed: BDC9821B1E9BD1B600ADE0EF /* (null) in Sources */ = {isa = PBXBuildFile; };
Added: BDC9821B1E9BD1B600ADE0EF /* BuildFile in Sources */ = {isa = PBXBuildFile; };
I hope this can help,
Regards.
Command CompileSwiftSources failed with a nonzero exit code XCode 13
I had this problem surface in Xcode 13.0.
Mohamed Tarek's solution worked for me, but…
I was using cocoapods, so I needed a solution not blown away by pod install
; or more specifically fixed with pod install
.
Adding the following to the bottom of the Podfile
resolved it.
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
# some older pods don't support some architectures, anything over iOS 11 resolves that
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
end
end
end
Related Topics
Type Conversion When Using Protocol in Swift
The "Prefs" Url Scheme Is Not Working in iOS 10 (Beta 1 & 2)
Setting the Timelineprovider Refresh Interval For Widget
In Xcode 6.1. 'Uiimage' Does Not Have a Member Named 'Size' Error
Swiftui - Navigation Bar Button Not Clickable After Sheet Has Been Presented
Determine If Any.Type Is Optional
Obervableobject Being Init Multiple Time, and Not Refreshing My View
What Causes 'Constant Captured by a Closure Before Being Initialized' Error
How to Properly Use Queryorderedbyvalue
What Versions of Swift Are Supported by What Versions of Xcode
Wkwebview Does Not Load Links to Pdfs
Swift - Increment Label With Stepper in Tableview Cell
How to Unittest Combine Cancellables
Swift 2.1 [Uint8] --Utf8--> String
Convert Between Decimal, Binary and Hexadecimal in Swift
How to Replicate Promisekit-Style Chained Async Flow Using Combine + Swift
Simpliest Solution to Check If File Exists on a Webserver. (Swift)