【发布时间】:2021-02-24 11:43:21
【问题描述】:
我正在使用这个版本查找 API 来检查更新的版本:
https://itunes.apple.com/lookup?bundleId=xxx.yyyyy.zzz
当我从移动应用、Postman 和 AppStore 调用 API 时结果不同
从代码来看,它在 xcode debug 3.0.0 中显示旧版本:
在 AppStore 中,它也显示正确的 4.0.0 版本:
当我从 xcode 和移动应用程序调用 API 时,为什么它没有显示正确的版本? 我正在使用 alamofire:
let bundleId = Bundle.main.infoDictionary!["CFBundleIdentifier"] as! String
AF.request("https://itunes.apple.com/lookup?bundleId=\(bundleId)").responseJSON { [weak self] response in
print(response.result)
}
【问题讨论】:
标签: ios swift xcode app-store version