简体   繁体   English

如何检查更新是否可用-Swift 4.2 iOS 12

[英]How to check if an update is available - Swift 4.2 iOS 12

Good morning, I want to know how can I check if an update is available from getting new updates when I commit on my Github then a popup appears and ask that an update is available on the main windows at opening my app. 早上好,我想知道当我在Github上提交内容时,如何通过获取新更新来检查是否有可用的更新,然后会出现一个弹出窗口,并要求打开应用程序时主窗口上是否有可用的更新。

Thank you warmly for helping, 热烈感谢您的帮助,

Louis. 路易。

EDIT: It's for private purposes not for a public release to the App Store 编辑:这是出于私人目的,而不是公开发布到App Store

The Siren framework compares the app version it sees on iTunes App Store with the version number of the currently running app. Siren框架将iTunes App Store上看到的应用程序版本与当前正在运行的应用程序的版本号进行比较。 If the App Store has a higher version, Siren can show an alert. 如果App Store的版本更高,警报器会显示警报。

The Siren README contains all the code snippets you need. 警报器自述文件包含您需要的所有代码段。

Of course pushing to GitHub won't work because your new app version must be pushed to Apple and reviewed by them. 当然,推送到GitHub无效,因为您的新应用程序版本必须推送到Apple并由他们审核。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 将UIImage保存到PhotoLibrary Swift 4.2 iOS 12 - Saving UIImage to PhotoLibrary Swift 4.2 iOS 12 如何检查iOS是否有可用的更新? - How to check if iOS has an update available? 当我使用Swift 4.2和iOS12向左滑动时,如何将第二个数组加载到UITableView中? - How to load a second array into the UITableView when I swipe left by using Swift 4.2 and iOS12? AVAudioSession setCategory Swift 4.2 iOS 12 - 静音播放声音 - AVAudioSession setCategory Swift 4.2 iOS 12 - Play Sound on Silent 后台推送通知不起作用 iOS12 Swift4.2 - Push Notification in Background not working iOS12 Swift4.2 状态栏模糊视图(半透明)在Swift 4.2 iOS 12中 - Status bar Blur view (Translucent ) in swift 4.2 ios 12 如何在不使用 @available 的情况下检查 Swift 中 iOS 的最新版本? - How to check latest version of iOS in Swift without using @available? 检查适用于iOS的可用软件更新 - Check available software update available for iOS 如何将此经典 Swift 线更新为更新的 Swift(与 Xcode 12 和 Z1BDF6059091920DB1EBZCBDF148 正确兼容)? - How to update this classic Swift line to a more recent Swift (compatible with Xcode 12 and iOS 14) properly? URLSession数据任务在Swift4.2 / iOS12中返回0字节的数据 - URLSession datatask return 0 bytes of data in Swift4.2/iOS12
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM