uni-app ITMS-91053 Missing API declaration
uni-app ITMS-91053 Missing API declaration
我的打包也是这个问题
更多关于uni-app ITMS-91053 Missing API declaration的实战教程也可以访问 https://www.itying.com/category-93-b0.html
没用其它插件,也提示这个,有人知道怎么解决吗
马上到5月1号了,官方还没有方案吗?
https://ask.dcloud.net.cn/article/40963 看这个说hbuilderx更新到4.08版本,解决了。但是下面评论说还是有这个问题。我还没有更新4.08 不知道具体情况
回复 2***@qq.com: 我也是升级到4.0.8了,但是还是报。不过是报1个了;
ITMS-91053: Missing API declaration - Your app’s code in the “HBuilder” file references one or more APIs that require reasons, including the following API categories: NSPrivacyAccessedAPICategorySystemBootTime. While no action is required at this time, starting May 1, 2024, when you upload a new app or app update, you must include a NSPrivacyAccessedAPITypes array in your app’s privacy manifest to provide approved reasons for these APIs used by your app’s code. For more details about this policy, including a list of required reason APIs and approved reasons for usage, visit: https://developer.apple.com/documentation/bundleresources/privacy_manifest_files/describing_use_of_required_reason_api.
The error ITMS-91053 Missing API declaration occurs when submitting an app to the Apple App Store and indicates that your app is using certain APIs or features that require a declaration in the app’s Info.plist file. Apple requires developers to provide transparency about the APIs they use, especially those that access sensitive data or device features.
Steps to Resolve ITMS-91053 Missing API Declaration:
-
Identify the APIs in Use:
- Review your app’s code to identify any APIs that require declaration. Common APIs include:
NSPhotoLibraryUsageDescription(access to the photo library)NSCameraUsageDescription(access to the camera)NSLocationWhenInUseUsageDescription(access to location)NSMicrophoneUsageDescription(access to the microphone)NSContactsUsageDescription(access to contacts)NSBluetoothAlwaysUsageDescription(access to Bluetooth)NSFaceIDUsageDescription(use of Face ID)
- Review your app’s code to identify any APIs that require declaration. Common APIs include:
-
Update the
Info.plistFile:- Open the
Info.plistfile in your uni-app project (located in theiosdirectory). - Add the required keys and descriptions for the APIs you’re using:
<key>NSPhotoLibraryUsageDescription</key> <string>We need access to your photo library to upload images.</string> <key>NSCameraUsageDescription</key> <string>We need access to your camera to take photos.</string> <key>NSLocationWhenInUseUsageDescription</key> <string>We need access to your location to provide location-based services.</string> <key>NSMicrophoneUsageDescription</key> <string>We need access to your microphone to record audio.</string> - Replace the descriptions with accurate and user-friendly explanations.
- Open the
-
Rebuild the App:
- After updating the
Info.plistfile, rebuild your app usingHBuilderXor the command line:npm run build:ios
- After updating the

