Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 10.0 Error "Command /Applications/Xcode 10.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1"

Tags:

ios

swift

iphone

When I compile my code on XCode Version 10.0 I get this single error bringing the compilation to failure:

I will try all the possibility but can't solve the error

  • Clean My project alt + Shift + Command + K
  • deleting ~/Library/Developer/Xcode/DerivedData
  • Pod Update
like image 670
Mitesh Ramani Avatar asked Oct 26 '18 04:10

Mitesh Ramani


2 Answers

If you look above the error, XCode will tell you which class is added/declared twice, navigate to it and remove the reference. Build and you're good to go.

like image 145
Faysal Ahmed Avatar answered Nov 07 '22 10:11

Faysal Ahmed


A suggestion is to update the pods to the latest. I recently stucked into a similar type of problem. so I did this and it worked for me. my pod version was older.

check it with pod --version, may be this helps you.

pod deintegrate
pod install
pod update
like image 45
Anas Sabir Avatar answered Nov 07 '22 10:11

Anas Sabir