Carthage fails to start when running from Xcode 10 Build pre-action
The solution that worked for me was to unset one of the env variables coming from XCode 10 just before executing carthage update:
unset LLVM_TARGET_TRIPLE_SUFFIX
carthage update
In my case, restarting macOS fixed the problem.