开发者需要在App Store Connect中设置与StoreKit相关的出口合规性分类。若开发者使用StoreKit版本1,则需要设置为批准出口,若使用StoreKit版本2,则需要设置为受限出口。以下为示例代码:
StoreKit版本1的设置:
"export_compliance": { "uses_encryption": false, "encryption_updated": false, "contains_third_party_cryptography": false, "compliance_required": false, "app_type": "1", "app_contact_information": [ { "email": "email@example.com", "first_name": "First", "last_name": "Last", "phone_number": "123-456-7890", "website": "http://example.com" } ], "countries": [ "US" ] }
StoreKit版本2的设置:
"export_compliance": { "uses_encryption": true, "encryption_updated": false, "contains_third_party_cryptography": true, "compliance_required": true, "app_type": "1", "app_contact_information": [ { "email": "email@example.com", "first_name": "First", "last_name": "Last", "phone_number": "123-456-7890", "website": "http://example.com" } ], "countries": [ "US" ], "allowed_uses": [ "software" ], "consent_text": { "default": "By downloading the app, you agree to the export compliance terms.", "ja": "アプリをダウンロードすることにより、輸出規制の条件に同意することになります。" } }