Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17034] iOS: Cannot build for device from Xcode using the build project

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2014-05-30T22:53:31.000+0000
Affected Version/sn/a
Fix Version/sRelease 3.3.0, Release 3.4.0
ComponentsiOS
Labelsmodule_build, qe-closed-3.3.0, qe-testadded
ReporterSabil Rahim
AssigneeChris Barber
Created2014-05-27T22:42:29.000+0000
Updated2014-06-24T23:13:19.000+0000

Description

Steps to Reproduce

* Build an using cli * Open the app in Xcode (build/iphone/.xcodeproject) * Try building the project for device.

Actual Result.

Build fails with the following output
[INFO] :   tiapp.xml <sdk-version> set to 3.3.0.v20140524224144, but current Titanium SDK set to 3.3.0
[INFO] :   Forking correct SDK command: "/usr/local/bin/node" "/usr/local/bin/ti" "build" "--sdk" "3.3.0.v20140524224144" "--no-prompt" "--no-banner" "--build-only" "--xcode" "--config-file" "/Users/sabilrahim/.titanium/config.json" "--platform" "iphone" "--project-dir" "/Users/sabilrahim/titaniumworkspace/instrumentstest" "--log-level" "trace" "--distribution-name" "iPhone Developer" "--ios-version" "7.1" "--target" "device"
[ERROR] :  Missing required option: --developer-name <name>

[ERROR] :  Missing required option: --pp-uuid <uuid>

Expected Result

The app builds successfully and runs on device.

Notes.

There seems two problems here. 1. The SDK version in the pre compile command is hard coded. 2. The env variable is not being passed in correctly.

Comments

  1. Chris Barber 2014-05-28

    Master pull request: https://github.com/appcelerator/titanium_mobile/pull/5737 3_3_X pull request: https://github.com/appcelerator/titanium_mobile/pull/5738 To test, connect an iOS device, build an iOS app for device (--build-only if you want to save some time), then open the Xcode project and build for device.
  2. Chris Barber 2014-05-28

    Here's the related Q&A ticket: http://developer.appcelerator.com/question/161067/trying-to-archive-for-ad-hoc-but-gets-error-i-xcode---developer-name----pp-uuid
  3. Samuel Dowse 2014-06-04

    Verified fixed on: Mac OSX 10.9.3 Appcelerator Studio, build: 3.3.0.201405271647 Titanium SDK, build: 3.3.0.v20140603152512 Titanium CLI, build: 3.3.0-beta Alloy: 1.4.0-beta Xcode: 5.1.1 iOS Device: iPhone 5S (7.1.1) Followed test steps provided by Chris, application built to device from Xcode successfully. Closing.

JSON Source