Problem description
Cannot build ad-hoc using Titanium CLI. The following error is reported:
ERROR] ** BUILD FAILED **
[ERROR] The following build commands failed:
[ERROR] CodeSign build/Release-iphoneos/TestApp.app
[ERROR] (1 failure)
Steps to reproduce
Create a project and build ad-hoc using CLI:
titanium build --build-only --force --log-level=debug --platform=ios --project-dir=. --device-family=iphone --distribution-name="[DISTRIBUTION-NAME]" --ios-version=6.1 --keychain=/Users/[USER]/Library/Keychains/ --target=dist-adhoc --pp-uuid=[PROVISIONING-PROFILE-UUID]
Please provide the CLI version shown with "ti -v" The output above points to a code-signing error. Please verify the provision is in place, and that the identity and provision are correct. Use Xcode to verify both, or use "ti info -p ios" and check both are correct. Look specifically for the distribution identity under "Distribution" and the provision under "Adhoc iOS Provisioning Profiles". For example:
There are a few things to clarify here: You don't need the "=" characters. You don't need the "--project-dir" if you are going to specify "." "--force" is a ti create flag, not a build flag. With adhoc target, you must specify output directory for the ipa. Use "-O" (or "--output-dir") The "--build-only" flag is designed to prevent a simulator or device build from running the simulator/device install and run. You don't need that in this case. Using the command as presented (but removing the non-functional parts, and adding the required flag "-O") I was unable to reproduce. I do not have multiple keychains on my system currently and am unsure if the reporter needs to use another keychain other than the default. Please note however, the -b should not prevent an ipa from being created. I will create a bug for that and link it to this one. Example build commands for adhoc: ti build -p ios -T dist-adhoc -F iphone -V "Eric Merriman" -P 207TC916-0727-45F8-83E2-FC13B26F9F3S -I 6.1 -K
CLI version 3.1.2, Titanium SDK version 3.1.2.GA Ran into this problem today, titanium was defaulting to xcode 5 SDK (even after xcode-select), seems to be if you use
-ios-version=6.1
and-build-only
you don't get an ipa.Unable to reproduce this issue, tested with the following environment; iPhone 7 and Simulator (10.2) MacOS 10.11.6 (15G31) Studio 4.8.1.201612050850 Ti SDK 6.0.2 GA Appc NPM 4.2.8 Appc CLI 6.1.0 Ti CLI 5.0.11 Alloy 1.9.5 Arrow 1.10.1 Xcode 8.2 (8C38) Node v4.6.0 Java 1.7.0_80