Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Apple Watch companion integration

Discussion in 'iOS and tvOS' started by dkulitsky, Jun 14, 2022.

  1. dkulitsky

    dkulitsky

    Joined:
    Aug 19, 2013
    Posts:
    5
    Hello, community!

    We try to do integration with Apple Watch (just communicating data between Unity3D & Apple Watch devices) but without luck.

    We try to do the simplest version - just build a generated XCode project from Unity3D with a new Watch App target.

    Our actions:

    1. Creating the new Unity3d project with version 2021.3.3f1.

    2. Switch to iOS target.

    3. Build xcode project

    4. Go to xcode project and add the new target:

      1. File -> New -> Target -> WatchOS Tab -> Watch App for iOS App
    5. iPhone or Simulator will generate the errors after run:

      1. unable to resolve product type 'com.apple.product-type.watchkit2-extension' for platform 'iphoneos'

      2. unable to resolve product type 'com.apple.product-type.application.watchapp2' for platform 'iphoneos'

      3. Couldn't look up product type 'com.apple.product-type.watchkit2-extension' in domain 'iphoneos': Couldn't load spec with identifier 'com.apple.product-type.watchkit2-extension' in domain 'iphoneos'

    A bit different situation if we try to add another type of the target on the XCode on the step 4:
    1. File -> New -> Target -> WatchOS Tab -> Watch App:
    We see “(unsupported family)” mark for our device or simulator:



    Xcode thinks that we try installing to wrong device but:
    • The Architecture Base SDK is set to “watchOS”.
    • Target device families is set to “Apple Watch”.
    We see that this issue also encourage another developers:

    https://forum.unity.com/threads/apple-watch-companion-unsupported-family.1220715/

    Someone won integration with Apple Watch in modern realities?
     
    Dliix66 and Stonegolemstudio like this.
  2. Stonegolemstudio

    Stonegolemstudio

    Joined:
    Feb 26, 2022
    Posts:
    9
    Absolutely following this thread. Been looking and trying for years now.
     
  3. dkulitsky

    dkulitsky

    Joined:
    Aug 19, 2013
    Posts:
    5
    I found the solution but it a bit weird and not easy.
     
  4. hansadler

    hansadler

    Joined:
    May 12, 2014
    Posts:
    50
    How did you do it? Can you provide links to the information you used to figure it out?
    Thanks
     
  5. HasithaCJ

    HasithaCJ

    Joined:
    May 20, 2017
    Posts:
    11
  6. justindpnt

    justindpnt

    Joined:
    Feb 21, 2019
    Posts:
    16
    Any update on this?
     
  7. ina

    ina

    Joined:
    Nov 15, 2010
    Posts:
    1,058