Open DamianMehers opened 4 years ago
It should be possible to work around this by disabling incremental builds in the watch extension's watchOS Build project options.
@rolfbjarne this is for an app downloaded from TestFlight, built and archived in Release mode. I'll double-check but I'm pretty sure I don't have incremental builds enabled (is that even possible in release builds?)
@rolfbjarne Double-checked. Incremental Builds not enabled. To confirm, it runs fine when I run it interactively in Release build from the IDE. Just not when downloaded in TestFlight.
I'm Archiving inside Visual Studio (Mac) and then signing and uploading to the App Store using Xcode Organizer.
I'm using the latest Release downloads of Xcode (11.2.1) and Visual Studio for Mac
Removing the WatchKit Intents extension from the WatchOS app resolved this. I'll update the title. Still an issue because I'd like to handle a Siri intent in my watch app.
You can probably work around this by adding --nodevcodeshare
to the additional mtouch arguments in both the watchOS extension and the watchOS Intents Extension's watchOS Build project options.
@rolfbjarne That worked, many thanks for this workaround. For anyone wondering what that flag does, Rolf has a good explanation here
Steps to Reproduce
Link Framework SDKs Only
enabled . Verify that it runs locally on a real phone, in release build.Expected Behavior
No crash
Actual Behavior
Crash. I tried targettting WatchOS5.1 and 6.1 This is the diagnostic from the watch:
Environment
=== Visual Studio Community 2019 for Mac ===
Version 8.3.8 (build 8) Installation UUID: e2bf6735-5ded-4eb1-b901-9d8099d9d7bb GTK+ 2.24.23 (Raleigh theme) Xamarin.Mac 5.16.1.24 (d16-3 / 08809f5b)
=== Mono Framework MDK ===
Runtime: Mono 6.4.0.208 (2019-06/07c23f2ca43) (64-bit) Package version: 604000208
=== NuGet ===
Version: 5.3.0.6192
=== .NET Core SDK ===
SDK: /usr/local/share/dotnet/sdk/3.0.100/Sdks SDK Versions: 3.0.100 2.1.701 2.1.700 2.1.505 2.1.504 2.1.503 2.1.302 2.1.301 2.1.4 MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/6.4.0/lib/mono/msbuild/Current/bin/Sdks
=== .NET Core Runtime ===
Runtime: /usr/local/share/dotnet/dotnet Runtime Versions: 3.0.0 2.1.13 2.1.12 2.1.11 2.1.9 2.1.8 2.1.7 2.1.2 2.1.1 2.0.5
=== Xamarin.Profiler ===
Version: 1.6.12.29 Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler
=== Updater ===
Version: 11
=== Apple Developer Tools ===
Xcode 11.2.1 (15526.1) Build 11B500
=== Xamarin.Mac ===
Version: 6.6.0.12 (Visual Studio Community) Hash: e3c2b406d Branch: xcode11.2 Build date: 2019-11-01 00:12:07-0400
=== Xamarin.iOS ===
Version: 13.6.0.12 (Visual Studio Community) Hash: e3c2b406d Branch: xcode11.2 Build date: 2019-11-01 00:12:08-0400
=== Xamarin Designer ===
Version: 16.3.0.256 Hash: 8a223bfd7 Branch: remotes/origin/d16-3 Build date: 2019-11-01 21:02:02 UTC
=== Xamarin.Android ===
Version: 10.0.6.2 (Visual Studio Community) Commit: xamarin-android/d16-3/c407838 Android SDK: /Users/damian/Library/Developer/Xamarin/android-sdk-macosx Supported Android versions: 7.0 (API level 24) 7.1 (API level 25) 8.0 (API level 26) 8.1 (API level 27)
SDK Tools Version: 26.1.1 SDK Platform Tools Version: 28.0.1 SDK Build Tools Version: 26.0.3
Build Information: Mono: mono/mono/2019-06@476d72b9e32 Java.Interop: xamarin/java.interop/d16-3@5836f58 LibZipSharp: grendello/LibZipSharp/d16-3@71f4a94 LibZip: nih-at/libzip/rel-1-5-1@b95cf3fd ProGuard: xamarin/proguard/master@905836d SQLite: xamarin/sqlite/3.27.1@8212a2d Xamarin.Android Tools: xamarin/xamarin-android-tools/d16-3@cb41333
=== Microsoft Mobile OpenJDK ===
Java SDK: /Users/damian/Library/Developer/Xamarin/jdk/microsoft_dist_openjdk_1.8.0.25 1.8.0-25 Android Designer EPL code available here: https://github.com/xamarin/AndroidDesigner.EPL
=== Android SDK Manager ===
Version: 1.4.0.65 Hash: c33b107 Branch: remotes/origin/d16-3 Build date: 2019-11-06 18:31:30 UTC
=== Android Device Manager ===
Version: 1.2.0.116 Hash: d2b2af0 Branch: remotes/origin/d16-3 Build date: 2019-11-06 18:31:50 UTC
=== Xamarin Inspector ===
Version: 1.4.3 Hash: db27525 Branch: 1.4-release Build date: Mon, 09 Jul 2018 21:20:18 GMT Client compatibility: 1
=== Build Information ===
Release ID: 803080008 Git revision: 51ddc17b26f5a73f6e2a47feeb38bf1270662527 Build date: 2019-11-06 21:50:59+00 Build branch: release-8.3 Xamarin extensions: 010ea9b96369b2de32742f30576e92840acd1fac
=== Operating System ===
Mac OS X 10.15.1 Darwin 19.0.0 Darwin Kernel Version 19.0.0 Thu Oct 17 16:17:15 PDT 2019 root:xnu-6153.41.3~29/RELEASE_X86_64 x86_64