質問

最近 XCode6-Beta をダウンロードしてインストールしましたが、このビルド エラーが発生しました。すでに実行されている手順:

  1. プレフィックスヘッダーファイルを再確認しました。
  2. クリーンアップされたプロジェクト。
  3. XCodeを再起動しました。
  4. DerivedData を 100 回ほど削除しました。

何か足りないものはありますか?

command /applications/xcode6-beta.app/contents/developer/toolchains/xcodedefault.xctoolchain/usr/bin/clangは、exitコード1で失敗しました

編集:一時的な解決策。

問題の原因となっていた領域の 1 つである 6.0 のサポートを削除しましたが、以前のバージョンのサポートが必要な場合、これは依然として問題になります。

役に立ちましたか?

解決

それは一つです!

ターゲットの選択/ビルド設定/スクロールへのスクロールLLVM 6.0 - 前処理

- > Foundation Assurationを有効にする

に設定します。

他のヒント

問題は、Xcode が Clang (LLVM) がスローしている実際のエラーを通知しないことです。それはただそう言っているだけです clang プロセスはコード 1 で終了しました。これはエラーを意味します。

エラーの内容を正確に知るには、少し詳しく調べる必要があります...

私は Xcode6 を持っていませんが、これは Xcode 5 で実行できる方法であり、おそらくかなり似ています。


「ログナビゲータ」を開くと(View-->Navigators-->Logs Navigator または cmd-8) をクリックして「ビルド」をクリックすると、実行したばかりのビルドが表示されるはずです。横の 3 本の線をクリックすると、実行された完全なコマンドとその出力が表示されます。

ここでエラーが確認できるかもしれませんが、そうでない場合は、もっと良い方法があります。

ウィンドウからコマンド (巨大になります) をコピーしてターミナルに貼り付け、実行します。次のようになります。

CompileC /Users/Daly/Library/Developer/Xcode/DerivedData/Misc-hbomxnscgtjodqafsvgpndlyhkes/Build/Intermediates/Misc.build/Debug/Misc.build/Objects-normal/x86_64/template_tests.o Misc/template_tests.cpp 通常の x86_64 c++ com .apple.compilers.llvm.clang.1_0.compiler

cd /ユーザー/デイリー/ドキュメント/学校/EECS/研究室/その他/その他

エクスポート LANG=en_US.US-ASCII

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit =0 -std=c++11 -stdlib=libc++ -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wmissing-prototypes -Wno-non-virtual-dtor -Wno-overloaded-virtual - Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wno-empty-body - Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion - Wno-shorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -DDEBUG=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs /MacOSX10.9.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -mmacosx-version-min=10.8 -g -fvisibility-inlines-hidden -Wno-sign-conversion -iquote /Users/Daly /Library/Developer/Xcode/DerivedData/Misc-hbomxnscgtjodqafsvgpndlyhkes/Build/Intermediates/Misc.build/Debug/Misc.build/Misc-generated-files.hmap -I/Users/Daly/Library/Developer/Xcode/DerivedData/Misc -hbomxnscgtjodqafsvgpndlyhkes/Build/Intermediates/Misc.build/Debug/Misc.build/Misc-own-target-headers.hmap -I/Users/Daly/Library/Developer/Xcode/DerivedData/Misc-hbomxnscgtjodqafsvgpndlyhkes/Build/Intermediates/Misc .build/Debug/Misc.build/Misc-all-target-headers.hmap -iquote /Users/Daly/Library/Developer/Xcode/DerivedData/Misc-hbomxnscgtjodqafsvgpndlyhkes/Build/Intermediates/Misc.build/Debug/Misc.build /Misc-project-headers.hmap -I/Users/Daly/Library/Developer/Xcode/DerivedData/Misc-hbomxnscgtjodqafsvgpndlyhkes/Build/Products/Debug/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault .xctoolchain/usr/include -I/Users/Daly/Library/Developer/Xcode/DerivedData/Misc-hbomxnscgtjodqafsvgpndlyhkes/Build/Intermediates/Misc.build/Debug/Misc.build/DerivedSources/x86_64 -I/Users/Daly/Library /developer/xcode/deriveddata/misc-hbomxnscgtjodqafsvgpndlyhkes/intermediates/misc.build/debug/misc.build/derivedsources -f/uses/user/daly/library/developer/xcode/derivedsources-f/user/daly/library/develop/deriveddata ug -MMD -MT 依存関係 -MF /Users/Daly/Library/Developer/Xcode/DerivedData/Misc-hbomxnscgtjodqafsvgpndlyhkes/Build/Intermediates/Misc.build/Debug/Misc.build/Objects-normal/x86_64/template_tests.d --serialize -diagnostics /Users/Daly/Library/Developer/Xcode/DerivedData/Misc-hbomxnscgtjodqafsvgpndlyhkes/Build/Intermediates/Misc.build/Debug/Misc.build/Objects-normal/x86_64/template_tests.dia -c /Users/Daly/Documents /School/EECS/Labs/Misc/Misc/Misc/template_tests.cpp -o /Users/Daly/Library/Developer/Xcode/DerivedData/Misc-hbomxnscgtjodqafsvgpndlyhkes/Build/Intermediates/Misc.build/Debug/Misc.build/Objects -normal/x86_64/template_tests.o

(これは私のプロジェクトの 1 つからのものです。) 最初の行 (CompileC .... 1_0.compiler)、残りをコピーしてターミナルに貼り付けます。

これでエラーがわかり、そこから作業できることを願っています (おそらく新しい質問で)。

これは私のプロジェクトを名前変更したときに私に起こりました。 これを解決するには、ターゲット/ビルド設定を選択し、古いプロジェクト名を検索して新しい名前に置き換えます。

私は同じエラーを得ましたが、それが欠けているクラスライブラリの中に何を原因としていました。 それから私はそれらをプロジェクトに再び追加しましたが、それでもエラーを引き起こします。
ビルドフェーズで検索した後、行方不明のこれらのクラスはまだプロジェクトにリンクされているので、私がしたことはすべて赤に強調表示されたクラスを削除することです。
プロジェクトをきれいにしてから、それを構築します。
私にとって、それは

に働いた

最終溶液:

ここにあるようなapptestsを削除しようとしてください:

https://www.dropbox.com/s/j9s6nycb58x3nzs./target_tests.png?dl=0

この回答のクレジット: Apple LLVM 6.0エラー:CLANGは終了コードで失敗しました-1

この例私のために働いた。スクリーンショットでやりたい場合は、このリンクに従ってください。それ以外の場合は、次の手順です。
ステップ1: Xcode Select> Window> Organizerのメニューバーから
ステップ2:新しいウィンドウが開き、派生データアドレスを/derivedDataまでコピーします。~/Library/Developer/Xcode/DerivedData/
ステップ3: Xcodeを終了する
ステップ4:ファインダをダブルクリック/タップし、「フォルダに移動」を選択します。
ステップ5:テキストフィールドにコピーされたアドレスを貼り付けます
ステップ6:開くフォルダは、表示されているすべてのファイルとフォルダを削除します。
ステップ7:ゴミ箱を空にすると、もう一度Xcodeを開き、プロジェクトを実行します。
それは私のために働いた。

Temporary Solution.

I removed the 6.0 support which was one of the areas causing problem and that seemed to have fixed it. However, if you need support for earlier versions this will still be an issue.

There might be trouble at the prefix.pch file, make sure you also double check your prefix.pch for any code that might be from the previous os version. If you dont't need the pre-compilation set it to NO by going to TARGETS > PreCompile Prefix Headers and selecting NO. You may then need to manually import the frameworks/file to every class file you make.

EDIT

If you do a hard cleaning cmd + product > clean. You will see an option 'Clean Build Folder..'. Using that sometimes removes the issue. If that still doesn't work reinstall the xcode6 and it will work(since you already have the downloaded dmg setup, it will take 2min only)

I was able to resolve this error by changing the 'Build Settings -> iOS Deployment Target' value to a more recent iOS version.

I was trying to use openMP on XCode-9 on Mac-OS Sierra 10.13.4 and I followed these steps : [http://antonmenshov.com/2017/09/09/clang-openmp-setup-in-xcode/][1]

I have the error like this :

clang-6.0: error: cannot specify -o when generating multiple output files

I fix that problem by changing some settings in XCode:

In build settings > build options > Enable Index-While-Building Functionality to No

This problem might occur when the project library looses its reference due to some condition.Go to --> Library -->Developer --> Xcode -->DerivedData .Now delete the "DerivedData" folder.Clean and run your project. This solves the issue. Hope this helps

Such a problem may occur if you change some Cocoa header by an accident. The compiler will ask you to rebuild precompiled headers (in my case it did so), but the actual error will be different. To make the compiler show you a real error set ENABLE FOUNDATION ASSERTIONS to NO (it's described above), so, you'll find out which header caused failure.

You need to change the Development target .... it works for me

enter image description here

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top