- Apple Vision Pro support issue. The app contains the following UIRequiredDeviceC 完整错误
Apple Vision Pro support issue. The app contains the following UIRequiredDeviceCapabilities values, which aren’t supported in visionOS: [accelerometer].
商品与价格管理 标签页又一项跟 visionOS 相关的 取消掉就可以了。
2 Missing Push Notification Entitlement
**ITMS-90078: Missing potentially required entitlement** - Your app, or a library that’s included in your app, uses Apple Push Notification service (APNs) registration APIs, but the APS Environment Entitlement isn’t included in the app signature’s entitlements. If your app uses APNs, make sure the App ID is enabled for push notifications in Certificates, Identifiers & Profiles, sign the app with a distribution provisioning profile that includes the APS Environment Entitlement, and upload a new build to ensure that push notifications function as intended. For details, visit: <https://developer.apple.com/documentation/usernotifications/registering-your-app-with-apns>.
解决办法:1 开发者后台配置开启Push Notification 2 项目中引入Push Notification
3
Please correct the following issues and upload a new binary to App Store Connect.
ITMS-90138: Your Info.plist contains the UINewsstandIcon sub-property under CFBundleIcons, which is intended for use with Newstand features. To include Newsstand features, the Info.plist must include the UINewsstandApp=true Info.plist key.
Apple Developer Relations
解决办法:删除Newsstand Icon
4 在使用“itunes.apple.com/lookup?bund… 请求苹果商店的App信息时,获取到的版本号(version)是以前的版本号,单独使用这个地址从网页中获取到的数据是正确的,但是在项目中使用代码获取到的版本号就落后了一个版本。
public class func versionAndDownloadUrl() -> (version: String, downloadUrl: String)? {
guard let identifier = Bundle.main.object(forInfoDictionaryKey: "CFBundleIdentifier") as? String,
let url = URL(string: "http://itunes.apple.com/lookup?bundleId=\(identifier)")
else {
return nil
}
guard let data = try? Data(contentsOf: url),
let json = try? JSONSerialization.jsonObject(with: data, options: .allowFragments) as? [String: Any],
let results = json["results"] as? [[String: Any]],
results.count > 0,
let version = results[0]["version"] as? String,
let downLoadUrl = results[0]["trackViewUrl"] as? String
else {
return nil
}
return (version, downLoadUrl)
}
正确的请求地址:
let url = URL(string: "http://itunes.apple.com/lookup?bundleId=\(identifier)&date=\(Date.init().timeIntervalSince1970)")