Open tipa opened 3 years ago
Can you try opening the project properties for the WatchKit3Extension project, and in the "watchOS Build" page, set "Supported architectures" to i386 + x86_64
and see if that works for you?
Thanks for your quick reply.
Now I am getting this error/crash:
2021-02-19 21:27:06.703238+0100 Watchkit2Extension[4043:155636] [default] -[SPApplicationDelegate _terminateWK1App:]:751: WatchKit 1 apps aren't supported on this version of watchOS. Quitting "(null)"
I suggest fixing that demo project, it is referenced in the "Getting started" docs: https://docs.microsoft.com/en-us/xamarin/ios/watchos/get-started/installation
@tipa is that with the same sample (https://docs.microsoft.com/en-us/samples/xamarin/ios-samples/watchos-watchkitcatalog/)? Because I just tried downloading that sample, changing the architectures to i386 + x86_64, and I was able to launch in the watch simulator (with watchOS 7.2).
@rolfbjarne yes, this project. I just downloaded it again from scratch, changed the architecture and nothing else - same error. App seems to start up for 2 secs, then crashes/closes
2021-02-23 15:02:09.030451+0100 Watchkit2Extension[26209:701048] [default] lookupMainFuncAddressInMachHeader:48: Could not find matching binary in dyld list
2021-02-23 15:02:09.038714+0100 Watchkit2Extension[26209:701048] SecTaskLoadEntitlements failed error=22 cs_flags=200, pid=26209
2021-02-23 15:02:09.039429+0100 Watchkit2Extension[26209:701048] SecTaskCopyDebugDescription: Watchkit2Extensi[26209]/0#-1 LF=0
2021-02-23 15:02:09.118576+0100 Watchkit2Extension[26209:701048] [db] _LSSchemaConfigureForStore failed with error Error Domain=NSOSStatusErrorDomain Code=-10817 "(null)" UserInfo={_LSFunction=_LSSchemaConfigureForStore, ExpectedSimulatorHash={length = 32, bytes = 0xf594fc2f f09d184e dedab11d f2e17489 ... 49c66730 2b30a8b8 }, _LSLine=405, WrongSimulatorHash={length = 32, bytes = 0x31cd89fe 3a124cd3 dbc2f4bf 8b829bed ... bca61032 d52c63a2 }}
2021-02-23 15:02:09.119211+0100 Watchkit2Extension[26209:701048] [db] Failed to initialize client context with error Error Domain=NSOSStatusErrorDomain Code=-10817 "(null)" UserInfo={_LSFunction=_LSSchemaConfigureForStore, ExpectedSimulatorHash={length = 32, bytes = 0xf594fc2f f09d184e dedab11d f2e17489 ... 49c66730 2b30a8b8 }, _LSLine=405, WrongSimulatorHash={length = 32, bytes = 0x31cd89fe 3a124cd3 dbc2f4bf 8b829bed ... bca61032 d52c63a2 }}
2021-02-23 15:02:09.127596+0100 Watchkit2Extension[26209:701048] [db] _LSSchemaConfigureForStore failed with error Error Domain=NSOSStatusErrorDomain Code=-10817 "(null)" UserInfo={_LSFunction=_LSSchemaConfigureForStore, ExpectedSimulatorHash={length = 32, bytes = 0xf594fc2f f09d184e dedab11d f2e17489 ... 49c66730 2b30a8b8 }, _LSLine=405, WrongSimulatorHash={length = 32, bytes = 0x31cd89fe 3a124cd3 dbc2f4bf 8b829bed ... bca61032 d52c63a2 }}
2021-02-23 15:02:09.127719+0100 Watchkit2Extension[26209:701048] [db] Failed to initialize client context with error Error Domain=NSOSStatusErrorDomain Code=-10817 "(null)" UserInfo={_LSFunction=_LSSchemaConfigureForStore, ExpectedSimulatorHash={length = 32, bytes = 0xf594fc2f f09d184e dedab11d f2e17489 ... 49c66730 2b30a8b8 }, _LSLine=405, WrongSimulatorHash={length = 32, bytes = 0x31cd89fe 3a124cd3 dbc2f4bf 8b829bed ... bca61032 d52c63a2 }}
2021-02-23 15:02:09.172937+0100 Watchkit2Extension[26209:701048] [db] _LSSchemaConfigureForStore failed with error Error Domain=NSOSStatusErrorDomain Code=-10817 "(null)" UserInfo={_LSFunction=_LSSchemaConfigureForStore, ExpectedSimulatorHash={length = 32, bytes = 0xf594fc2f f09d184e dedab11d f2e17489 ... 49c66730 2b30a8b8 }, _LSLine=405, WrongSimulatorHash={length = 32, bytes = 0x31cd89fe 3a124cd3 dbc2f4bf 8b829bed ... bca61032 d52c63a2 }}
2021-02-23 15:02:09.173055+0100 Watchkit2Extension[26209:701048] [db] Failed to initialize client context with error Error Domain=NSOSStatusErrorDomain Code=-10817 "(null)" UserInfo={_LSFunction=_LSSchemaConfigureForStore, ExpectedSimulatorHash={length = 32, bytes = 0xf594fc2f f09d184e dedab11d f2e17489 ... 49c66730 2b30a8b8 }, _LSLine=405, WrongSimulatorHash={length = 32, bytes = 0x31cd89fe 3a124cd3 dbc2f4bf 8b829bed ... bca61032 d52c63a2 }}
2021-02-23 15:02:09.187951+0100 Watchkit2Extension[26209:701048] SecTaskLoadEntitlements failed error=22 cs_flags=200, pid=26209
2021-02-23 15:02:09.188190+0100 Watchkit2Extension[26209:701048] SecTaskCopyDebugDescription: Watchkit2Extensi[26209]/0#-1 LF=0
2021-02-23 15:02:09.236986+0100 Watchkit2Extension[26209:701048] [db] _LSSchemaConfigureForStore failed with error Error Domain=NSOSStatusErrorDomain Code=-10817 "(null)" UserInfo={_LSFunction=_LSSchemaConfigureForStore, ExpectedSimulatorHash={length = 32, bytes = 0xf594fc2f f09d184e dedab11d f2e17489 ... 49c66730 2b30a8b8 }, _LSLine=405, WrongSimulatorHash={length = 32, bytes = 0x31cd89fe 3a124cd3 dbc2f4bf 8b829bed ... bca61032 d52c63a2 }}
2021-02-23 15:02:09.237108+0100 Watchkit2Extension[26209:701048] [db] Failed to initialize client context with error Error Domain=NSOSStatusErrorDomain Code=-10817 "(null)" UserInfo={_LSFunction=_LSSchemaConfigureForStore, ExpectedSimulatorHash={length = 32, bytes = 0xf594fc2f f09d184e dedab11d f2e17489 ... 49c66730 2b30a8b8 }, _LSLine=405, WrongSimulatorHash={length = 32, bytes = 0x31cd89fe 3a124cd3 dbc2f4bf 8b829bed ... bca61032 d52c63a2 }}
2021-02-23 15:02:09.237583+0100 Watchkit2Extension[26209:701048] [default] -[SPApplicationDelegate _terminateWK1App:]:751: WatchKit 1 apps aren't supported on this version of watchOS. Quitting "(null)"
Turns out I can repro on an M1 machine, but not on Intel machines.
@rolfbjarne: Yes correct. M1 machine not able to run but intel machine works fine. Can you please find the solution for the M1 Machine?
Can someone confirm whether it's actually possible to run WatchKit apps on M1? I found https://stackoverflow.com/questions/66657154/are-m1-macs-able-to-run-watch-apps claiming the contrary
If it even fails in Xcode, xamarin has no chance
Can someone confirm whether it's actually possible to run WatchKit apps on M1? I found https://stackoverflow.com/questions/66657154/are-m1-macs-able-to-run-watch-apps claiming the contrary
If it even fails in Xcode, xamarin has no chance
I'm pretty sure I was running WatchOS apps on both the Simulator (definitely) and real devices. In Xcode 12 it was flaky, the Xcode 13 betas are much better - debugging apps on real devices in the Xcode 13 beta is much more fast and reliable.
Hi @rolfbjarne! Is there any workaround? I recently updated to a Mac M1 and now I'm really stuck in this issue. Tks!
I also changed to M1 Pro Macbook and I'm facing the same issue. Now it is not possible to develop an iOS Watch App with M1 neither on a Simulator nor on real device (https://github.com/xamarin/xamarin-macios/issues/8810). This is maximum frustrating and there seems to be no changes in the future.
@rolfbjarne Can you tell me who is the manager and take care about the development of Xamarin for supporting Apple Watch.
So I would come to the decision, that Xamarin is not the future of mobile development. Does this work in VS Mac 2022 Preview with MAUI?
Hi @DamianMehers! Please let us know if this issue will be fixed and when. I have a WatchOs project that cannot be used in any way (Tried in Visual Studio for Mac 2019 and 2022). Not sure whether Microsoft is focusing on WatchOS support any more.
Hi @DamianMehers! Please let us know if this issue will be fixed and when. I have a WatchOs project that cannot be used in any way (Tried in Visual Studio for Mac 2019 and 2022). Not sure whether Microsoft is focusing on WatchOS support any more.
I'm afraid I've moved from using .NET/C# to using Swift and SwiftUI for my Apple Watch and iOS apps :-(. With .NET MAUI, Apple Watch support has been dropped, at least in the initial release.
Just in case it wasn't clear, I'm just a developer using the tools like you, I don't work for Microsoft.
Steps to Reproduce
Expected Behavior
watchOS and iOS simulators start up and app launches
Actual Behavior
watchOS and iOS simulators start up but this error shows up:
error HE0046: Failed to install the app 'com.xamarin.WatchKitCatalogDemo.watchkitapp' on the device 'watchOS 7.2 (18S561) - Apple Watch Series 6 - 44mm': ???WatchKitCatalog??? Needs To Be Updated
Environment
Example Project (If Possible)
https://docs.microsoft.com/en-us/samples/xamarin/ios-samples/watchos-watchkitcatalog/