LoginSignup
0

More than 5 years have passed since last update.

The following build commands failed:Write auxiliary files CompileC...エラーへの対処

Last updated at Posted at 2015-03-06

複数人でのCordovaでのアプリ開発にて、実際に起きたエラー。

Aさんがメインで開発したソースをバージョン管理システムにコミットし、
Bさんが、そのソースを落としてきてビルドしたら、以下のエラーが吐かれた。。。

開発がほぼ完了していた時だったので、メンバー騒然?!

The following build commands failed:
    Write auxiliary files
    CompileC
/your/app/path/platforms/ios/CordovaLib/build/CordovaLib.build/Debug-iphonesimulator/CordovaLib.build/Objects-normal/i386/NSDictionary+Extensions.o
Classes/NSDictionary+Extensions.m normal i386 objective-c
com.apple.compilers.llvm.clang.1_0.compiler
    CompileC
/your/app/path/platforms/ios/CordovaLib/build/CordovaLib.build/Debug-iphonesimulator/CordovaLib.build/Objects-normal/i386/CDVInvokedUrlCommand.o
Classes/CDVInvokedUrlCommand.m normal i386 objective-c
com.apple.compilers.llvm.clang.1_0.compiler
(3 failures)
Error:
/your/app/path/platforms/ios/cordova/build:
Command failed with exit code 65
    at ChildProcess.whenDone
(/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:135:23)
    at ChildProcess.emit (events.js:98:17)
    at maybeClose (child_process.js:756:16)
    at Process.ChildProcess._handle.onexit (child_process.js:823:5)

で、結論から言うと、iosのCordova platformを入れ直すしかないみたい。

$ cordova platform remove ios
$ cordova platform add ios

で、ここで注意点!!

上記のように、iosのCordova pluginを入れ直したら、自分たちで準備して配置していたiosのアイコン用画像とスプラッシュ用画像が、デフォルトの画像になっちゃいます。

なので、くれぐれも、iosのアイコン用画像とスプラッシュ用画像は、バックアップを取っておくようにしてください。

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
0