question

bngnguynvn-0688 avatar image
0 Votes"
bngnguynvn-0688 asked LeonLu-MSFT commented

Xamarin frorm build iOS app has issues on device but runs fine on simulator . Erorr message: xamarin_timezone_get_data

Location: vietnam
Device: ios 12.4.2

88739-anh-chup-man-hinh-2021-04-17-luc-153746.png

at System.TimeZoneInfo.GetMonoTouchData (System.String name, System.Boolean throw_on_error) [0x00002] in /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/src/Xamarin.iOS/mcs/class/corlib/System/TimeZoneInfo.MonoTouch.cs:98
at System.TimeZoneInfo.CreateLocal () [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/src/Xamarin.iOS/mcs/class/corlib/System/TimeZoneInfo.MonoTouch.cs:52
at System.TimeZoneInfo.get_Local () [0x00009] in /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/src/Xamarin.iOS/mcs/class/corlib/System/TimeZoneInfo.cs:76
at System.TimeZoneInfo.GetDateTimeNowUtcOffsetFromUtc (System.DateTime time, System.Boolean& isAmbiguousLocalDst) [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/src/Xamarin.iOS/mcs/class/corlib/System/TimeZoneInfo.cs:522
at System.DateTime.get_Now () [0x00008] in /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/src/Xamarin.iOS/external/corefx/src/Common/src/CoreLib/System/DateTime.cs:1007
at Xamarin.CommunityToolkit.Effects.TouchEffect..ctor () [0x00021] in <ed56dc24dfeb4b7cbd0f7272b792096c>:0
at Xamarin.CommunityToolkit.Effects.TouchEffect.TryGenerateEffect (Xamarin.Forms.BindableObject bindable, System.Object oldValue, System.Object newValue) [0x00023] in <ed56dc24dfeb4b7cbd0f7272b792096c>:0
at Xamarin.Forms.BindableObject.SetValueActual (Xamarin.Forms.BindableProperty property, Xamarin.Forms.BindableObject+BindablePropertyContext context, System.Object value, System.Boolean currentlyApplying, Xamarin.Forms.Internals.SetValueFlags attributes, System.Boolean silent) [0x00120] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:512
at Xamarin.Forms.BindableObject.SetValueCore (Xamarin.Forms.BindableProperty property, System.Object value, Xamarin.Forms.Internals.SetValueFlags attributes, Xamarin.Forms.BindableObject+SetValuePrivateFlags privateAttributes) [0x00173] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:446
at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindableProperty property, System.Object value, System.Boolean fromStyle, System.Boolean checkAccess) [0x0004d] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:374
at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindableProperty property, System.Object value) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:349
at ProjectQrcode.Views.Pages.HomePage.InitializeComponent () [0x00166] in /Users/vietmy/Duan/ProjectQrcode/ProjectQrcode/obj/Debug/netstandard2.0/Views/Pages/HomePage.xaml.g.cs:102
at ProjectQrcode.Views.Pages.HomePage..ctor () [0x00013] in /Users/vietmy/Duan/ProjectQrcode/ProjectQrcode/Views/Pages/HomePage.xaml.cs:23
at ProjectQrcode.App..ctor () [0x0001b] in /Users/vietmy/Duan/ProjectQrcode/ProjectQrcode/App.xaml.cs:44


dotnet-xamarin
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

What your device's TimeZone, please set the same timezone as your iPhone simulator, If your code have code that set timezone, you can refer to this thread: https://www.xamarinhelp.com/time-zones-xamarin-forms/

0 Votes 0 ·

1 Answer

bngnguynvn-0688 avatar image
0 Votes"
bngnguynvn-0688 answered LeonLu-MSFT commented

My problem was solved by removing Visual and reinstalling it.
89020-anh-chup-man-hinh-2021-04-19-luc-163138.png



If I update it immediately cause More Errors, it looks like an Error is appearing from this update..


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks for your sharing, I moved you comment to answer.

0 Votes 0 ·