Browse Source

ios设置只支持iphone和ipad,设置最低支持macos的版本参数

gjh 1 week ago
parent
commit
cc53523b5f
2 changed files with 32 additions and 0 deletions
  1. 30 0
      ios/Runner.xcodeproj/project.pbxproj
  2. 2 0
      ios/Runner/Info.plist

+ 30 - 0
ios/Runner.xcodeproj/project.pbxproj

@@ -610,8 +610,13 @@
610 610
 				PRODUCT_BUNDLE_IDENTIFIER = com.eitchsyh.instrument;
611 611
 				PRODUCT_NAME = "$(TARGET_NAME)";
612 612
 				PROVISIONING_PROFILE_SPECIFIER = "";
613
+				SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
614
+				SUPPORTS_MACCATALYST = NO;
615
+				SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;
616
+				SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = NO;
613 617
 				SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
614 618
 				SWIFT_VERSION = 5.0;
619
+				TARGETED_DEVICE_FAMILY = "1,2";
615 620
 				VERSIONING_SYSTEM = "apple-generic";
616 621
 			};
617 622
 			name = "Profile-hsjk";
@@ -751,9 +756,14 @@
751 756
 				PRODUCT_BUNDLE_IDENTIFIER = com.hst.instrument;
752 757
 				PRODUCT_NAME = "$(TARGET_NAME)";
753 758
 				PROVISIONING_PROFILE_SPECIFIER = "";
759
+				SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
760
+				SUPPORTS_MACCATALYST = NO;
761
+				SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;
762
+				SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = NO;
754 763
 				SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
755 764
 				SWIFT_OPTIMIZATION_LEVEL = "-Onone";
756 765
 				SWIFT_VERSION = 5.0;
766
+				TARGETED_DEVICE_FAMILY = "1,2";
757 767
 				VERSIONING_SYSTEM = "apple-generic";
758 768
 			};
759 769
 			name = "Debug-hst";
@@ -858,8 +868,13 @@
858 868
 				PRODUCT_BUNDLE_IDENTIFIER = com.hst.instrument;
859 869
 				PRODUCT_NAME = "$(TARGET_NAME)";
860 870
 				PROVISIONING_PROFILE_SPECIFIER = "";
871
+				SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
872
+				SUPPORTS_MACCATALYST = NO;
873
+				SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;
874
+				SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = NO;
861 875
 				SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
862 876
 				SWIFT_VERSION = 5.0;
877
+				TARGETED_DEVICE_FAMILY = "1,2";
863 878
 				VERSIONING_SYSTEM = "apple-generic";
864 879
 			};
865 880
 			name = "Release-hst";
@@ -964,8 +979,13 @@
964 979
 				PRODUCT_BUNDLE_IDENTIFIER = com.hst.instrument;
965 980
 				PRODUCT_NAME = "$(TARGET_NAME)";
966 981
 				PROVISIONING_PROFILE_SPECIFIER = "";
982
+				SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
983
+				SUPPORTS_MACCATALYST = NO;
984
+				SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;
985
+				SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = NO;
967 986
 				SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
968 987
 				SWIFT_VERSION = 5.0;
988
+				TARGETED_DEVICE_FAMILY = "1,2";
969 989
 				VERSIONING_SYSTEM = "apple-generic";
970 990
 			};
971 991
 			name = "Profile-hst";
@@ -1128,9 +1148,14 @@
1128 1148
 				PRODUCT_BUNDLE_IDENTIFIER = com.eitchsyh.instrument;
1129 1149
 				PRODUCT_NAME = "$(TARGET_NAME)";
1130 1150
 				PROVISIONING_PROFILE_SPECIFIER = "";
1151
+				SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
1152
+				SUPPORTS_MACCATALYST = NO;
1153
+				SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;
1154
+				SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = NO;
1131 1155
 				SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
1132 1156
 				SWIFT_OPTIMIZATION_LEVEL = "-Onone";
1133 1157
 				SWIFT_VERSION = 5.0;
1158
+				TARGETED_DEVICE_FAMILY = "1,2";
1134 1159
 				VERSIONING_SYSTEM = "apple-generic";
1135 1160
 			};
1136 1161
 			name = "Debug-hsjk";
@@ -1167,8 +1192,13 @@
1167 1192
 				PRODUCT_BUNDLE_IDENTIFIER = com.eitchsyh.instrument;
1168 1193
 				PRODUCT_NAME = "$(TARGET_NAME)";
1169 1194
 				PROVISIONING_PROFILE_SPECIFIER = "";
1195
+				SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
1196
+				SUPPORTS_MACCATALYST = NO;
1197
+				SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;
1198
+				SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = NO;
1170 1199
 				SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
1171 1200
 				SWIFT_VERSION = 5.0;
1201
+				TARGETED_DEVICE_FAMILY = "1,2";
1172 1202
 				VERSIONING_SYSTEM = "apple-generic";
1173 1203
 			};
1174 1204
 			name = "Release-hsjk";

+ 2 - 0
ios/Runner/Info.plist

@@ -68,5 +68,7 @@
68 68
 	<string>拍摄照片需要访问您的摄像头</string>
69 69
 	<key>ITSAppUsesNonExemptEncryption</key>
70 70
 	<false/>
71
+	<key>LSMinimumSystemVersion</key>
72
+	<string>12.0</string>
71 73
 </dict>
72 74
 </plist>