Kaynağa Gözat

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

gjh 1 hafta önce
ebeveyn
işleme
cc53523b5f
2 değiştirilmiş dosya ile 32 ekleme ve 0 silme
  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
 				PRODUCT_BUNDLE_IDENTIFIER = com.eitchsyh.instrument;
610
 				PRODUCT_BUNDLE_IDENTIFIER = com.eitchsyh.instrument;
611
 				PRODUCT_NAME = "$(TARGET_NAME)";
611
 				PRODUCT_NAME = "$(TARGET_NAME)";
612
 				PROVISIONING_PROFILE_SPECIFIER = "";
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
 				SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
617
 				SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
614
 				SWIFT_VERSION = 5.0;
618
 				SWIFT_VERSION = 5.0;
619
+				TARGETED_DEVICE_FAMILY = "1,2";
615
 				VERSIONING_SYSTEM = "apple-generic";
620
 				VERSIONING_SYSTEM = "apple-generic";
616
 			};
621
 			};
617
 			name = "Profile-hsjk";
622
 			name = "Profile-hsjk";
@@ -751,9 +756,14 @@
751
 				PRODUCT_BUNDLE_IDENTIFIER = com.hst.instrument;
756
 				PRODUCT_BUNDLE_IDENTIFIER = com.hst.instrument;
752
 				PRODUCT_NAME = "$(TARGET_NAME)";
757
 				PRODUCT_NAME = "$(TARGET_NAME)";
753
 				PROVISIONING_PROFILE_SPECIFIER = "";
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
 				SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
763
 				SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
755
 				SWIFT_OPTIMIZATION_LEVEL = "-Onone";
764
 				SWIFT_OPTIMIZATION_LEVEL = "-Onone";
756
 				SWIFT_VERSION = 5.0;
765
 				SWIFT_VERSION = 5.0;
766
+				TARGETED_DEVICE_FAMILY = "1,2";
757
 				VERSIONING_SYSTEM = "apple-generic";
767
 				VERSIONING_SYSTEM = "apple-generic";
758
 			};
768
 			};
759
 			name = "Debug-hst";
769
 			name = "Debug-hst";
@@ -858,8 +868,13 @@
858
 				PRODUCT_BUNDLE_IDENTIFIER = com.hst.instrument;
868
 				PRODUCT_BUNDLE_IDENTIFIER = com.hst.instrument;
859
 				PRODUCT_NAME = "$(TARGET_NAME)";
869
 				PRODUCT_NAME = "$(TARGET_NAME)";
860
 				PROVISIONING_PROFILE_SPECIFIER = "";
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
 				SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
875
 				SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
862
 				SWIFT_VERSION = 5.0;
876
 				SWIFT_VERSION = 5.0;
877
+				TARGETED_DEVICE_FAMILY = "1,2";
863
 				VERSIONING_SYSTEM = "apple-generic";
878
 				VERSIONING_SYSTEM = "apple-generic";
864
 			};
879
 			};
865
 			name = "Release-hst";
880
 			name = "Release-hst";
@@ -964,8 +979,13 @@
964
 				PRODUCT_BUNDLE_IDENTIFIER = com.hst.instrument;
979
 				PRODUCT_BUNDLE_IDENTIFIER = com.hst.instrument;
965
 				PRODUCT_NAME = "$(TARGET_NAME)";
980
 				PRODUCT_NAME = "$(TARGET_NAME)";
966
 				PROVISIONING_PROFILE_SPECIFIER = "";
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
 				SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
986
 				SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
968
 				SWIFT_VERSION = 5.0;
987
 				SWIFT_VERSION = 5.0;
988
+				TARGETED_DEVICE_FAMILY = "1,2";
969
 				VERSIONING_SYSTEM = "apple-generic";
989
 				VERSIONING_SYSTEM = "apple-generic";
970
 			};
990
 			};
971
 			name = "Profile-hst";
991
 			name = "Profile-hst";
@@ -1128,9 +1148,14 @@
1128
 				PRODUCT_BUNDLE_IDENTIFIER = com.eitchsyh.instrument;
1148
 				PRODUCT_BUNDLE_IDENTIFIER = com.eitchsyh.instrument;
1129
 				PRODUCT_NAME = "$(TARGET_NAME)";
1149
 				PRODUCT_NAME = "$(TARGET_NAME)";
1130
 				PROVISIONING_PROFILE_SPECIFIER = "";
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
 				SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
1155
 				SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
1132
 				SWIFT_OPTIMIZATION_LEVEL = "-Onone";
1156
 				SWIFT_OPTIMIZATION_LEVEL = "-Onone";
1133
 				SWIFT_VERSION = 5.0;
1157
 				SWIFT_VERSION = 5.0;
1158
+				TARGETED_DEVICE_FAMILY = "1,2";
1134
 				VERSIONING_SYSTEM = "apple-generic";
1159
 				VERSIONING_SYSTEM = "apple-generic";
1135
 			};
1160
 			};
1136
 			name = "Debug-hsjk";
1161
 			name = "Debug-hsjk";
@@ -1167,8 +1192,13 @@
1167
 				PRODUCT_BUNDLE_IDENTIFIER = com.eitchsyh.instrument;
1192
 				PRODUCT_BUNDLE_IDENTIFIER = com.eitchsyh.instrument;
1168
 				PRODUCT_NAME = "$(TARGET_NAME)";
1193
 				PRODUCT_NAME = "$(TARGET_NAME)";
1169
 				PROVISIONING_PROFILE_SPECIFIER = "";
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
 				SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
1199
 				SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
1171
 				SWIFT_VERSION = 5.0;
1200
 				SWIFT_VERSION = 5.0;
1201
+				TARGETED_DEVICE_FAMILY = "1,2";
1172
 				VERSIONING_SYSTEM = "apple-generic";
1202
 				VERSIONING_SYSTEM = "apple-generic";
1173
 			};
1203
 			};
1174
 			name = "Release-hsjk";
1204
 			name = "Release-hsjk";

+ 2 - 0
ios/Runner/Info.plist

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