unoplatform/uno

`Given_ApplicationDataContainer_When_GetAllKeys` fails on iOS

Open

#1.285 geöffnet am 22. Juli 2019

Auf GitHub ansehen
 (4 Kommentare) (0 Reaktionen) (1 zugewiesene Person)C# (837 Forks)batch import
area/tests 🧪difficulty/medium 🤔has-repro-branchhelp wantedkind/bugplatform/ios 🍎project/core-tools 🛠️project/non-ui ⚙️

Repository-Metriken

Stars
 (9.789 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 14T 8h) (130 gemergte PRs in 30 T)

Beschreibung

Current behavior

Given_ApplicationDataContainer_When_GetAllKeys fails on iOS when run on my device. The problem seems to be the fact, that even after clearing, the NSUserDefaults.StandardUserDefaults contains a ton of weird default settings like:

AppleLanguages, AppleLocale, NSInterfaceStyle, AppleITunesStoreItemKinds, AppleKeyboardsExpanded, PKKeychainVersionKey, ApplePasscodeKeyboards , AppleKeyboards, NSLanguages, NSInterfaceStyle

One of those being a date, which contains :, which Uno, unfortunately, uses as deserialization separator. This makes the DataTypeSerializer crash with exception.

Expected behavior

Runtime tests should run from SamplesApp without issues.

How to reproduce it (as minimally and precisely as possible)

Run Runtime tests via the SamplesApp on iOS.

Environment

Nuget Package:

Package Version(s):

Affected platform(s):

  • iOS
  • Android
  • WebAssembly
  • Windows
  • Build tasks

Visual Studio

  • 2017 (version: )
  • 2019 (version: 16.2 Preview 3)
  • for Mac (version: )

Relevant plugins

  • Resharper (version: )

Anything else we need to know?

Contributor Guide