LoginSignup
11
6

More than 5 years have passed since last update.

iOS / Makefileで「Makefile:2: *** missing separator. Stop.」でエラー

Posted at

iOSアプリのビルド用にMakefile書いてたら、以下のエラーが出ました

Makefile:2: *** missing separator.  Stop.

書いてたMakefileはこんな感じ。

default:
  xcodebuild -workspace SampleApp.xcworkspace -scheme SampleApp -configuration Adhoc -sdk iphoneos clean build

adhoc:
  if [ -a build]; then rm -R build; fi;
  xcodebuild -sdk iphoneos -workspace SampleApp.xcworkspace -scheme SampleApp -configuration Adhoc clean build CONFIGURATION_BUILD_DIR=$(PWD)/build PROVISIONING_PROFILE=********-****-****-****-************
  xcrun -sdk iphoneos PackageApplication build/SampleApp.app -o $(PWD)/build/SampleAppAdhoc.ipa --embed SampleAdhoc.mobileprovision

xcodebuild/xcrun部分の字下げがタブでなくスペース2つだったのでこんなエラーが出てました。

タブに直したらエラーが消えました。

あんましMakefileに馴染みがないからか、この辺は直感的にわからないですね(’ω`)

11
6
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
11
6