Xamarin.Forms icon indicating copy to clipboard operation
Xamarin.Forms copied to clipboard

Xamarin iOS gesture recognizers do not work in 17.0.1

Open vsfeedback opened this issue 3 years ago • 35 comments

This issue has been moved from a ticket on Developer Community.


[regression] [worked-in:VS 2019] Exactly as the title says. The app deploys and runs, however any controls using gesture recognizers do not respond to taps. I am deploying to a USB-connected iPhone. It works fine on Android.

Some example code:


Original Comments

Feedback Bot on 11/17/2021, 00:01 AM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.

Graeme Vincent on 11/17/2021, 04:50 AM:

I think I need to point out that the gesture recognizers do work when I deploy to an iPhone connected to a Macbook.
That deployment has it’s own new set of problems which I have logged in another ticket.

Luke Sullivan on 11/18/2021, 09:43 PM:

I’m having the same problem. This is a major hinderance to our development schedule. Any workaround or solutions would be great! Thank you!

Luke Sullivan on 11/19/2021, 10:45 AM:

I would also like to point out that any iOS 15 device stopped deploying on vs 2019 as well. The workout fix was to take files from vs 2022 to allow vs2019 to then be able to deploy again. This solved that issue but now the gesture recognition doesn’t work in vs 2019 16.11.7 either. This is not restricted to vs 2022 v17.0.1


Original Solutions

(no solutions)

vsfeedback avatar Dec 03 '21 17:12 vsfeedback

Can't reproduce both on the Simulator as well as on a physical device. Please ping me when you find this and can add a reproduction project for us to try.

jfversluis avatar Dec 06 '21 14:12 jfversluis

I don't know of a project you can try, but I am still having this issue. It does not happen when using the simulator, only when loading directly to a phone. In Android the gesture recognizer works, but in iOS it does not work. This has not been fixed.

lukies97 avatar Dec 07 '21 06:12 lukies97

@lukies97 thanks for finding this issue here! I'll reopen it for now, but I can't reproduce it myself. As mentioned: I did try on a phone :)

So I would really need a reproduction case first to see what is wrong in which scenario.

jfversluis avatar Dec 08 '21 13:12 jfversluis

@jfversluis I was able to reproduce in 2022 Community using the WorkingWithGestures Sample Project on a USB connected iPhone XS.

melmulcahy32 avatar Dec 08 '21 15:12 melmulcahy32

@melmulcahy32 thanks! Not sure what to tell you... For me that just works... 😩

jfversluis avatar Dec 09 '21 13:12 jfversluis

@melmulcahy32 thanks! Not sure what to tell you... For me that just works... 😩

😭 perhaps it's an environment thing. I know my dev team uses MacStadium and builds apps using a virtual Mac.

melmulcahy32 avatar Dec 09 '21 14:12 melmulcahy32

I was the user who reported this. I think it may be worth mentioning that I followed some other steps from a Microsoft rep to fix a provisioning problem in VS2019. This was to install VS 2022, then copy the iSign.Core.dll, iSign.Core.pdb and System.Formats.Asn1.dll files from /tools/msbuild/ios to C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Xamarin\iOS. Unfortunately I cannot remember if the gesture recognizers bug appeared before or after copying those files. I'm pretty sure it was after, because I wasn't able to deploy at all until copying those files.

grvingit avatar Dec 30 '21 02:12 grvingit

@grvingit but you are still seeing this behavior?

jfversluis avatar Dec 30 '21 07:12 jfversluis

I have the same issue, with provided WorkingWithGestures sample and my own codes. Android no issues on same apps. . USB direct with hot reload, no MAC pairing, studio 2019 and 2022.

MiekVenter avatar Dec 30 '21 12:12 MiekVenter

I also followed the same steps as @grvingit and I am still having trouble with the gesture recognizer. I didn't have the issues in 2019 until after followed those steps and now I have the issue in VS2019 and VS2022.

lukies97 avatar Jan 01 '22 05:01 lukies97

@jfversluis Yes, I am still seeing it. I had to remove all gesture recognizers in my app and replace them with image buttons in order to get an urgent update out, but this evening when I tried them again they still do not work.

grvingit avatar Jan 03 '22 15:01 grvingit

@MiekVenter did you also do something with the copying of DLLs as mentioned above?

jfversluis avatar Jan 04 '22 09:01 jfversluis

No, no copying. New clean 2022 installation, first project ever compiled on new installation was the demo.

MiekVenter avatar Jan 04 '22 09:01 MiekVenter

You're running this from Windows through Hot Restart (directly on a physical iOS device)? Or do you have it paired to a Mac?

jfversluis avatar Jan 04 '22 09:01 jfversluis

Direct on hot restart

MiekVenter avatar Jan 04 '22 09:01 MiekVenter

I will have an MAC box by next week.

MiekVenter avatar Jan 04 '22 09:01 MiekVenter

@chamons @dalexsoto I see this happened before in #10162 any chance this has regressed?

jfversluis avatar Jan 04 '22 09:01 jfversluis

For me the problem only occurs with Hot Restart. I've just tried it through a paired Mac and gesture recognizers works fine. Unfortunately for me developing and debugging this way is not an option as deploying is too slow - it takes a number of minutes each time.

grvingit avatar Jan 04 '22 10:01 grvingit

Yeah the cause seems to be Hot Restart here, found an earlier issue that describes the same, maybe there is a regression there. We just need to wait for them to wake up ;)

jfversluis avatar Jan 04 '22 10:01 jfversluis

Did they ever wake up? ;) 10 Days is a long sleep.

lukies97 avatar Jan 14 '22 14:01 lukies97

They work very hard! No news yet unfortunately :(

jfversluis avatar Jan 14 '22 14:01 jfversluis

I appreciate that they work hard. I was just trying at some levity. Hopefully they can figure out something soon.

lukies97 avatar Jan 22 '22 23:01 lukies97

Just want to verify that, using Hot Restart, all GestureRecognizers are completely broken, for all controls. Along with many many other critical bugs.

Really not a good experience so far.

BlueRaja avatar Feb 09 '22 07:02 BlueRaja

I've raised it again to the people responsible, thanks for your patience!

jfversluis avatar Feb 09 '22 09:02 jfversluis

I think VS 2022 Preview 5 has a lot of patches regard this issue. It's been promising for my team so far.

melmulcahy32 avatar Feb 09 '22 13:02 melmulcahy32

Me and a colleague are now experiencing this on Mac with VS 4 Mac 8.10.17 and 8.10.18. Running M1 MacBooks.

haavamoa avatar Feb 11 '22 14:02 haavamoa

I am experiencing this exact problem after upgrading VS Enterprise from 17.0.0 to 17.0.6. GestureRecognizers not working on USB connected iPhone deployed using Hot Reload. Everyting is working fine on Android. The problem is reproduceable using the Tabbed New Mobile App Template.

Dump of installed products (from the About-menu): Microsoft Visual Studio Enterprise 2022 Version 17.0.6 VisualStudio.17.Release/17.0.6+32126.317 Microsoft .NET Framework Version 4.8.03752

Installed Version: Enterprise

Visual C++ 2022 00476-80000-00000-AA059 Microsoft Visual C++ 2022

ASP.NET and Web Tools 2019 17.0.796.18217 ASP.NET and Web Tools 2019

Azure App Service Tools v3.0.0 17.0.796.18217 Azure App Service Tools v3.0.0

C# Tools 4.0.1-1.21568.1+6ab6601178d9fba8c680b56934cd1742e0816bff C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Common Azure Tools 1.10 Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

Extensibility Message Bus 1.2.6 (master@34d6af2) Provides common messaging-based MEF services for loosely coupled Visual Studio extension components communication and integration.

Microsoft JVM Debugger 1.0 Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines

Microsoft MI-Based Debugger 1.0 Provides support for connecting Visual Studio to MI compatible debuggers

Microsoft Visual C++ Wizards 1.0 Microsoft Visual C++ Wizards

Microsoft Visual Studio VC Package 1.0 Microsoft Visual Studio VC Package

Mono Debugging for Visual Studio 17.0.11 (54f19d2) Support for debugging Mono processes with Visual Studio.

NuGet Package Manager 6.0.1 NuGet Package Manager in Visual Studio. For more information about NuGet, visit https://docs.nuget.org/

ProjectServicesPackage Extension 1.0 ProjectServicesPackage Visual Studio Extension Detailed Info

TypeScript Tools 17.0.1001.2002 TypeScript Tools for Microsoft Visual Studio

Visual Basic Tools 4.0.1-1.21568.1+6ab6601178d9fba8c680b56934cd1742e0816bff Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Visual F# Tools 17.0.0-beta.21522.2+6d626ff0752a77d339f609b4d361787dc9ca93a5 Microsoft Visual F# Tools

Visual Studio Code Debug Adapter Host Package 1.0 Interop layer for hosting Visual Studio Code debug adapters in Visual Studio

Visual Studio IntelliCode 2.2 AI-assisted development for Visual Studio.

VisualStudio.DeviceLog 1.0 Information about my package

VisualStudio.Foo 1.0 Information about my package

VisualStudio.Mac 1.0 Mac Extension for Visual Studio

Xamarin 17.0.0.343 (d17-0@fb07a17) Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin Designer 17.0.0.183 (remotes/origin/d17-0@a351f0f1f) Visual Studio extension to enable Xamarin Designer tools in Visual Studio.

Xamarin Templates 17.0.17 (9e779b0) Templates for building iOS, Android, and Windows apps with Xamarin and Xamarin.Forms.

Xamarin.Android SDK 12.1.0.5 (d17-0/6b0e6b2) Xamarin.Android Reference Assemblies and MSBuild support. Mono: c633fe9 Java.Interop: xamarin/java.interop/d17-0@febb1367 ProGuard: Guardsquare/proguard/v7.0.1@912d149 SQLite: xamarin/sqlite/3.36.0@a575761 Xamarin.Android Tools: xamarin/xamarin-android-tools/d17-0@a5194e9

Xamarin.iOS and Xamarin.Mac SDK 15.4.0.0 (8fc41ae82) Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.

DanielMuhlig avatar Feb 13 '22 12:02 DanielMuhlig

We are now experiencing this in our production app by using Azure Devops pipeline, because pipeline is using Visual Studio 4 Mac 8.10.18 with the macOS11 virtual environment. Locally on my machine I am running 8.10.19 and it works as expected.

So if you are experiencing this issue, check your Mac's VS4Mac version.

https://github.com/actions/virtual-environments/issues/5120

haavamoa avatar Feb 22 '22 09:02 haavamoa

Is there some progress on the issue? We've been affected for almost three months now. Working on UI controls is hardly possible.

nemekzg avatar Mar 24 '22 12:03 nemekzg

It's finished using Xamarin, we've been waiting months for corrections. My company has decided to switch to IONIC or REACT. Goodbye Microsoft

MereDoku avatar May 09 '22 12:05 MereDoku