Command /Xcode.app/Contents/Developer/Toolchains/
Swift_2.3.xctoolchain/usr/bin/swiftc failed with exit code 1
Steps that I followed to make it work:
- Delete derived data
- Delete Pod folder and Podfile.lock
- Delete inside the project:
- AppName.xcodeproj/xcuserdata
- AppName.xcworkspace/xcuserdata
- AppName.xcworkspace/xcshareddata
Afterwards, pod install and surprisingly it works.
EDIT:
Only working with emulator still having the error with the phone.
EDIT2:
I redownload Xcode and now works normally. I keep without knowing the reason why brokes but it's now working.
ERROR swiftc failed with exit code 1 when converting to latest syntax
Have you tried to do clean with Clean build folder?
The combination keys is:
ALT + SHIFT + COMMAND + K
Xcode 6.0.1 Command /Applications/Xcode.app/Contents/Developer/
Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1
This problem occurs when the Swift optimization level is not set to None for Release. Set the value to None and the issue goes away.
- Open up your project and click on the projects root directory.
- Click the build settings tab.
- Search for Swift Compiler - Code Generation and under Optimization Level make sure Release is set to None.
EDIT
After upgrading to Xcode 6.1 these instructions caused other issues when archiving (building for debug/device worked fine). Setting the optimization to Fastest allowed me to archive again. There are apparent issues with Swift compiling still (archiving specifically).
Can't archive working 6.0.1 Swift project in Xcode 6.1 / Segmentation fault: 11
EDIT
I was not able to fund the Build Settings tab, until I read this answer.
how to find the build settings tab
XCode - Command /Applications/Xcode.app/Contents/Developer/
Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1
This is the result of a corrupted swift class. If you encounter a class looking similar to the following code:
Ôæ≠fiÔæ≠fiqcaJÔæ≠fihJ0ç硡ˇ2ç硡ˇ$5y$ġˇˇ% 7.ġˇˇÔæ≠fiÔæ≠fiP‚—ġˇˇ_x0010_fl‚ġˇˇ ˗ġˇˇ∞B‚ġˇˇÄ+€
Try to re-create the class or re-download it. This solved my problem and to me, it would look like the only solution possible for a corrupted class.
Related Topics
Enable Copy and Paste on Uitextfield Without Making It Editable
Save Data to .Plist File in Swift
Uicollectionview Reloaddata Not Functioning Properly in iOS 7
How to Push and Present to Uiviewcontroller Programmatically Without Segue in iOS Swift 3
Disable iOS8 Quicktype Keyboard Programmatically on Uitextview
Expandable Tableview in Iphone
Dyld: Symbol Not Found: _Nsurlauthenticationmethodclientcertificate When Trying to Run iOS App
How to Run/Test My Flutter App on a Real Device
iOS 13: Swift - 'Set Application Root View Controller Programmatically' Does Not Work
How to Combine React Native with Socket.Io
Google Sign-In Crashes on iOS 9 Attempting to Call Canopenurl
How to Change Device Volume on iOS - Not Music Volume
Duplicate Symbol Error in Objective-C Build
What's the Difference Between All the Selection Segues