Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19469] Cannot install a mobile app that contains a watchkit1 extension to an iOS device

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2015-09-04T22:52:07.000+0000
Affected Version/sRelease 5.0.0
Fix Version/sRelease 5.0.0
ComponentsiOS
Labelsqe-5.0.0
ReporterWilson Luu
AssigneeChris Barber
Created2015-09-04T22:09:59.000+0000
Updated2015-09-08T23:20:42.000+0000

Description

*Details:* Cannot install a mobile app that contains a watchkit1 extension to an iOS device. *Note:* This issue is also reproducible from Appc CLI. *Steps to reproduce:*

Create a Titanium App with ti create

Next, go into the project and create the Apple Watch App with ti create

Make sure the mobile app, watchkit app, and watchkit extension have the correct app ids: com.appc.monkey, com.appc.monkey.watchkitapp, and com.appc.monkey.watchkitextension

Make sure you have development provisioning profiles for each app id with app group id enabled

Make sure to app group capabilities is enabled in the watchkit extension target and watchkit app target

Next, install the mobile app to an iOS device that is paired to a watch: ti build -p ios -T device

*Actual:* Build will fail to install to device with the following error:
/usr/local/lib/node_modules/titanium/node_modules/longjohn/dist/longjohn.js:194
        throw e;
              ^
Error: ENOENT, no such file or directory '/Users/wluu/monkeyClassicWatch/build/iphone/extensions/miniclassic/miniclassic WatchKit Extension/miniclassic WatchKit Extension/miniclassic WatchKit Extension.entitlements'
    at fs.openSync (fs.js:439:18)
    at fs.writeFileSync (fs.js:978:15)
    at iOSBuilder._embedCapabilitiesAndWriteEntitlementsPlist (/Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/5.0.0.v20150903221516/iphone/cli/commands/_build.js:3048:6)
    at iOSBuilder.<anonymous> (/Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/5.0.0.v20150903221516/iphone/cli/commands/_build.js:3818:9)
    at Array.forEach (native)
    at iOSBuilder.<anonymous> (/Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/5.0.0.v20150903221516/iphone/cli/commands/_build.js:3812:37)
    at Array.forEach (native)
    at iOSBuilder.copyExtensionFiles (/Users/wluu/Library/Application Support/Titanium/mobilesdk/osx/5.0.0.v20150903221516/iphone/cli/commands/_build.js:3727:18)
    at /UWilsonComputer:monkeyClassicWatch
*Expected:* Should be able to install a mobile app with watchkit extension.

Comments

  1. Chris Barber 2015-09-04

    Master PR: https://github.com/appcelerator/titanium_mobile/pull/7126 5_0_X PR: https://github.com/appcelerator/titanium_mobile/pull/7127
  2. Chee Kiat Ng 2015-09-04

    Approved. PRs merged.
  3. Wilson Luu 2015-09-08

    Closing ticket as fixed. Verified that I was able to install a mobile app that contains a watchkit1 extension to an iOS device. Tested on: Appc CLI NPM: 4.2.0-1 Appc CLI Core: 5.0.0-45 Arrow: 1.2.57 SDK: 5.0.0.v20150908120738 Node: v0.10.38 OS: Yosemite (10.10.5) Xcode: 7 beta 6 Devices: iphone 6 plus (9.0) with Apple Watch 38mm

JSON Source