Unable to build for ios
Currently unable to build for ios platform even after removing and re-adding it. It just get stuck halfway (as per screenshot)
ionic build ios --release
Tried using cordova-ios 4.2.1, 4.1.1 and 4.1.0
I have also tried starting a brand new ionic app, which result in the same problem

My current system information:
Cordova CLI: 6.3.1 Ionic Framework Version: 2.0.0-beta.11 Ionic CLI Version: 2.1.0 Ionic App Lib Version: 2.1.0-beta.1 ios-deploy version: 1.9.0 ios-sim version: 5.0.8 OS: Mac OS X El Capitan Node Version: v4.3.0 Xcode version: Xcode 8.0 Build version 8A218a
I have the exact same problem, I even tried with different version of ionic and cordova in case it was related (ionic 1.7.16 and cordova 5.4.1 lead to the same problem)
system information using the script provided:
Cordova CLI: 6.4.0 Ionic CLI Version: 2.1.8 Ionic App Lib Version: 2.1.4 ios-deploy version: 1.8.6 ios-sim version: 5.0.8 OS: OS X El Capitan Node Version: v6.7.0 Xcode version: Xcode 8.1 Build version 8B62
Here is a script that helps reproducing the issue:
#!/usr/bin/env bash
BASE_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
CORDOVA_VERSION=6.4.0
IONIC_VERSION=2.1.8
TOOLS_FOLDER="${BASE_DIR}/tmp_tools"
PROJECT_NAME="demo"
PROJECT_FOLDER="${BASE_DIR}/${PROJECT_NAME}"
if which yarn > /dev/null ; then
echo "Yarn already installed"
else
echo "Installing yarn globally to speed up installing ionic/cordova packages"
npm install -g yarn
fi
echo "Creating a local node_module for ionic and cordova"
mkdir -p "${TOOLS_FOLDER}"
cd "${TOOLS_FOLDER}"
rm -rf "${TOOLS_FOLDER}/node_modules"
yarn add --no-lockfile cordova@${CORDOVA_VERSION} ionic@${IONIC_VERSION} || { echo "An error occured while installing cordova/ionic, restart the script"; exit 1; }
# Exporting it to path in order to get access to it from command line directly
PATH="${TOOLS_FOLDER}/node_modules/.bin:$PATH"
ionic info
echo "Recreating ionic project ${PROJECT_NAMWE} in ${PROJECT_FOLDER}"
#Delete any previous version of the project
rm -rf "${PROJECT_FOLDER}"
ionic start --appname "${PROJECT_NAME}" --id "com.test.${PROJECT_NAME}" "${PROJECT_FOLDER}"
cd "${PROJECT_FOLDER}"
echo ""
echo "#####################################################################################"
echo ""
echo "Debug build will fail because of signing issue and it's normal, at least it builds!"
echo "Press a key to build debug version"
read
ionic build ios --device
echo ""
echo "#####################################################################################"
echo ""
echo "The build will fail silently if you add the --relase flag"
echo "Press a key to build release version"
read
ionic build ios --device --release
echo "The release build is completed (but the process did not complete)"
PS: Also with ionic >= 2 or cordova >= 6, the emulator won't start on the first try for some reason using the same project creation process
Hi @cnadeau, are you on Sierra? You could try to move your files to a folder that doesn't sync with iCloud (i.e. Downloads folder). That seems fix the problem. Let me know how that goes.
No, El-Captain, just did tried in ~/Downloads but still, I get the same behavior
Thanks for the suggestion :-)
Thanks for the issue! This issue appears to be associated with an old version of the Ionic CLI. Please update to the latest CLI version, which supports all versions of the Ionic Framework. If the issue is relevant and if it persists after updating to the latest CLI version, please create a new issue.
Thank you for using Ionic!