LoginSignup
22
20

More than 5 years have passed since last update.

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

Posted at

はじめに

どうやらこのコンパイルエラー、出るパターンが複数あるようです。
厄介なのが、シンタックスエラーではないので何が原因か気がつきにくいという事。

パターン1

私がつまづいたのは上記の割りかし簡単な内容でした。
最適化時にコンパイルエラーが出るみたいで、最適化無しでコンパイルを一度掛けたらいけました。
プロジェクトファイル -> Target -> Build Settings ->
Swift Compiler - Code Generation (Xcode6.3で下から4番目の項目) ->
Optimization Level -> Release -> FastestNone へ変更

コンパイル時間が死ぬほど長くなりました。(初回だいたい2〜3分掛かった。

パターン2

http://stackoverflow.com/questions/26156561/xcode-6-0-1-command-applications-xcode-app-contents-developer-toolchains-xcoded
こちらでいくつかパターンが記載されてました。
多分、全パターン記載されてると思います。(ぶん投げ

おわりに

初投稿記事です。いい加減な感じがプンプンしますね。
お粗末様でした。

22
20
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
22
20