2

Having trouble while creating archive of ios project (swift). The project has a build target, which requires /usr/bin/make to be set as build tool, but while trying to create an archive I constantly get error: unable to spawn process '/usr/bin/make' (No such file or directory) The make file exists in /Applications/Xcode.app/Contents/Developer/usr/bin/ and also added to PATH variable

potato_fog
  • 318
  • 1
  • 11

1 Answers1

1

Despite XCode provided only error: unable to spawn process '/usr/bin/make' (No such file or directory) message, the real reason was in the same target's External Build Tool Configuration Directory path value. It required different directories for debug and release builds

potato_fog
  • 318
  • 1
  • 11
  • 2
    Hi I am having the same issue when I am trying to run the code in a device. I didn't quite understand the answer. Could you please help me here? – Vishnu Prasannan Oct 26 '21 at 08:57
  • @VishnuPrasannan hey :) In my case the following thing worked: in target's `Info` tab the `Directory` path depends on debug/release configuration. So I created `$CUSTOM_BUILD_PATH` for each configuration and set it as `Directory` value. You'll have to find out what `$CUSTOM_BUILD_PATH` works for your particular target – potato_fog Oct 26 '21 at 09:28
  • @potato_fog Could you please explain this more in detail in your answer? Ideally with an example, as it's very hard to understand what you mean. Thank you – Houman Dec 27 '21 at 08:43