private void OnMobileAppendixGUI() { if (mobileAppendix != null) { if (mobileAppendix.Architectures != null) { EditorGUILayout.LabelField(" Download Sizes: "); foreach (var entry in mobileAppendix.Architectures) { var sizeText = entry.DownloadSize == 0 ? "N/A" : FormatSize((ulong)entry.DownloadSize); EditorGUILayout.LabelField(string.Format(" {0}", entry.Name), sizeText); } } else { EditorGUILayout.HelpBox("Could not determine the architectures present in the build.", MessageType.Warning); } } #if UNITY_EDITOR_OSX // On macOS, show a help dialog for generating the MobileAppendix for iOS/tvOS else if (report.summary.platform == BuildTarget.iOS || report.summary.platform == BuildTarget.tvOS) { EditorGUILayout.HelpBox("To get more accurate report data, please provide an .ipa file generated from a " + "matching Unity build using the dialog below.", MessageType.Warning); if (!GUILayout.Button("Select an .ipa bundle")) { return; } var ipaPath = EditorUtility.OpenFilePanel("Select an .ipa build.", "", "ipa"); if (!string.IsNullOrEmpty(ipaPath)) { // If an .ipa is selected, generate the MobileAppendix MobileHelper.GenerateAppleAppendix(ipaPath, report.summary.guid.ToString()); } } #endif // UNITY_EDITOR_OSX }