From 32cd805a4eb21cc4ab646c409e72be5284dcf3d0 Mon Sep 17 00:00:00 2001 From: liamcharger <105521623+liamcharger@users.noreply.github.com> Date: Mon, 10 Jun 2024 16:11:18 -0400 Subject: [PATCH] Add Mac Catalyst target (#130) --- InfiniLink.xcodeproj/project.pbxproj | 10 ++++++++-- InfiniLink/ContentView.swift | 1 + InfiniLink/InfiniLink.entitlements | 8 ++++++++ 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/InfiniLink.xcodeproj/project.pbxproj b/InfiniLink.xcodeproj/project.pbxproj index faca0be..c7af807 100644 --- a/InfiniLink.xcodeproj/project.pbxproj +++ b/InfiniLink.xcodeproj/project.pbxproj @@ -1058,8 +1058,11 @@ PRODUCT_BUNDLE_IDENTIFIER = "com.alexemry.Infini-iOS"; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; + SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; + SUPPORTS_MACCATALYST = YES; + SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO; SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = 1; + TARGETED_DEVICE_FAMILY = "1,2"; }; name = Debug; }; @@ -1087,8 +1090,11 @@ PRODUCT_BUNDLE_IDENTIFIER = "com.alexemry.Infini-iOS"; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; + SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; + SUPPORTS_MACCATALYST = YES; + SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO; SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = 1; + TARGETED_DEVICE_FAMILY = "1,2"; }; name = Release; }; diff --git a/InfiniLink/ContentView.swift b/InfiniLink/ContentView.swift index 54de5e7..76c809f 100644 --- a/InfiniLink/ContentView.swift +++ b/InfiniLink/ContentView.swift @@ -58,6 +58,7 @@ struct ContentView: View { Settings_Page() } } + .navigationViewStyle(.stack) tabBar } .alert(isPresented: $showDisconnectConfDialog) { diff --git a/InfiniLink/InfiniLink.entitlements b/InfiniLink/InfiniLink.entitlements index dab226c..e0a2b80 100644 --- a/InfiniLink/InfiniLink.entitlements +++ b/InfiniLink/InfiniLink.entitlements @@ -8,5 +8,13 @@ com.apple.developer.healthkit.background-delivery + com.apple.security.app-sandbox + + com.apple.security.device.bluetooth + + com.apple.security.network.client + + com.apple.security.personal-information.location +