为什么我的侧面加载的应用程序在几天后停止工作? [英] Why do my side loaded apps stop working after a few days?

查看:21
本文介绍了为什么我的侧面加载的应用程序在几天后停止工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我实际上是 iOS 开发的新手.但是,我在学习如何制作后制作了一些应用程序.但是我注意到的一件事是,如果我使用手机来测试我的应用程序,该应用程序将在插入时运行,并且可能会在一两天后运行,但是在那之后,如果我尝试打开它,它就会停止工作并崩溃,比如当我想向某人展示我的应用程序或只是一般使用它时.让它再次工作的唯一方法是再次通过 Xcode 运行应用程序,然后再运行 2 天.这正常吗?

So I am actually kind of new to iOS development. However, I have made a few apps after being taught how. But one thing I have noticed is that if I use my phone to test my app, the app will run when its plugged in and maybe a day or two afterwards, but after that time, it stops working and crashes if I try to open it, like when I want to show someone my app or just use it in general. The only way to get it to work again is by running the app through Xcode again and its fine for another 2 days. Is this normal?

我注意到手机设置应用中的开发者"设置消失了,这与我的侧载"应用崩溃有关吗?

I have noticed that the "developer" setting in the settings app on my phone has disappeared, would that have something to do with my "side loaded" apps crashing?

推荐答案

TL;DR: 升级到付费帐户以获得更长的代码设计生命周期,否则您需要不断重新编译/重新安装您的每隔几天应用一次

TL;DR: Upgrade to a paid account for a longer codesigning lifetime, otherwise you'll need to keep recompiling/reinstalling your app every few days

在您的手机上安装应用时,Xcode 会使用您的开发者证书对您的应用进行签名.免费层证书的签名会在几天后过期,如果签名过期,iOS 将拒绝启动您的应用.当免费程序开始时,免费证书签名的生命周期被明确定义为一周,尽管我现在很难找到一个硬数字,所以它很可能已经降低到几天.无论如何,每年 99 美元的付费层证书可以在您的应用程序到期前在您的设备上安装长达一年.如果您希望应用在手机上的使用时间更长,则需要升级到付费帐户

When installing an app to your phone, Xcode signs your app with your developer certificate. Signatures for free tier certificates expire after a few days, and iOS will refuse to launch your app if it has an expired signature. When the free program was started, the lifetime of free certificate signatures was well-defined as a week, though I'm having trouble finding a hard number right now, so it very well may've been lowered to a couple days. Regardless, the $99/year paid-tier certificates can install your apps on your devices for up to a year before they expire. If you'd like your apps to last longer on your phone, you'll need to upgrade to a paid account

这篇关于为什么我的侧面加载的应用程序在几天后停止工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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