Project: titanium
Issue TIMOB-19469: Cannot install a mobile app that contains a watchkit1 extension to an iOS device
*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: {code} /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. (/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. (/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 {code} *Expected:* Should be able to install a mobile app with watchkit extension.
Story points: 5