Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-19469

Cannot install a mobile app that contains a watchkit1 extension to an iOS device

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Release 5.0.0
    • Fix Version/s: Release 5.0.0
    • Component/s: iOS
    • Labels:
    • Environment:
    • Story Points:
      5

      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:

      1. Create a Titanium App with ti create
      2. Next, go into the project and create the Apple Watch App with ti create
      3. 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
      4. Make sure you have development provisioning profiles for each app id with app group id enabled
      5. Make sure to app group capabilities is enabled in the watchkit extension target and watchkit app target
      6. 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.

        Attachments

          Activity

            People

            • Assignee:
              cbarber Chris Barber
              Reporter:
              wluu Wilson Luu (Inactive)
              Reviewer:
              Chee Kiat Ng (Inactive)
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-20327
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code