簡単に、今のアプリのバージョンとストアのバージョンを照らし合わせてくれて、
ストアの方が新しかったらアップデート催促のアラートを表示してくれるライブラリ"Siren"を
実装しようとしたのですが、何も表示されません。
podfileに
pod 'Siren'
を追加して、AppDelegateで
import Sirenも認識されています。
コードは以下です。
import Siren @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate{ func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { // Override point for customization after application launch. // 強制アップデート(siren) let siren = Siren.shared siren.countryCode = "jp" siren.forceLanguageLocalization = Siren.LanguageType.japanese siren.alertType = Siren.AlertType.option siren.checkVersion(checkType: .immediately) }
ちなみに半年ほど前に試した時には正常に動作していたのですが、
新しいアプリバージョンがストアにあるのに、アラートが表示されないなと最近気づき
テストしてみたら今では何も表示されません。
テストの仕方はbandle versionをストアのものよりも下げてrunしています。
何かご存知の方がいらっしゃいましたらご教示願います。
Xcode Version 9.2 (9C40b)
Swift version 4.0.3
あなたの回答
tips
プレビュー