xamarin / xamarin-macios

.NET for iOS, Mac Catalyst, macOS, and tvOS provide open-source bindings of the Apple SDKs for use with .NET managed languages such as C#
Other
2.43k stars 505 forks source link

`NSApplicationDelegate.OpenUrls(NSApplication application, NSUrl[] urls)` is not triggered using custom scheme by some URLS #11792

Closed twop closed 3 years ago

twop commented 3 years ago

Steps to Reproduce

  1. Run the repro app located here https://github.com/twop/openURLsRepro
  2. Open two URLs (see below + in readme in the repo), one triggers OpenUrls(NSApplication application, NSUrl[] urls) the other does not
  3. Note that you can open URLS by just pasting them into the browser address bar. Also myscheme scheme is registered by the repro app

badURL This one does not trigger OpenURLs

myscheme://x-callback-url/ok-29?notes=%5B%7B%22creationDate%22:%222021-02-08T22:46:07Z%22,%22tags%22:%22%5B%5C%22work%5C%22,%5C%22work%5C%5C%5C/graphQL%5C%22%5D%22,%22title%22:%22GraphQL:%20Persistent%20queries%22,%22modificationDate%22:%222021-05-30T02:27:35Z%22,%22identifier%22:%22F809C00E-C630-4103-8CE2-75E8A5B57C17-7586-00000073F73ACDED%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222021-01-18T22:10:14Z%22,%22tags%22:%22%5B%5C%22work%5C%22%5D%22,%22title%22:%22Ideas%20about%20%E2%80%9CApplause%E2%80%9D%22,%22modificationDate%22:%222021-05-29T03:49:55Z%22,%22identifier%22:%22A25B496C-1B61-48F2-904D-2C8644B77534-684-00044B0C41ABBD1B%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222020-12-17T00:43:00Z%22,%22tags%22:%22%5B%5C%22work%5C%22,%5C%22work%5C%5C%5C/graphQL%5C%22%5D%22,%22title%22:%22Notes%20on%20Relay%22,%22modificationDate%22:%222021-05-29T03:49:33Z%22,%22identifier%22:%224F439D2B-CCEB-4A06-A70F-973D7755D314-684-0000405C0C7C6DA7%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222020-12-07T22:40:33Z%22,%22tags%22:%22%5B%5C%22work%5C%22%5D%22,%22title%22:%22Using%20Expo%20OTA%20Updates%20in%20your%20React%20Native%20app%20-%20Eric%20Samelson%20at%20@ReactEurope%202020%22,%22modificationDate%22:%222021-05-29T03:48:14Z%22,%22identifier%22:%22E38B032C-6D05-4411-8F30-A6D9F9D88891-6153-000037E750825478%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222021-02-04T19:55:30Z%22,%22tags%22:%22%5B%5C%22work%5C%22,%5C%22work%5C%5C%5C/interview%5C%22%5D%22,%22title%22:%22Interview:%20John%20Aaaaaw%22,%22modificationDate%22:%222021-02-04T22:08:51Z%22,%22identifier%22:%22984C732B-9524-47A2-B037-B5AC1E0FB630-1257-000037723BFCE52F%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222021-01-11T23:55:03Z%22,%22tags%22:%22%5B%5C%22work%5C%5C%5C/snippet%5C%22,%5C%22work%5C%22%5D%22,%22title%22:%22mergeStyle%20measurement%20snippet%22,%22modificationDate%22:%222021-01-11T23:55:49Z%22,%22identifier%22:%22511D8BA3-8F32-4903-A753-6F2FC800999E-684-0003BFAD379B9F3A%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222021-01-08T17:22:18Z%22,%22tags%22:%22%5B%5C%22work%5C%22,%5C%22work%5C%5C%5C/graphQL%5C%22%5D%22,%22title%22:%22Why%20I%20think%20we%20should%20try%20GraphQL%20+%20Relay%22,%22modificationDate%22:%222021-01-08T22:11:18Z%22,%22identifier%22:%22595D43B5-61F0-45E4-9C80-749C65CAC0E4-6446-00000DE50B164688%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222021-01-06T20:00:23Z%22,%22tags%22:%22%5B%5C%22work%5C%22,%5C%22work%5C%5C%5C/interview%5C%22%5D%22,%22title%22:%22Eli%20feedback%22,%22modificationDate%22:%222021-01-06T20:15:16Z%22,%22identifier%22:%22345A38F5-D4AB-4D16-A466-6B0CC111475C-684-00036BB37B539ED0%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222020-12-18T21:06:16Z%22,%22tags%22:%22%5B%5C%22work%5C%22%5D%22,%22title%22:%22QA-Dev%20Workflow%20with%20Over%20The%20Air%20(OTA)%20Updates%20for%20iOS%20and%20Android%20apps%22,%22modificationDate%22:%222020-12-29T23:14:01Z%22,%22identifier%22:%2240C3448F-5822-4A2B-A108-F680DDB385D6-3046-00000559782829EF%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222020-12-16T20:02:17Z%22,%22tags%22:%22%5B%5C%22work%5C%22%5D%22,%22title%22:%22Performance%20investigations%5C/ideas%22,%22modificationDate%22:%222020-12-16T21:59:41Z%22,%22identifier%22:%2208D7BDB2-8DDB-4AFF-A52F-EFEF4BC57DAA-684-0000328053EB78E4%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222020-12-09T22:27:37Z%22,%22tags%22:%22%5B%5C%22work%5C%22%5D%22,%22title%22:%22PWA%22,%22modificationDate%22:%222020-12-11T01:05:30Z%22,%22identifier%22:%227BF9853A-11ED-4CC5-89A7-556DA2F9A199-8929-00000CE134191AEE%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222020-12-11T00:15:03Z%22,%22tags%22:%22%5B%5C%22work%5C%22%5D%22,%22title%22:%22Make%20sesssionlive.com%20Progressive%20Web%20App%22,%22modificationDate%22:%222020-12-11T00:46:43Z%22,%22identifier%22:%2232F3142E-BCE2-42FB-B571-B3DD3B9837DD-1162-000001782F40AC2C%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222020-12-08T01:00:12Z%22,%22tags%22:%22%5B%5C%22work%5C%22%5D%22,%22title%22:%22Over%20the%20air%20updates%22,%22modificationDate%22:%222020-12-08T02:27:13Z%22,%22identifier%22:%226FC21CC9-113C-43BA-9417-5972C32B8177-1162-000000CECA08EBC7%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222020-12-07T22:16:10Z%22,%22tags%22:%22%5B%5C%22work%5C%22%5D%22,%22title%22:%22Over%20the%20air%20updates%20for%20ReactNative%20(iOS%20+%20Android)%22,%22modificationDate%22:%222020-12-08T00:59:52Z%22,%22identifier%22:%22B74C4204-BC66-433D-871F-E340B68E8443-6153-00003692C1D393D6%22,%22pin%22:%22no%22%7D%5D&

goodURL This one does trigger OpenURLs

myscheme://x-callback-url/ok-24?notes=%5B%7B%22creationDate%22:%222021-06-02T01:31:24Z%22,%22tags%22:%22%5B%5C%22enscript%5C%22%5D%22,%22title%22:%22x-callback-url%20investigation%22,%22modificationDate%22:%222021-06-02T18:48:25Z%22,%22identifier%22:%226AF93EA5-4E01-4DCD-990D-F175AB929CA6-84632-0000302E2006D647%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222021-05-28T20:15:35Z%22,%22tags%22:%22%5B%5C%22enscript%5C%22,%5C%22enscript%5C%5C%5C/snippets%5C%22%5D%22,%22title%22:%22Snippet:%20Workday%20index%22,%22modificationDate%22:%222021-06-02T18:47:11Z%22,%22identifier%22:%22CC215FA3-0468-4176-B9A1-69941911227B-63163-00002A7595A66914%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222021-06-02T18:46:57Z%22,%22tags%22:%22%5B%5C%22enscript%5C%5C%5C/index%5C%22,%5C%22enscript%5C%22%5D%22,%22title%22:%22Workday%20index%22,%22modificationDate%22:%222021-06-02T18:46:57Z%22,%22identifier%22:%22FF3BADEF-B2F7-4B8A-A662-0150A1277179-84632-0000304A54C62D67%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222021-06-01T19:30:55Z%22,%22tags%22:%22%5B%5C%22enscript%5C%5C%5C/test%5C%22,%5C%222021%5C%5C%5C/Jun%5C%22,%5C%222021%5C%5C%5C/Jun%5C%5C%5C/1%5C%22,%5C%222021%5C%22,%5C%22enscript%5C%22%5D%22,%22title%22:%22Quick%20note%20(2021%5C/Jun%5C/1)%22,%22modificationDate%22:%222021-06-01T19:30:55Z%22,%22identifier%22:%224DB78A77-81B7-49FF-A1DF-DF849F3DC914-84632-00002FD753D889B2%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222021-03-16T00:02:41Z%22,%22tags%22:%22%5B%5C%22enscript%5C%22,%5C%22enscript%5C%5C%5C/snippets%5C%22%5D%22,%22title%22:%22Snippet:%20Quick%20note%22,%22modificationDate%22:%222021-06-01T19:30:50Z%22,%22identifier%22:%22F828673D-E17A-47DB-BFE6-CD03A86813AF-565-000011A69449CE99%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222021-03-30T03:30:07Z%22,%22tags%22:%22%5B%5C%22enscript%5C%22,%5C%22enscript%5C%5C%5C/snippets%5C%22%5D%22,%22title%22:%22Snippet:%20Start%20day%22,%22modificationDate%22:%222021-06-01T19:29:57Z%22,%22identifier%22:%22122004DA-4C62-4505-870B-3FC502424E0A-13027-000002208149BAF1%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222021-02-12T21:56:54Z%22,%22tags%22:%22%5B%5C%22project-ideas%5C%22,%5C%22project-ideas%5C%5C%5C/enscript%5C%22,%5C%22enscript%5C%5C%5C/snippets_%5C%22,%5C%22enscript%5C%22%5D%22,%22title%22:%22Snippet:%20exploration%22,%22modificationDate%22:%222021-05-26T04:04:29Z%22,%22identifier%22:%22C1C2E548-A670-445E-A4EF-B7E963AF842C-370-000007669E102F5F%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222021-04-19T19:25:29Z%22,%22tags%22:%22%5B%5C%22enscript%5C%22%5D%22,%22title%22:%22JINT%20-%20js%20snippets%22,%22modificationDate%22:%222021-04-19T19:26:17Z%22,%22identifier%22:%224291B7D0-2DC9-4B45-A562-DFFE07D80880-547-00000B02E4135BB2%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222021-04-16T23:54:08Z%22,%22tags%22:%22%5B%5C%22enscript%5C%22%5D%22,%22title%22:%22JINT%20-%20Promises%22,%22modificationDate%22:%222021-04-18T05:33:30Z%22,%22identifier%22:%22DA7F5AEC-FB73-4967-9A01-68922A7B464E-547-000008F721FD4834%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222021-04-13T23:44:47Z%22,%22tags%22:%22%5B%5C%22enscript%5C%5C%5C/snippetss%5C%22,%5C%22enscript%5C%22%5D%22,%22title%22:%22Not%20so%20scary%20Tutorial%22,%22modificationDate%22:%222021-04-13T23:46:21Z%22,%22identifier%22:%225041685F-1D15-4FBA-939F-0856CB8EF747-547-0000066D6F0D71C6%22,%22pin%22:%22no%22%7D%5D& 

Expected Behavior

Both URLs work. Note that I checked the same URLS on swift project and it has no issues

Actual Behavior

The "badURL" causes the app to go into foreground but doesn't trigger OpenUrls

Environment

=== Visual Studio Community 2019 for Mac ===

Version 8.10 (build 1773)
Installation UUID: 9d7835a4-1cf7-4e08-b4b4-24210d291edd
    GTK+ 2.24.23 (Raleigh theme)
    Xamarin.Mac 6.18.0.23 (d16-6 / 088c73638)

    Package version: 612000140

=== Mono Framework MDK ===

Runtime:
    Mono 6.12.0.140 (2020-02/51d876a041e) (64-bit)
    Package version: 612000140

=== Xamarin Designer ===

Version: 16.10.0.117
Hash: 249267d55
Branch: remotes/origin/d16-10
Build date: 2021-05-24 21:27:04 UTC

=== Roslyn (Language Service) ===

3.10.0-3.21251.8+4c32f5e4e9c0828a94fd4d1c9c0994082c85aaf3

=== NuGet ===

Version: 5.9.0.7134

=== .NET Core SDK ===

SDK: /usr/local/share/dotnet/sdk/6.0.100-preview.2.21155.3/Sdks
SDK Versions:
    6.0.100-preview.2.21155.3
    6.0.100-preview.2.21120.3
    6.0.100-preview.1.21108.2
    6.0.100-preview.1.21103.13
    5.0.203
    5.0.202
    5.0.103
    5.0.102
    3.1.409
    3.1.408
    3.1.406
    3.1.405
MSBuild SDKs: /Applications/Visual Studio.app/Contents/Resources/lib/monodevelop/bin/MSBuild/Current/bin/Sdks

=== .NET Core Runtime ===

Runtime: /usr/local/share/dotnet/dotnet
Runtime Versions:
    6.0.0-preview.2.21154.6
    5.0.6
    5.0.5
    5.0.3
    5.0.2
    3.1.15
    3.1.14
    3.1.12
    3.1.11

=== .NET Core 3.1 SDK ===

SDK: 3.1.409

=== Xamarin.Profiler ===

Version: 1.6.15.68
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

=== Updater ===

Version: 11

=== Apple Developer Tools ===

Xcode 12.5 (18205)
Build 12E262

=== Xamarin.Mac ===

Version: 7.14.0.1 (Visual Studio Community)
Hash: fe0e2c518
Branch: d16-10
Build date: 2021-05-19 08:15:55-0400

=== Xamarin.iOS ===

Version: 14.20.0.1 (Visual Studio Community)
Hash: fe0e2c518
Branch: d16-10
Build date: 2021-05-19 08:15:56-0400

=== Xamarin.Android ===

Version: 11.3.0.1 (Visual Studio Community)
Commit: xamarin-android/d16-10/22fc2b3
Android SDK: /Users/twop/Library/Developer/Xamarin/android-sdk-macosx
    Supported Android versions:
        None installed

SDK Tools Version: 26.1.1
SDK Platform Tools Version: 30.0.4
SDK Build Tools Version: 29.0.2

Build Information: 
Mono: b4a3858
Java.Interop: xamarin/java.interop/d16-10@f39db25
ProGuard: Guardsquare/proguard/v7.0.1@912d149
SQLite: xamarin/sqlite/3.35.4@85460d3
Xamarin.Android Tools: xamarin/xamarin-android-tools/d16-10@c5732a0

=== Microsoft OpenJDK for Mobile ===

Java SDK: /Users/twop/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: 16.10.0.12
Hash: e240b8c
Branch: remotes/origin/d16-10
Build date: 2021-05-13 17:01:38 UTC

=== Android Device Manager ===

Version: 16.10.0.14
Hash: e340248
Branch: remotes/origin/d16-10
Build date: 2021-05-13 17:01:56 UTC

=== Build Information ===

Release ID: 810001773
Git revision: 56d63e5691f86f863cfaed823a5a8fe430e1aaa9
Build date: 2021-05-28 11:21:28-04
Build branch: release-8.10

=== Operating System ===

Mac OS X 10.16.0
Darwin 20.3.0 Darwin Kernel Version 20.3.0
    Thu Jan 21 00:06:51 PST 2021
    root:xnu-7195.81.3~1/RELEASE_ARM64_T8101 x86_64

Build Logs

Building openURLsTest (Debug) Build started 6/2/2021 5:25:48 PM.


Project "/Users/twop/Projects/openURLsTest/openURLsTest.csproj" (Build target(s)):

Target _BeforeCoreCompileImageAssets: Deleting file "obj/Debug/actool/_PartialAppManifest.items". Deleting file "obj/Debug/actool/_BundleResourceWithLogicalName.items". Removing directory "obj/Debug/actool". Target _DetectSigningIdentity: Detected signing identity:

  Bundle Id: company.openURLsTest
  App Id: company.openURLsTest

Target _CoreCompileImageAssets: Tool arch execution started with arguments: -arch arm64e /usr/bin/xcrun actool --errors --warnings --notices --output-format xml1 --output-partial-info-plist /Users/twop/Projects/openURLsTest/obj/Debug/actool/partial-info.plist --app-icon AppIcon --minimum-deployment-target 10.14 --platform macosx --compile /Users/twop/Projects/openURLsTest/obj/Debug/actool/bundle /Users/twop/Projects/openURLsTest/obj/Debug/actool/cloned-assets/Assets.xcassets

Target _BeforeCoreCompileInterfaceDefinitions: Skipping target "_BeforeCoreCompileInterfaceDefinitions" because all output files are up-to-date with respect to the input files. Target _CoreCompileInterfaceDefinitions: Skipping target "_CoreCompileInterfaceDefinitions" because all output files are up-to-date with respect to the input files. Target _BeforeCoreCompileSceneKitAssets: Skipping target "_BeforeCoreCompileSceneKitAssets" because it has no inputs. Target _BeforeCoreCompileSceneKitAssets: Skipping target "_BeforeCoreCompileSceneKitAssets" because it has no inputs. Target _BeforeCoreCompileSceneKitAssets: Skipping target "_BeforeCoreCompileSceneKitAssets" because it has no inputs. Target _CoreCompileSceneKitAssets: Skipping target "_CoreCompileSceneKitAssets" because it has no inputs. Target _CoreCompileColladaAssets: Skipping target "_CoreCompileColladaAssets" because it has no inputs. Target _BeforeCompileCoreMLModels: Deleting file "obj/Debug/coremlc/_PartialAppManifest.items". Deleting file "obj/Debug/coremlc/_BundleResourceWithLogicalName.items". Removing directory "obj/Debug/coremlc". Target GenerateTargetFrameworkMonikerAttribute: Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files. Target CoreCompile: Skipping target "CoreCompile" because all output files are up-to-date with respect to the input files. Target CopyFilesToOutputDirectory: openURLsTest -> /Users/twop/Projects/openURLsTest/bin/Debug/openURLsTest.exe Target _CopyResourcesToBundle: Building target "_CopyResourcesToBundle" partially, because some output files are out of date with respect to their input files. Copying file from '/Users/twop/Projects/openURLsTest/obj/Debug/actool/bundle/AppIcon.icns' to '/Users/twop/Projects/openURLsTest/bin/Debug/openURLsTest.app/Contents/Resources/AppIcon.icns'

Copying file from '/Users/twop/Projects/openURLsTest/obj/Debug/actool/bundle/Assets.car' to '/Users/twop/Projects/openURLsTest/bin/Debug/openURLsTest.app/Contents/Resources/Assets.car'

Target _CompileAppManifest: Directory "bin/Debug/openURLsTest.app.dSYM" doesn't exist. Skipping. Target _CompileToNative: Skipping target "_CompileToNative" because all output files are up-to-date with respect to the input files. Target _CopyAppExtensionsToBundle: Skipping target "_CopyAppExtensionsToBundle" because it has no inputs. Target _PrepareDebugSymbolGeneration: Skipping target "_PrepareDebugSymbolGeneration" because all output files are up-to-date with respect to the input files. Target _CopyUserFrameworkDebugSymbols: Skipping target "_CopyUserFrameworkDebugSymbols" because it has no inputs. Target _CollectFrameworks: No Frameworks directory found.

Target _GenerateFrameworkDebugSymbols: Skipping target "_GenerateFrameworkDebugSymbols" because it has no inputs. Target _GenerateDebugSymbols: Directory "bin/Debug/openURLsTest.app.dSYM" doesn't exist. Skipping.

Build succeeded. 0 Warning(s) 0 Error(s)

Time Elapsed 00:00:01.02

========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

Build successful.

Example Project (If Possible)

https://github.com/twop/openURLsRepro

openURLsTest.zip

spouliot commented 3 years ago

This works fine for me

2021-06-03 12:52:28.733 openURLsTest[36427:6974603] 
Unhandled Exception:
System.Exception: opened with: myscheme://x-callback-url/ok-29?notes=%5B%7B%22creationDate%22:%222021-02-08T22:46:07Z%22,%22tags%22:%22%5B%5C%22work%5C%22,%5C%22work%5C%5C%5C/graphQL%5C%22%5D%22,%22title%22:%22GraphQL:%20Persistent%20queries%22,%22modificationDate%22:%222021-05-30T02:27:35Z%22,%22identifier%22:%22F809C00E-C630-4103-8CE2-75E8A5B57C17-7586-00000073F73ACDED%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222021-01-18T22:10:14Z%22,%22tags%22:%22%5B%5C%22work%5C%22%5D%22,%22title%22:%22Ideas%20about%20%E2%80%9CApplause%E2%80%9D%22,%22modificationDate%22:%222021-05-29T03:49:55Z%22,%22identifier%22:%22A25B496C-1B61-48F2-904D-2C8644B77534-684-00044B0C41ABBD1B%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222020-12-17T00:43:00Z%22,%22tags%22:%22%5B%5C%22work%5C%22,%5C%22work%5C%5C%5C/graphQL%5C%22%5D%22,%22title%22:%22Notes%20on%20Relay%22,%22modificationDate%22:%222021-05-29T03:49:33Z%22,%22identifier%22:%224F439D2B-CCEB-4A06-A70F-973D7755D314-684-0000405C0C7C6DA7%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222020-12-07T22:40:33Z%22,%22tags%22:%22%5B%5C%22work%5C%22%5D%22,%22title%22:%22Using%20Expo%20OTA%20Updates%20in%20your%20React%20Native%20app%20-%20Eric%20Samelson%20at%20@ReactEurope%202020%22,%22modificationDate%22:%222021-05-29T03:48:14Z%22,%22identifier%22:%22E38B032C-6D05-4411-8F30-A6D9F9D88891-6153-000037E750825478%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222021-02-04T19:55:30Z%22,%22tags%22:%22%5B%5C%22work%5C%22,%5C%22work%5C%5C%5C/interview%5C%22%5D%22,%22title%22:%22Interview:%20John%20Aaaaaw%22,%22modificationDate%22:%222021-02-04T22:08:51Z%22,%22identifier%22:%22984C732B-9524-47A2-B037-B5AC1E0FB630-1257-000037723BFCE52F%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222021-01-11T23:55:03Z%22,%22tags%22:%22%5B%5C%22work%5C%5C%5C/snippet%5C%22,%5C%22work%5C%22%5D%22,%22title%22:%22mergeStyle%20measurement%20snippet%22,%22modificationDate%22:%222021-01-11T23:55:49Z%22,%22identifier%22:%22511D8BA3-8F32-4903-A753-6F2FC800999E-684-0003BFAD379B9F3A%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222021-01-08T17:22:18Z%22,%22tags%22:%22%5B%5C%22work%5C%22,%5C%22work%5C%5C%5C/graphQL%5C%22%5D%22,%22title%22:%22Why%20I%20think%20we%20should%20try%20GraphQL%20+%20Relay%22,%22modificationDate%22:%222021-01-08T22:11:18Z%22,%22identifier%22:%22595D43B5-61F0-45E4-9C80-749C65CAC0E4-6446-00000DE50B164688%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222021-01-06T20:00:23Z%22,%22tags%22:%22%5B%5C%22work%5C%22,%5C%22work%5C%5C%5C/interview%5C%22%5D%22,%22title%22:%22Eli%20feedback%22,%22modificationDate%22:%222021-01-06T20:15:16Z%22,%22identifier%22:%22345A38F5-D4AB-4D16-A466-6B0CC111475C-684-00036BB37B539ED0%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222020-12-18T21:06:16Z%22,%22tags%22:%22%5B%5C%22work%5C%22%5D%22,%22title%22:%22QA-Dev%20Workflow%20with%20Over%20The%20Air%20(OTA)%20Updates%20for%20iOS%20and%20Android%20apps%22,%22modificationDate%22:%222020-12-29T23:14:01Z%22,%22identifier%22:%2240C3448F-5822-4A2B-A108-F680DDB385D6-3046-00000559782829EF%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222020-12-16T20:02:17Z%22,%22tags%22:%22%5B%5C%22work%5C%22%5D%22,%22title%22:%22Performance%20investigations%5C/ideas%22,%22modificationDate%22:%222020-12-16T21:59:41Z%22,%22identifier%22:%2208D7BDB2-8DDB-4AFF-A52F-EFEF4BC57DAA-684-0000328053EB78E4%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222020-12-09T22:27:37Z%22,%22tags%22:%22%5B%5C%22work%5C%22%5D%22,%22title%22:%22PWA%22,%22modificationDate%22:%222020-12-11T01:05:30Z%22,%22identifier%22:%227BF9853A-11ED-4CC5-89A7-556DA2F9A199-8929-00000CE134191AEE%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222020-12-11T00:15:03Z%22,%22tags%22:%22%5B%5C%22work%5C%22%5D%22,%22title%22:%22Make%20sesssionlive.com%20Progressive%20Web%20App%22,%22modificationDate%22:%222020-12-11T00:46:43Z%22,%22identifier%22:%2232F3142E-BCE2-42FB-B571-B3DD3B9837DD-1162-000001782F40AC2C%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222020-12-08T01:00:12Z%22,%22tags%22:%22%5B%5C%22work%5C%22%5D%22,%22title%22:%22Over%20the%20air%20updates%22,%22modificationDate%22:%222020-12-08T02:27:13Z%22,%22id
  at openURLsTest.AppDelegate.OpenUrls (AppKit.NSApplication application, Foundation.NSUrl[] urls) [0x00001] in /Users/poupou/Downloads/openURLsTest/AppDelegate.cs:26 
  at (wrapper managed-to-native) AppKit.NSApplication.NSApplicationMain(int,string[])
  at AppKit.NSApplication.Main (System.String[] args) [0x00040] in /Users/poupou/git/main/xamarin-macios/src/AppKit/NSApplication.cs:109 
  at openURLsTest.MainClass.Main (System.String[] args) [0x00007] in /Users/poupou/Downloads/openURLsTest/Main.cs:10 
[ERROR] FATAL UNHANDLED EXCEPTION: System.Exception: opened with: myscheme://x-callback-url/ok-29?notes=%5B%7B%22creationDate%22:%222021-02-08T22:46:07Z%22,%22tags%22:%22%5B%5C%22work%5C%22,%5C%22work%5C%5C%5C/graphQL%5C%22%5D%22,%22title%22:%22GraphQL:%20Persistent%20queries%22,%22modificationDate%22:%222021-05-30T02:27:35Z%22,%22identifier%22:%22F809C00E-C630-4103-8CE2-75E8A5B57C17-7586-00000073F73ACDED%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222021-01-18T22:10:14Z%22,%22tags%22:%22%5B%5C%22work%5C%22%5D%22,%22title%22:%22Ideas%20about%20%E2%80%9CApplause%E2%80%9D%22,%22modificationDate%22:%222021-05-29T03:49:55Z%22,%22identifier%22:%22A25B496C-1B61-48F2-904D-2C8644B77534-684-00044B0C41ABBD1B%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222020-12-17T00:43:00Z%22,%22tags%22:%22%5B%5C%22work%5C%22,%5C%22work%5C%5C%5C/graphQL%5C%22%5D%22,%22title%22:%22Notes%20on%20Relay%22,%22modificationDate%22:%222021-05-29T03:49:33Z%22,%22identifier%22:%224F439D2B-CCEB-4A06-A70F-973D7755D314-684-0000405C0C7C6DA7%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222020-12-07T22:40:33Z%22,%22tags%22:%22%5B%5C%22work%5C%22%5D%22,%22title%22:%22Using%20Expo%20OTA%20Updates%20in%20your%20React%20Native%20app%20-%20Eric%20Samelson%20at%20@ReactEurope%202020%22,%22modificationDate%22:%222021-05-29T03:48:14Z%22,%22identifier%22:%22E38B032C-6D05-4411-8F30-A6D9F9D88891-6153-000037E750825478%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222021-02-04T19:55:30Z%22,%22tags%22:%22%5B%5C%22work%5C%22,%5C%22work%5C%5C%5C/interview%5C%22%5D%22,%22title%22:%22Interview:%20John%20Aaaaaw%22,%22modificationDate%22:%222021-02-04T22:08:51Z%22,%22identifier%22:%22984C732B-9524-47A2-B037-B5AC1E0FB630-1257-000037723BFCE52F%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222021-01-11T23:55:03Z%22,%22tags%22:%22%5B%5C%22work%5C%5C%5C/snippet%5C%22,%5C%22work%5C%22%5D%22,%22title%22:%22mergeStyle%20measurement%20snippet%22,%22modificationDate%22:%222021-01-11T23:55:49Z%22,%22identifier%22:%22511D8BA3-8F32-4903-A753-6F2FC800999E-684-0003BFAD379B9F3A%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222021-01-08T17:22:18Z%22,%22tags%22:%22%5B%5C%22work%5C%22,%5C%22work%5C%5C%5C/graphQL%5C%22%5D%22,%22title%22:%22Why%20I%20think%20we%20should%20try%20GraphQL%20+%20Relay%22,%22modificationDate%22:%222021-01-08T22:11:18Z%22,%22identifier%22:%22595D43B5-61F0-45E4-9C80-749C65CAC0E4-6446-00000DE50B164688%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222021-01-06T20:00:23Z%22,%22tags%22:%22%5B%5C%22work%5C%22,%5C%22work%5C%5C%5C/interview%5C%22%5D%22,%22title%22:%22Eli%20feedback%22,%22modificationDate%22:%222021-01-06T20:15:16Z%22,%22identifier%22:%22345A38F5-D4AB-4D16-A466-6B0CC111475C-684-00036BB37B539ED0%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222020-12-18T21:06:16Z%22,%22tags%22:%22%5B%5C%22work%5C%22%5D%22,%22title%22:%22QA-Dev%20Workflow%20with%20Over%20The%20Air%20(OTA)%20Updates%20for%20iOS%20and%20Android%20apps%22,%22modificationDate%22:%222020-12-29T23:14:01Z%22,%22identifier%22:%2240C3448F-5822-4A2B-A108-F680DDB385D6-3046-00000559782829EF%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222020-12-16T20:02:17Z%22,%22tags%22:%22%5B%5C%22work%5C%22%5D%22,%22title%22:%22Performance%20investigations%5C/ideas%22,%22modificationDate%22:%222020-12-16T21:59:41Z%22,%22identifier%22:%2208D7BDB2-8DDB-4AFF-A52F-EFEF4BC57DAA-684-0000328053EB78E4%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222020-12-09T22:27:37Z%22,%22tags%22:%22%5B%5C%22work%5C%22%5D%22,%22title%22:%22PWA%22,%22modificationDate%22:%222020-12-11T01:05:30Z%22,%22identifier%22:%227BF9853A-11ED-4CC5-89A7-556DA2F9A199-8929-00000CE134191AEE%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222020-12-11T00:15:03Z%22,%22tags%22:%22%5B%5C%22work%5C%22%5D%22,%22title%22:%22Make%20sesssionlive.com%20Progressive%20Web%20App%22,%22modificationDate%22:%222020-12-11T00:46:43Z%22,%22identifier%22:%2232F3142E-BCE2-42FB-B571-B3DD3B9837DD-1162-000001782F40AC2C%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222020-12-08T01:00:12Z%22,%22tags%22:%22%5B%5C%22work%5C%22%5D%22,%22title%22:%22Over%20the%20air%20updates%22,%22modificationDate%22:%222020-12-08T02:27:13Z%22,%22id
  at openURLsTest.AppDelegate.OpenUrls (AppKit.NSApplication application, Foundation.NSUrl[] urls) [0x00001] in /Users/poupou/Downloads/openURLsTest/AppDelegate.cs:26 
  at (wrapper managed-to-native) AppKit.NSApplication.NSApplicationMain(int,string[])
  at AppKit.NSApplication.Main (System.String[] args) [0x00040] in /Users/poupou/git/main/xamarin-macios/src/AppKit/NSApplication.cs:109 
  at openURLsTest.MainClass.Main (System.String[] args) [0x00007] in /Users/poupou/Downloads/openURLsTest/Main.cs:10 

Xamarin.Mac offers bindings to Apple API. That's a thin layer of code that does not change the behaviour of the calls.

If there was a bug in the bound API I would expect both URLs to fail since nothing (in XM) is actually using the URL.

An URL could be invalid but then it would not work on your Swift app either...

twop commented 3 years ago

I just double checked. I cannot repro it using swift in either of the APIs: swiftUI and AppDelegate. But can consistently repro in the repro project

spouliot commented 3 years ago

Try opening Console.app to see if the OS is writing anything in the logs...

Also you can try to see if the OS thinks the URL is valid by adding:

var u = NSUrl.FromString ("...");

and check that the retuned value is not null. In theory this could vary by OS version and the current locale.

OTOH if it works for the swift apps then they should share the same environment (OS / locale) so...

twop commented 3 years ago

https://user-images.githubusercontent.com/6633216/120694063-9f173400-c45e-11eb-89dd-89344a06c9c9.mov

twop commented 3 years ago

@spouliot I did check the logs but found nothing, also I checked if NSUrl ca be constructed with this string, and yes it is not null.

spouliot commented 3 years ago

No need for video, I believe you :)

Can you try starting it from the terminal, instead of the browser ?

open "myscheme://x-callback-url/ok-29?notes=%5B%7B%22creationDate%22:%222021-02-08T22:46:07Z%22,%22tags%22:%22%5B%5C%22work%5C%22,%5C%22work%5C%5C%5C/graphQL%5C%22%5D%22,%22title%22:%22GraphQL:%20Persistent%20queries%22,%22modificationDate%22:%222021-05-30T02:27:35Z%22,%22identifier%22:%22F809C00E-C630-4103-8CE2-75E8A5B57C17-7586-00000073F73ACDED%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222021-01-18T22:10:14Z%22,%22tags%22:%22%5B%5C%22work%5C%22%5D%22,%22title%22:%22Ideas%20about%20%E2%80%9CApplause%E2%80%9D%22,%22modificationDate%22:%222021-05-29T03:49:55Z%22,%22identifier%22:%22A25B496C-1B61-48F2-904D-2C8644B77534-684-00044B0C41ABBD1B%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222020-12-17T00:43:00Z%22,%22tags%22:%22%5B%5C%22work%5C%22,%5C%22work%5C%5C%5C/graphQL%5C%22%5D%22,%22title%22:%22Notes%20on%20Relay%22,%22modificationDate%22:%222021-05-29T03:49:33Z%22,%22identifier%22:%224F439D2B-CCEB-4A06-A70F-973D7755D314-684-0000405C0C7C6DA7%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222020-12-07T22:40:33Z%22,%22tags%22:%22%5B%5C%22work%5C%22%5D%22,%22title%22:%22Using%20Expo%20OTA%20Updates%20in%20your%20React%20Native%20app%20-%20Eric%20Samelson%20at%20@ReactEurope%202020%22,%22modificationDate%22:%222021-05-29T03:48:14Z%22,%22identifier%22:%22E38B032C-6D05-4411-8F30-A6D9F9D88891-6153-000037E750825478%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222021-02-04T19:55:30Z%22,%22tags%22:%22%5B%5C%22work%5C%22,%5C%22work%5C%5C%5C/interview%5C%22%5D%22,%22title%22:%22Interview:%20John%20Aaaaaw%22,%22modificationDate%22:%222021-02-04T22:08:51Z%22,%22identifier%22:%22984C732B-9524-47A2-B037-B5AC1E0FB630-1257-000037723BFCE52F%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222021-01-11T23:55:03Z%22,%22tags%22:%22%5B%5C%22work%5C%5C%5C/snippet%5C%22,%5C%22work%5C%22%5D%22,%22title%22:%22mergeStyle%20measurement%20snippet%22,%22modificationDate%22:%222021-01-11T23:55:49Z%22,%22identifier%22:%22511D8BA3-8F32-4903-A753-6F2FC800999E-684-0003BFAD379B9F3A%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222021-01-08T17:22:18Z%22,%22tags%22:%22%5B%5C%22work%5C%22,%5C%22work%5C%5C%5C/graphQL%5C%22%5D%22,%22title%22:%22Why%20I%20think%20we%20should%20try%20GraphQL%20+%20Relay%22,%22modificationDate%22:%222021-01-08T22:11:18Z%22,%22identifier%22:%22595D43B5-61F0-45E4-9C80-749C65CAC0E4-6446-00000DE50B164688%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222021-01-06T20:00:23Z%22,%22tags%22:%22%5B%5C%22work%5C%22,%5C%22work%5C%5C%5C/interview%5C%22%5D%22,%22title%22:%22Eli%20feedback%22,%22modificationDate%22:%222021-01-06T20:15:16Z%22,%22identifier%22:%22345A38F5-D4AB-4D16-A466-6B0CC111475C-684-00036BB37B539ED0%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222020-12-18T21:06:16Z%22,%22tags%22:%22%5B%5C%22work%5C%22%5D%22,%22title%22:%22QA-Dev%20Workflow%20with%20Over%20The%20Air%20(OTA)%20Updates%20for%20iOS%20and%20Android%20apps%22,%22modificationDate%22:%222020-12-29T23:14:01Z%22,%22identifier%22:%2240C3448F-5822-4A2B-A108-F680DDB385D6-3046-00000559782829EF%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222020-12-16T20:02:17Z%22,%22tags%22:%22%5B%5C%22work%5C%22%5D%22,%22title%22:%22Performance%20investigations%5C/ideas%22,%22modificationDate%22:%222020-12-16T21:59:41Z%22,%22identifier%22:%2208D7BDB2-8DDB-4AFF-A52F-EFEF4BC57DAA-684-0000328053EB78E4%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222020-12-09T22:27:37Z%22,%22tags%22:%22%5B%5C%22work%5C%22%5D%22,%22title%22:%22PWA%22,%22modificationDate%22:%222020-12-11T01:05:30Z%22,%22identifier%22:%227BF9853A-11ED-4CC5-89A7-556DA2F9A199-8929-00000CE134191AEE%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222020-12-11T00:15:03Z%22,%22tags%22:%22%5B%5C%22work%5C%22%5D%22,%22title%22:%22Make%20sesssionlive.com%20Progressive%20Web%20App%22,%22modificationDate%22:%222020-12-11T00:46:43Z%22,%22identifier%22:%2232F3142E-BCE2-42FB-B571-B3DD3B9837DD-1162-000001782F40AC2C%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222020-12-08T01:00:12Z%22,%22tags%22:%22%5B%5C%22work%5C%22%5D%22,%22title%22:%22Over%20the%20air%20updates%22,%22modificationDate%22:%222020-12-08T02:27:13Z%22,%22id"

I don't 100% trust copy/paste from documents when there's potential for them to (mis)interpret some of the data

twop commented 3 years ago

The same behavior: one triggers a breakpoint the other does not

Also I noticed that the url in your comment is not the same as the one in the repro steps, is that on purpose?

twop commented 3 years ago

If it is any help I'm using M1 air and running Visual Studio (and the app) under Rosetta2. Could that be a root cause? I would assume no based on the fact that it works for the shorter URL

spouliot commented 3 years ago

Also I noticed that the url in your comment is not the same as the one in the repro steps, is that on purpose?

I copied it from this issue description. Somehow it got cut... as my open miss the last part.

I tried again with the original (description) and it still works for me.

open "myscheme://x-callback-url/ok-29?notes=%5B%7B%22creationDate%22:%222021-02-08T22:46:07Z%22,%22tags%22:%22%5B%5C%22work%5C%22,%5C%22work%5C%5C%5C/graphQL%5C%22%5D%22,%22title%22:%22GraphQL:%20Persistent%20queries%22,%22modificationDate%22:%222021-05-30T02:27:35Z%22,%22identifier%22:%22F809C00E-C630-4103-8CE2-75E8A5B57C17-7586-00000073F73ACDED%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222021-01-18T22:10:14Z%22,%22tags%22:%22%5B%5C%22work%5C%22%5D%22,%22title%22:%22Ideas%20about%20%E2%80%9CApplause%E2%80%9D%22,%22modificationDate%22:%222021-05-29T03:49:55Z%22,%22identifier%22:%22A25B496C-1B61-48F2-904D-2C8644B77534-684-00044B0C41ABBD1B%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222020-12-17T00:43:00Z%22,%22tags%22:%22%5B%5C%22work%5C%22,%5C%22work%5C%5C%5C/graphQL%5C%22%5D%22,%22title%22:%22Notes%20on%20Relay%22,%22modificationDate%22:%222021-05-29T03:49:33Z%22,%22identifier%22:%224F439D2B-CCEB-4A06-A70F-973D7755D314-684-0000405C0C7C6DA7%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222020-12-07T22:40:33Z%22,%22tags%22:%22%5B%5C%22work%5C%22%5D%22,%22title%22:%22Using%20Expo%20OTA%20Updates%20in%20your%20React%20Native%20app%20-%20Eric%20Samelson%20at%20@ReactEurope%202020%22,%22modificationDate%22:%222021-05-29T03:48:14Z%22,%22identifier%22:%22E38B032C-6D05-4411-8F30-A6D9F9D88891-6153-000037E750825478%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222021-02-04T19:55:30Z%22,%22tags%22:%22%5B%5C%22work%5C%22,%5C%22work%5C%5C%5C/interview%5C%22%5D%22,%22title%22:%22Interview:%20John%20Aaaaaw%22,%22modificationDate%22:%222021-02-04T22:08:51Z%22,%22identifier%22:%22984C732B-9524-47A2-B037-B5AC1E0FB630-1257-000037723BFCE52F%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222021-01-11T23:55:03Z%22,%22tags%22:%22%5B%5C%22work%5C%5C%5C/snippet%5C%22,%5C%22work%5C%22%5D%22,%22title%22:%22mergeStyle%20measurement%20snippet%22,%22modificationDate%22:%222021-01-11T23:55:49Z%22,%22identifier%22:%22511D8BA3-8F32-4903-A753-6F2FC800999E-684-0003BFAD379B9F3A%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222021-01-08T17:22:18Z%22,%22tags%22:%22%5B%5C%22work%5C%22,%5C%22work%5C%5C%5C/graphQL%5C%22%5D%22,%22title%22:%22Why%20I%20think%20we%20should%20try%20GraphQL%20+%20Relay%22,%22modificationDate%22:%222021-01-08T22:11:18Z%22,%22identifier%22:%22595D43B5-61F0-45E4-9C80-749C65CAC0E4-6446-00000DE50B164688%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222021-01-06T20:00:23Z%22,%22tags%22:%22%5B%5C%22work%5C%22,%5C%22work%5C%5C%5C/interview%5C%22%5D%22,%22title%22:%22Eli%20feedback%22,%22modificationDate%22:%222021-01-06T20:15:16Z%22,%22identifier%22:%22345A38F5-D4AB-4D16-A466-6B0CC111475C-684-00036BB37B539ED0%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222020-12-18T21:06:16Z%22,%22tags%22:%22%5B%5C%22work%5C%22%5D%22,%22title%22:%22QA-Dev%20Workflow%20with%20Over%20The%20Air%20(OTA)%20Updates%20for%20iOS%20and%20Android%20apps%22,%22modificationDate%22:%222020-12-29T23:14:01Z%22,%22identifier%22:%2240C3448F-5822-4A2B-A108-F680DDB385D6-3046-00000559782829EF%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222020-12-16T20:02:17Z%22,%22tags%22:%22%5B%5C%22work%5C%22%5D%22,%22title%22:%22Performance%20investigations%5C/ideas%22,%22modificationDate%22:%222020-12-16T21:59:41Z%22,%22identifier%22:%2208D7BDB2-8DDB-4AFF-A52F-EFEF4BC57DAA-684-0000328053EB78E4%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222020-12-09T22:27:37Z%22,%22tags%22:%22%5B%5C%22work%5C%22%5D%22,%22title%22:%22PWA%22,%22modificationDate%22:%222020-12-11T01:05:30Z%22,%22identifier%22:%227BF9853A-11ED-4CC5-89A7-556DA2F9A199-8929-00000CE134191AEE%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222020-12-11T00:15:03Z%22,%22tags%22:%22%5B%5C%22work%5C%22%5D%22,%22title%22:%22Make%20sesssionlive.com%20Progressive%20Web%20App%22,%22modificationDate%22:%222020-12-11T00:46:43Z%22,%22identifier%22:%2232F3142E-BCE2-42FB-B571-B3DD3B9837DD-1162-000001782F40AC2C%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222020-12-08T01:00:12Z%22,%22tags%22:%22%5B%5C%22work%5C%22%5D%22,%22title%22:%22Over%20the%20air%20updates%22,%22modificationDate%22:%222020-12-08T02:27:13Z%22,%22identifier%22:%226FC21CC9-113C-43BA-9417-5972C32B8177-1162-000000CECA08EBC7%22,%22pin%22:%22no%22%7D,%7B%22creationDate%22:%222020-12-07T22:16:10Z%22,%22tags%22:%22%5B%5C%22work%5C%22%5D%22,%22title%22:%22Over%20the%20air%20updates%20for%20ReactNative%20(iOS%20+%20Android)%22,%22modificationDate%22:%222020-12-08T00:59:52Z%22,%22identifier%22:%22B74C4204-BC66-433D-871F-E340B68E8443-6153-00003692C1D393D6%22,%22pin%22:%22no%22%7D%5D&"

If it is any help I'm using M1 air and running Visual Studio (and the app) under Rosetta2.

I'm using a MBP w/M1 (rosetta) on macOS 11.4.

twop commented 3 years ago

Im on. 11.2.3. Updating now to 11.4. Will report back

twop commented 3 years ago

Reporting back: 11.4 did fix the problem. Now I cannot repro it either.

That solves my particular problem but it makes me worried about how brittle it can be. Any ideas about possible root cause?

spouliot commented 3 years ago

Reporting back: 11.4 did fix the problem. Now I cannot repro it either.

I'm really surprised... I did not expect your update to solve this.

Any ideas about possible root cause?

Sadly no :(

It might be a Rosetta bug... that was fixed in 11.4 (easy to test). At least that would explain why the Swift version worked (as I guess it was built for arm64).