applicationDidFinishLaunching:在第一次更新和启动应用程序时调用? [英] Does applicationDidFinishLaunching: get called when application is updated and launched first time?

查看:176
本文介绍了applicationDidFinishLaunching:在第一次更新和启动应用程序时调用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


(当用户首次启动更新版本时)

$ b

换句话说,如果旧版本在更新过程中以后台模式运行,则会被杀死。

解决方案

是的。 updater会在升级前杀死你的应用程序,如果它是后台的。这需要发生,因为更新通常可能涉及锁定的文件和数据库迁移。


Is applicationDidFinishLaunching guaranteed to be called after application is updated?
(when user first launches the updated version.)

In other words, the old version gets killed if it were running in background mode in update process?

解决方案

Yes. The updater will kill your app before upgrading if it is backgrounded. This needs to happen since updates can often involve locked files and database migrations.

这篇关于applicationDidFinishLaunching:在第一次更新和启动应用程序时调用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆