public void BadInfoPlist() { var plist = new PDictionary(); var result = ResolveNativeReferencesBase.ResolveXCFramework(plist, "iOS", null, "x86_64"); Assert.Null(result, "Invalid Info.plist"); }
public void PreXcode12(string platform, string variant, string architecture, string expected) { var path = Path.Combine(Path.GetDirectoryName(GetType().Assembly.Location), "Resources", "xcf-prexcode12.plist"); var plist = PDictionary.FromFile(path); var result = ResolveNativeReferencesBase.ResolveXCFramework(plist, platform, variant, architecture); Assert.That(result, Is.EqualTo(expected), expected); }
[TestCase("macOS", "maccatalyst", "x86_64", "")] // maccatalyst not available on macOS (it's on iOS) public void Xcode12_x(string platform, string variant, string architecture, string expected) { // some architecture changes recently, e.g. // in Xcode 12.1+ watchOS does not have an i386 architecture anymore // on Xcode 12.2+ you get arm64 for all (iOS, tvOS and watchOS) simulators var path = Path.Combine(Path.GetDirectoryName(GetType().Assembly.Location), "Resources", "xcf-xcode12.2.plist"); var plist = PDictionary.FromFile(path); var result = ResolveNativeReferencesBase.ResolveXCFramework(plist, platform, variant, architecture); Assert.That(result, Is.EqualTo(expected), expected); }