Your First Apple Watch Kit App with Xamarin

Posts

  • neuberfranneuberfran BRMember ✭✭

    in time 2''35'''

  • LarryOBrienLarryOBrien USXamarin Team Xamurai
    edited September 2016

    The WatchOS templates now automatically set the proper references between your Watch App and your Watch Extension, so you can safely skip this step.

    You still must make sure that your info.plist files have proper bundle identifiers between the iPhone app, the Watch App, and the Watch Extension.

  • neuberfranneuberfran BRMember ✭✭
    edited October 2016
  • LarryOBrienLarryOBrien USXamarin Team Xamurai

    If your watch is provisioned and docked, it should appear in the list, similar to this:

  • LarryOBrienLarryOBrien USXamarin Team Xamurai

    I think that's what you see when you rename the event handler and the partial function from your original name is left in your implementation file. Open your InterfaceController.designer.cs file and you should see the matching partial function.

  • neuberfranneuberfran BRMember ✭✭

    objc[769]: Class VCWeakObjectHolder is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/WatchSimulator.platform/Developer/SDKs/WatchSimulator.sdk/System/Library/PrivateFrameworks/GameKitServices.framework/Frameworks/ViceroyTrace.framework/ViceroyTrace (0x142100f8) and /Applications/Xcode.app/Contents/Developer/Platforms/WatchSimulator.platform/Developer/SDKs/WatchSimulator.sdk/System/Library/PrivateFrameworks/GameKitServices.framework/Frameworks/AVConference.framework/AVConference (0x14156994). One of the two will be used. Which one is undefined.
    2016-10-26 05:57:19.481 MyFirstCuExtension[769:9438] Xamarin.WatchOS: Found port 49299 in environment variables
    2016-10-26 05:57:19.482 MyFirstCuExtension[769:9438] Xamarin.WatchOS: Read 1024 bytes from shared memory: 0x161e5000 with key 505746 and id 65536
    2016-10-26 05:57:19.482 MyFirstCuExtension[769:9438] Xamarin.WatchOS: Found port 49299 in shared memory, but not overriding existing port 49299
    2016-10-26 05:57:19.509 MyFirstCuExtension[769:9438] Xamarin.WatchOS: Added IP to look for the IDE: 127.0.0.1
    2016-10-26 05:57:19.510 MyFirstCuExtension[769:9438] Xamarin.WatchOS: IDE Port: 49299 Transport: WiFi
    2016-10-26 05:57:19.510 MyFirstCuExtension[769:9438] Xamarin.WatchOS: Established connection with the IDE (fd: 5)
    2016-10-26 05:57:19.512 MyFirstCuExtension[769:9438] Xamarin.WatchOS: Processing: 'start debugger: sdb'
    2016-10-26 05:57:19.512 MyFirstCuExtension[769:9438] Xamarin.WatchOS: Established connection with the IDE (fd: 6)
    2016-10-26 05:57:19.514 MyFirstCuExtension[769:9438] Xamarin.WatchOS: Processing: 'connect output'
    2016-10-26 05:57:19.514 MyFirstCuExtension[769:9438] Xamarin.WatchOS: Established connection with the IDE (fd: 7)
    2016-10-26 05:57:19.514 MyFirstCuExtension[769:9438] Xamarin.WatchOS: Processing: 'start profiler: no'
    2016-10-26 05:57:19.517 MyFirstCuExtension[769:9428] Xamarin.WatchOS: Debugger loaded with custom transport (fd: 5)
    2016-10-26 05:57:19.531 MyFirstCuExtension[769:9428] Xamarin.WatchOS: Profiler not loaded (disabled)
    2016-10-26 05:57:19.806 MyFirstCuExtension[769:9428] Xamarin.WatchOS: Added dllmap for objc_msgSend
    Loaded assembly: /Users/neuberfran/Library/Developer/CoreSimulator/Devices/EAB48E74-F451-4DEC-9ED8-FFEC1626D8CC/data/Containers/Bundle/Application/0DB51083-2CBD-4267-BB1E-32578566A12E/MyFirstCu.app/PlugIns/MyFirstCuExtension.appex/Xamarin.WatchOS.dll
    Loaded assembly: /Users/neuberfran/Library/Developer/CoreSimulator/Devices/EAB48E74-F451-4DEC-9ED8-FFEC1626D8CC/data/Containers/Bundle/Application/0DB51083-2CBD-4267-BB1E-32578566A12E/MyFirstCu.app/PlugIns/MyFirstCuExtension.appex/System.dll
    Loaded assembly: /Users/neuberfran/Library/Developer/CoreSimulator/Devices/EAB48E74-F451-4DEC-9ED8-FFEC1626D8CC/data/Containers/Bundle/Application/0DB51083-2CBD-4267-BB1E-32578566A12E/MyFirstCu.app/PlugIns/MyFirstCuExtension.appex/MyFirstCuExtension.dll
    2016-10-26 05:57:20.399 MyFirstCuExtension[769:9428] ObjCRuntime.RuntimeException: The registrar found a signature mismatch in the method 'MyFirst.CuExtension.InterfaceController.myButton_Activated' - the selector 'myButton_Activated' indicates the method takes 0 parameters, while the managed method has 1 parameters.
    2016-10-26 05:57:20.438 MyFirstCuExtension[769:9428] *** Terminating app due to uncaught exception 'ObjCRuntime.RuntimeException', reason: 'The registrar found a signature mismatch in the method 'MyFirst.CuExtension.InterfaceController.myButton_Activated' - the selector 'myButton_Activated' indicates the method takes 0 parameters, while the managed method has 1 parameters.'
    *** First throw call stack:
    (
    0 CoreFoundation 0x00605a22 __exceptionPreprocess + 194
    1 libobjc.A.dylib 0x0595ae76 objc_exception_throw + 52
    2 libxamarin-debug.dylib 0x0580f1a3 xamarin_process_managed_exception + 995
    3 libxamarin-debug.dylib 0x0580edaf xamarin_process_managed_exception_gchandle + 63
    4 libxamarin-debug.dylib 0x0581d85a xamarin_main + 2746
    5 MyFirstCuExtension 0x000b162c xamarin_watchextension_main + 124
    6 libdyld.dylib 0x0669785d start + 1
    )
    libc++abi.dylib: terminating with uncaught exception of type NSException

Sign In or Register to comment.