File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,8 +35,16 @@ impl AppStoreRule for PrivacyManifestCompletenessRule {
3535 } ) ;
3636 } ;
3737
38- let manifest = InfoPlist :: from_file ( & manifest_path)
39- . map_err ( |_| crate :: rules:: entitlements:: EntitlementsError :: ParseFailure ) ?;
38+ let manifest = match InfoPlist :: from_file ( & manifest_path) {
39+ Ok ( m) => m,
40+ Err ( _) => {
41+ return Ok ( RuleReport {
42+ status : RuleStatus :: Skip ,
43+ message : Some ( "PrivacyInfo.xcprivacy is empty or invalid; skipping" . to_string ( ) ) ,
44+ evidence : Some ( manifest_path. display ( ) . to_string ( ) ) ,
45+ } ) ;
46+ }
47+ } ;
4048
4149 let scan = match artifact. usage_scan ( ) {
4250 Ok ( scan) => scan,
Original file line number Diff line number Diff line change @@ -35,8 +35,16 @@ impl AppStoreRule for PrivacyManifestSdkCrossCheckRule {
3535 } ) ;
3636 } ;
3737
38- let manifest = InfoPlist :: from_file ( & manifest_path)
39- . map_err ( |_| crate :: rules:: entitlements:: EntitlementsError :: ParseFailure ) ?;
38+ let manifest = match InfoPlist :: from_file ( & manifest_path) {
39+ Ok ( m) => m,
40+ Err ( _) => {
41+ return Ok ( RuleReport {
42+ status : RuleStatus :: Skip ,
43+ message : Some ( "PrivacyInfo.xcprivacy is empty or invalid; skipping" . to_string ( ) ) ,
44+ evidence : Some ( manifest_path. display ( ) . to_string ( ) ) ,
45+ } ) ;
46+ }
47+ } ;
4048
4149 let scan = match artifact. sdk_scan ( ) {
4250 Ok ( scan) => scan,
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ impl AppStoreRule for XcodeVersionRule {
1818 }
1919
2020 fn severity ( & self ) -> Severity {
21- Severity :: Error
21+ Severity :: Warning
2222 }
2323
2424 fn recommendation ( & self ) -> & ' static str {
You can’t perform that action at this time.
0 commit comments