用户追踪协议在uni-app中不管我怎么改都是中文

用户追踪协议在uni-app中不管我怎么改都是中文

示例代码:

"ios" : {  
    "dSYMs" : false,  
    "privacyDescription" : {  
        "NSCameraUsageDescription" : "We need camera access to let you take photos and scan QR codes for product sharing and easy checkout",  
        "NSPhotoLibraryUsageDescription" : "We need photo library access to let you select and save product photos for sharing and reviews",  
        "NSPhotoLibraryAddUsageDescription" : "We need permission to save product photos and receipts to your library for future reference",  
        "NSLocationWhenInUseUsageDescription" : "We need location access to find nearby stores, provide shipping estimates and location-based deals",  
        "NSLocalNetworkUsageDescription" : "We need local network access to enable faster loading and seamless shopping experience",  
        "NSNetworkingUsageDescription" : "We need network access to show latest products, process orders and provide real-time updates",  
        "NSWifiUsageDescription" : "We need WiFi access to provide stable connection for browsing products and completing purchases",  
        "NSMicrophoneUsageDescription" : "We need microphone access to enable voice search and customer support features",  
        "NSUserTrackingUsageDescription" : "We need tracking permission to show relevant products and provide personalized shopping recommendations",  
        "NSBluetoothUsageDescription" : "We need Bluetooth access to connect with nearby store beacons for exclusive offers",  
        "NSContactsUsageDescription" : "We need contacts access to help you share products and refer friends for rewards",  
        "NSCalendarsUsageDescription" : "We need calendar access to help you track orders and set sale reminders",  
        "NSFaceIDUsageDescription" : "We need Face ID access to securely protect your payment information and account details",  
        "NSMotionUsageDescription" : "We need motion sensor access to enable AR try-on features and interactive shopping",  
        "NSHealthShareUsageDescription" : "We need health data access to provide accurate size and fit recommendations",  
        "NSAppleMusicUsageDescription" : "We need Apple Music access to provide background music while shopping",  
        "NSLocationAlwaysAndWhenInUseUsageDescription" : "We need location access to find nearby stores, provide shipping estimates and location-based deals",  
        "NSLocationAlwaysUsageDescription" : "We need location access to find nearby stores, provide shipping estimates and location-based deals",  
        "NSBluetoothPeripheralUsageDescription" : "We need Bluetooth access to connect with nearby store beacons for exclusive offers",  
        "NSBluetoothAlwaysUsageDescription" : "We need Bluetooth access to connect with nearby store beacons for exclusive offers",  
        "NSSpeechRecognitionUsageDescription" : "We need speech recognition access to enable voice search and customer support features",  
        "NSRemindersUsageDescription" : "We need reminders access to help you track orders and set sale reminders",  
        "NSHealthUpdateUsageDescription" : "We need health data access to provide accurate size and fit recommendations",  
        "NFCReaderUsageDescription" : "We need NFC access to connect with nearby store beacons for exclusive offers",  
        "NSHomeKitUsageDescription" : "We need HomeKit access to control smart home devices and provide personalized shopping experiences",  
        "NSSiriUsageDescription" : "We need Siri access to enable voice search and customer support features"  
    },  
    "idfa" : false  
}

操作步骤:

"ios" : {  
    "dSYMs" : false,  
    "privacyDescription" : {  
        "NSCameraUsageDescription" : "We need camera access to let you take photos and scan QR codes for product sharing and easy checkout",  
        "NSPhotoLibraryUsageDescription" : "We need photo library access to let you select and save product photos for sharing and reviews",  
        "NSPhotoLibraryAddUsageDescription" : "We need permission to save product photos and receipts to your library for future reference",  
        "NSLocationWhenInUseUsageDescription" : "We need location access to find nearby stores, provide shipping estimates and location-based deals",  
        "NSLocalNetworkUsageDescription" : "We need local network access to enable faster loading and seamless shopping experience",  
        "NSNetworkingUsageDescription" : "We need network access to show latest products, process orders and provide real-time updates",  
        "NSWifiUsageDescription" : "We need WiFi access to provide stable connection for browsing products and completing purchases",  
        "NSMicrophoneUsageDescription" : "We need microphone access to enable voice search and customer support features",  
        "NSUserTrackingUsageDescription" : "We need tracking permission to show relevant products and provide personalized shopping recommendations",  
        "NSBluetoothUsageDescription" : "We need Bluetooth access to connect with nearby store beacons for exclusive offers",  
        "NSContactsUsageDescription" : "We need contacts access to help you share products and refer friends for rewards",  
        "NSCalendarsUsageDescription" : "We need calendar access to help you track orders and set sale reminders",  
        "NSFaceIDUsageDescription" : "We need Face ID access to securely protect your payment information and account details",  
        "NSMotionUsageDescription" : "We need motion sensor access to enable AR try-on features and interactive shopping",  
        "NSHealthShareUsageDescription" : "We need health data access to provide accurate size and fit recommendations",  
        "NSAppleMusicUsageDescription" : "We need Apple Music access to provide background music while shopping",  
        "NSLocationAlwaysAndWhenInUseUsageDescription" : "We need location access to find nearby stores, provide shipping estimates and location-based deals",  
        "NSLocationAlwaysUsageDescription" : "We need location access to find nearby stores, provide shipping estimates and location-based deals",  
        "NSBluetoothPeripheralUsageDescription" : "We need Bluetooth access to connect with nearby store beacons for exclusive offers",  
        "NSBluetoothAlwaysUsageDescription" : "We need Bluetooth access to connect with nearby store beacons for exclusive offers",  
        "NSSpeechRecognitionUsageDescription" : "We need speech recognition access to enable voice search and customer support features",  
        "NSRemindersUsageDescription" : "We need reminders access to help you track orders and set sale reminders",  
        "NSHealthUpdateUsageDescription" : "We need health data access to provide accurate size and fit recommendations",  
        "NFCReaderUsageDescription" : "We need NFC access to connect with nearby store beacons for exclusive offers",  
        "NSHomeKitUsageDescription" : "We need HomeKit access to control smart home devices and provide personalized shopping experiences",  
        "NSSiriUsageDescription" : "We need Siri access to enable voice search and customer support features"  
    },  
    "idfa" : false  
}

预期结果:

"ios" : {  
    "dSYMs" : false,  
    "privacyDescription" : {  
        "NSCameraUsageDescription" : "We need camera access to let you take photos and scan QR codes for product sharing and easy checkout",  
        "NSPhotoLibraryUsageDescription" : "We need photo library access to let you select and save product photos for sharing and reviews",  
        "NSPhotoLibraryAddUsageDescription" : "We need permission to save product photos and receipts to your library for future reference",  
        "NSLocationWhenInUseUsageDescription" : "We need location access to find nearby stores, provide shipping estimates and location-based deals",  
        "NSLocalNetworkUsageDescription" : "We need local network access to enable faster loading and seamless shopping experience",  
        "NSNetworkingUsageDescription" : "We need network access to show latest products, process orders and provide real-time updates",  
        "NSWifiUsageDescription" : "We need WiFi access to provide stable connection for browsing products and completing purchases",  
        "NSMicrophoneUsageDescription" : "We need microphone access to enable voice search and customer support features",  
        "NSUserTrackingUsageDescription" : "We need tracking permission to show relevant products and provide personalized shopping recommendations",  
        "NSBluetoothUsageDescription" : "We need Bluetooth access to connect with nearby store beacons for exclusive offers",  
        "NSContactsUsageDescription" : "We need contacts access to help you share products and refer friends for rewards",  
        "NSCalendarsUsageDescription" : "We need calendar access to help you track orders and set sale reminders",  
        "NSFaceIDUsageDescription" : "We need Face ID access to securely protect your payment information and account details",  
        "NSMotionUsageDescription" : "We need motion sensor access to enable AR try-on features and interactive shopping",  
        "NSHealthShareUsageDescription" : "We need health data access to provide accurate size and fit recommendations",  
        "NSAppleMusicUsageDescription" : "We need Apple Music access to provide background music while shopping",  
        "NSLocationAlwaysAndWhenInUseUsageDescription" : "We need location access to find nearby stores, provide shipping estimates and location-based deals",  
        "NSLocationAlwaysUsageDescription" : "We need location access to find nearby stores, provide shipping estimates and location-based deals",  
        "NSBluetoothPeripheralUsageDescription" : "We need Bluetooth access to connect with nearby store beacons for exclusive offers",  
        "NSBluetoothAlwaysUsageDescription" : "We need Bluetooth access to connect with nearby store beacons for exclusive offers",  
        "NSSpeechRecognitionUsageDescription" : "We need speech recognition access to enable voice search and customer support features",  
        "NSRemindersUsageDescription" : "We need reminders access to help you track orders and set sale reminders",  
        "NSHealthUpdateUsageDescription" : "We need health data access to provide accurate size and fit recommendations",  
        "NFCReaderUsageDescription" : "We need NFC access to connect with nearby store beacons for exclusive offers",  
        "NSHomeKitUsageDescription" : "We need HomeKit access to control smart home devices and provide personalized shopping experiences",  
        "NSSiriUsageDescription" : "We need Siri access to enable voice search and customer support features"  
    },  
    "idfa" : false  
}

实际结果:

结果我的用户追踪协议 还是中文

bug描述:

打包以后 我的用户追踪协议 还是中文


更多关于用户追踪协议在uni-app中不管我怎么改都是中文的实战教程也可以访问 https://www.itying.com/category-93-b0.html

2 回复

手机环境是中午环境么?

更多关于用户追踪协议在uni-app中不管我怎么改都是中文的实战教程也可以访问 https://www.itying.com/category-93-b0.html


这个问题通常是由于iOS系统语言设置导致的,即使你在manifest.json中配置了英文描述,系统仍会根据设备语言显示本地化内容。

解决方案:

  1. 确保在Xcode项目中添加了英文的InfoPlist.strings文件
  2. 在项目目录下创建/ios/项目名称/Resources/en.lproj/InfoPlist.strings文件
  3. 在InfoPlist.strings中添加:
NSUserTrackingUsageDescription = "We need tracking permission to show relevant products and provide personalized shopping recommendations";
回到顶部