navigator.geolocation.watchPosition worked well in the Visual Studio Cordova project but it does not work anymore. Later, there was also an error that navigator.connection.type is always "none".
These appeared after the last Visual Studio Community update.
The old version works well on the devices.
Has anyone else had the same problem?
It's to do with a bug in the latest Chrome (65). Still trying to find a workaround myself https://bugs.chromium.org/p/chromium/issues/detail?id=820945#c8
Related
After four weeks, I returned to my Xamarin project in Visual Studio to finish my app, I updated Visual Studio on my Windows PC, I updated XCode on my Mac and when I try to launch emulator, I get this:
I changed nothing in the code, it worked previously. The only thing I can think of that could f*ck all up is I was trying to prepare my app for testing (so I was doing some stuff in developer account settings, provisioning etc.)
Does anyone know how to fix this, or at least what it means?
Thanks!
Okay, turns out the problem was in version mismatch :) All I needed to do was click "Update on Mac" in the "Connect to Mac" window.
I am getting this error out of a sudden after not working on my Xamarin.Forms project for a while. I havent seen it before and googling is not helping a lot
have you updated your device to iOS12? If so, have you also updated XCode to the latest version?
I am on current Visual Studio Version 15.8.4 which contain Xamarin.iOS 11.14.0.13. Today I updated my Visual Studio for Mac and automatically updated Xamarin.iOS to version 12.0.0.15 (based on he Xcode 10 final release) which is not compatible. I get the following error:
Xamarin.iOS versions mismatch
The Xamarin.iOS SDK version installed on
Max is not compatible with this version of Visual Studio. Would you
like us to install Xamarin.iOS '11.14' for you? This will overwrite
any existing Xamarin.iOS installation on your Mac.
When I click 'Install' then the following error occurs:
Error
There were problems installing Xamarin.iOS '11.14'. Please try
again and if the problem persists, try installing directly on the Mac
and connect again.
On the mac I chose Update channel: Stable. I also tried the other channels withoud success. I am not able to install version 11.14 at all at the moment.
Is my only option to wait until they fix that version mismatch?
Visual Studio Version 15.8.5 fixes this. The release notes contain the following text:
Visual Studio Tools for Xamarin now supports Xcode 10, which allows
you to build and debug apps for iOS 12, tvOS 12, and watchOS 5.
I am getting the same error after reading this blog post and following the upgrade suggestions.
https://blog.xamarin.com/ios-12-and-xcode-10/
But my first read through I missed this little tidbit.
"On Windows, Visual Studio 2017 will prompt for an update as it rolls out."
It appears as if the Visual Studio update might not be available yet. I allowed the prompt to downgrade the SDK and I can now connect again. My problem now is that I can no longer use the iOS Xamarin Simulator on my Windows machine. I get a device not found.
I figure the only way to fix this is to downgrade my Xcode back to 9. A workaround is to simply uncheck the "Remote Simulator to Windows" option in Visual Studio under Xamarin -> iOS Settings. That allows the simulator to launch my app on the Mac. I think I can live with this for now and hope that a new VS update is right around the corner.
Update: I also think it is important to mention that Matthew Clendening in the comments to the original post did provide a link to a preview release of the Visual Studio tools if any was unwilling to wait for an official release.
Update 2: We decided to try the pre-release versions of the Visual Studio tools that Matthew linked above and did verify that Pairing works after installing them. If people are not spooked off by pre-release software then it is a viable option.
Update 3: I spoke too soon. I am able to Pair with my Mac with XCode 10 installed but still cannot get the Simulator to run on my windows machine so I am essentially back to where I was when I down graded Xamarin.iOS SDK to 11.4. I am going to dig more to see if this is an unrelated issue.
Last Update: So, overnight as Todd mentioned Microsoft released 15.8.5 and after upgrading, everything is working normally again. Lesson learned ... don't upgrade ANYTHING until EVERYTHING is ready.
I'm trying to switch from VS for Mac to Rider. My Xamarin.Forms project compiles and deploys on VS for Mac on both iOS and Android. Now I've opened the project in rider and it works great for the Android app, but when I try to run the iOS app, I get this error (after a successful build):
Application bundle was not generated after deployment
I've tried clean & rebuild, but to no avail.
Any ideas?
This happened to me today on Mac OS with the release of XCode 12.0, So what fixed it for me was to TOTALLY uninstall XCode and re down the last version I had installed, V11.6 from apple developers site https://developer.apple.com/download/more/?&name=Xcode. After that Rider will now run the iOS simulator as normal.
I guess the lesson learned is to not just update XCode until a few weeks, because I think Jetbrains need to catch up and release a newer version that works with the newer version of XCode. Of course if you need to test your app with the latest new version of iOS, then I guess you can still use VS for Mac as that still worked fine for me, but I need Rider to code, VS just doesn't do it for me at the moment
Update:
I upgraded to XCode 12 today (3/10/2020) and all seems to be working fine..
Another possible work around if it doesn't work maybe: youtrack Jetbrains
Sorry, this is a known issue with the latest release (2018.1). Already fixed and waiting to be made public as part of 2018.1.1 later this month. The only current workaround that I know is to revert to 2017.3.
Tested today.
Download the last released version directly from their website.
Now is launching iOS devices.
Rider 2.2.4
This now works for me in the 2018.2 EAP build.
Make sure you select iPhoneSimulator for your platform type under your configurations.
If you don't, you may also get the Application bundle was not generated after deployment message.
source
I have recently installed Win10, VS2017 Community and Xamarin Studio on my computer. My project is written in VS2017, and when I compile and run it on the device from VS2017 it all works fine, but when I open it in Xamarin studio, I get error "this project type requires Xamarin.Android to be installed". I installed monodevelop, gtk sharp, build tools fool. In Android SDK Manager I installed all I needed. Also, when I press "New solution" in Xamarin studio, it does not offer "Android project". None of the answers I found doesn't works for me. All of the above mentioned worked perfectly on Win7, except that that project was written in VS2015 Community! Need help. Thanks in advance!
I ran into this issue as well. I had been developing in Visual Studio 2017 and wanted to switch to Xamarin Studio for working on layouts, since the designer and AXML intellisense is so much better.
What I discovered is that I needed to install a seperate Xamarin.Android package. I downloaded it from this link https://store.xamarin.com/account/my/subscription/downloads. The universal installer didn't work for me; it only offered to install a remote iOS emulator, Xamarin Profiler, and Xamarin Workbooks, so I downloaded the separate installer and it cleared the issue up.
I came across this same error, and the search results brought me here. Unfortunately, the solutions above are now out of date.
I eventually solved my problem, by going to Preferences -> Projects -> SDK Locations -> Android. Where it immediately showed a popup "SDK needs repair". I had to leave it to download the necessary components.
FYI, Xamarin Studio is now Visual Studio for Mac.