Yes, I have Xcode installed and have been using it for a while.I also tried MIX_ENV=PROD option and I get same error.
I have Erlang 19.2 and elixir 1.3.4. (tried reinstalling these yet again)
I don’t know why it is trying to use Apple core services , my mix.exs is reproduced below:
=============
defmodule SgsNotifications.Mixfile do
use Mix.Project
def project do
[app: :sgs_notifications,
version: "0.0.1",
elixir: "~> 1.2",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps()]
end
# Configuration for the OTP application.
#
# Type `mix help compile.app` for more information.
def application do
[mod: {SgsNotifications, []},
applications: [:phoenix, :phoenix_pubsub, :phoenix_html, :cowboy, :logger, :gettext]]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "web", "test/support"]
defp elixirc_paths(_), do: ["lib", "web"]
# Specifies your project dependencies.
#
# Type `mix help deps` for examples and options.
defp deps do
[{:phoenix, "~> 1.2.1"},
{:phoenix_pubsub, "~> 1.0"},
{:phoenix_html, "~> 2.6"},
{:phoenix_live_reload, "~> 1.0", only: :dev},
{:gettext, "~> 0.11"},
{:cowboy, "~> 1.0"}]
end
end
==========
Once again, my complete error stack is below:
==> fs (compile)
Compiling c_src/mac/cli.c
In file included from c_src/mac/cli.c:2:
In file included from c_src/mac/cli.h:4:
c_src/mac/common.h:5:10: fatal error: 'CoreServices/CoreServices.h' file not found
#include <CoreServices/CoreServices.h>
^
1 error generated.
ERROR: compile failed while processing /Users/xxx/elixir/SGSNotifications/deps/fs: rebar_abort
** (Mix) Could not compile dependency :fs, "/usr/local/bin/rebar compile skip_deps=true deps_dir="/Users/xxx/elixir/SGSNotifications/_build/dev/lib"" command failed. You can recompile this dependency with "mix deps.compile fs", update it with "mix deps.update fs" or clean it with "mix deps.clean fs"
PEshwar