@@ -40,38 +40,45 @@ impl AppStoreRule for XcodeVersionRule {
4040 let dtxcode = plist. get_string ( "DTXcode" ) ;
4141 if let Some ( version_str) = dtxcode {
4242 if let Ok ( version_int) = version_str. parse :: < u32 > ( ) {
43- if version_int < 1800 { // Assuming 2600 is Xcode 26, but let's be conservative for now or use a heuristic
43+ if version_int < 1800 {
44+ // Assuming 2600 is Xcode 26, but let's be conservative for now or use a heuristic
4445 // Note: User specified 2026 mandate usually corresponds to next major version.
4546 // If current is Xcode 15/16, Xcode 26 is far off, but the prompt says 2026.
4647 // Actually, Xcode versions don't jump to 26 that fast.
47- // Wait, maybe the user meant Xcode 17 or 18?
48+ // Wait, maybe the user meant Xcode 17 or 18?
4849 // Let's check the prompt again: "Xcode 26+... build bằng Xcode 26 và iOS 26 SDK"
4950 // That's a very high version number. Maybe it's a future-proof check.
50-
51+
5152 if version_int < 2600 {
52- failures. push ( format ! ( "Built with Xcode version {} (required 2600+)" , version_str) ) ;
53+ failures. push ( format ! (
54+ "Built with Xcode version {} (required 2600+)" ,
55+ version_str
56+ ) ) ;
5357 }
5458 }
5559 }
5660 } else {
57- failures. push ( "DTXcode key missing" . to_string ( ) ) ;
61+ failures. push ( "DTXcode key missing" . to_string ( ) ) ;
5862 }
5963
6064 // 2. Check DTPlatformVersion (e.g., "18.0")
6165 let platform_version = plist. get_string ( "DTPlatformVersion" ) ;
6266 if let Some ( version) = platform_version {
63- if let Ok ( v) = version. parse :: < f32 > ( ) {
64- if v < 26.0 {
65- failures. push ( format ! ( "Built with platform version {} (required 26.0+)" , version) ) ;
66- }
67- }
67+ if let Ok ( v) = version. parse :: < f32 > ( ) {
68+ if v < 26.0 {
69+ failures. push ( format ! (
70+ "Built with platform version {} (required 26.0+)" ,
71+ version
72+ ) ) ;
73+ }
74+ }
6875 }
6976
7077 // 3. Check DTSDKName (e.g., "iphoneos18.0")
7178 let sdk_name = plist. get_string ( "DTSDKName" ) ;
7279 if let Some ( name) = sdk_name {
7380 if !name. contains ( "26" ) {
74- failures. push ( format ! ( "Built with SDK {} (required iOS 26 SDK)" , name) ) ;
81+ failures. push ( format ! ( "Built with SDK {} (required iOS 26 SDK)" , name) ) ;
7582 }
7683 }
7784
0 commit comments