Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19381] ti build --project-dir is not working if project contains a watchapp extension

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2015-08-21T20:43:30.000+0000
Affected Version/sn/a
Fix Version/sRelease 5.0.0
ComponentsiOS
Labelsn/a
ReporterChee Kiat Ng
AssigneeChris Barber
Created2015-08-20T06:48:35.000+0000
Updated2015-08-27T20:42:01.000+0000

Description

Steps to reproduce

1. Create a new project: ti create --type app --name foo --id com.appc.foo --platforms all --url http://foo --workspace-dir . 2. cd into the project: cd foo 3. Add a WatchKit 2 app: ti create --type applewatch --name bar --template watchos2 4. exit the project directory: cd / 5. Build the app: ti build -p ios -I 9.0 --project-dir

Expected result

The app will build. with or without --launch-watch-app

Actual result

The build fails with the following:
[ERROR] iOS extension "SGDemoWatchOS2" Xcode project not found: /extensions/SGDemoWatchOS2/SGDemoWatchOS2.xcodeproj
*Note: *Studio needs this fixed in order for it to build the project.

Comments

  1. Chris Barber 2015-08-21

    PR: https://github.com/appcelerator/titanium_mobile/pull/7058
  2. Eric Wieber 2015-08-27

    Verified fixed, using: MacOS 10.11 (15A263e) Studio 5.0.0.201508271032 Ti SDK 5.0.0.v20150827102632 Appc NPM 4.2.0-1 Appc CLI 5.0.0-24 Ti CLI 4.1.5 Alloy 1.7.5 Arrow 1.2.48 Xcode 7.0 (7A192o) Node v0.10.37 Java 1.7.0_45 preproduction Can successfully build a project containing a watchkit 2 app, using --project-dir, without error

JSON Source