为什么 ARKit 应用在几天后停止工作? [英] Why does ARKit app stop working after a few days?

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

问题描述

我在 Unity 中为 iOS 开发了一个简单的 ARKit 应用程序.它工作得很好,但有一个奇怪的问题:几天后它停止工作.因此,当我单击 iPhone 上的应用程序图标时,它会打开应用程序一毫秒,然后立即退出.如果我再次重新安装该应用程序,它会像以前一样完美运行.

为什么会这样?有什么办法可以防止吗?我使用个人团队"在Xcode中,这可能是原因吗?

解决方案

与 Android 不同,您无法在 iOS 设备上安装任何应用.它必须先由 Apple 签署.但是,在开发应用程序时,您可能希望在将其发送给 Apple 批准之前对其进行测试.配置文件充当设备和开发者帐户之间的链接.在开发过程中,您可以选择哪些设备可以运行您的应用以及您的应用可以访问哪些应用服务.

从您的开发者帐户下载免费配置文件并嵌入到应用程序包中,并且整个包都经过代码签名.开发供应配置文件必须安装在您希望运行应用程序代码的每台设备上.如果配置文件中的信息不符合特定条件,您的应用将无法启动.

配置文件的有效期为 90 天,但现在从创建配置文件的时间开始缩短为 7 天.这意味着 7 天后,您的 iPhone 应用只会停止工作.

<块引用>

Apple 说:您每 7 天最多可以创建 10 个应用 ID.

这就是您的 ARKit 应用在 7 天后停止工作的原因.

在此处阅读 Unity 文档:

<块引用>

iOS 开发者计划(99 美元)还允许您免费使用 Ad Hoc.

Ad Hoc Distribution Provisioning Profile 可让您在 iTunes Connect 中配置的 100 种不同设备上测试您构建的应用程序.

I developed a simple ARKit app in Unity for iOS. It works great, but there is a strange problem: after several days it stops working. So when I click on the app icon on the iPhone, it opens the app for a millisecond and instantly quits. If I reinstall the app again it works perfectly as before.

Why is it happening? Is there any way to prevent it? I use "Personal team" in Xcode, can it be the reason?

解决方案

Unlike in Android, you can’t install any app on an iOS device. It has to be signed by Apple first. However, when you’re developing an app, you probably want to test it before sending it to Apple for approval. Provisioning profile act as a link between the device and the developer account. During development, you choose which devices can run your app and which app services your app can access.

A free provisioning profile is downloaded from your developer account and embedded in the app bundle, and the entire bundle is code-signed. A Development Provisioning Profile must be installed on each device on which you wish to run your application code. If the information in the provisioning profile doesn’t match certain criteria, your app won’t launch.

Provisioning Profile used to be valid for 90 days, but is now reduced to 7 days, starting from the time the profile was created. This means that after 7 days, your iPhone app will merely stop working.

Apple says: You may create up to 10 App IDs every 7 days.

That's why your ARKit app stops working after seven days.

Read Unity Documentation here: Getting started with iOS development.

In case your app stops working in less than or more than seven days – it's definitely a signing bug.

If you wanna change a provisioning profile for existing app, read this useful SO post.

There are several programs for developers:

  • iOS Developer Program ($99)
  • Apple Developer Program for individuals ($99)
  • Developer Enterprise Program for organisations ($299)
  • iOS Developer University Program for higher education institutions (Free)

Look at this article Choosing a Membership.

iOS Developer Program ($99) also allows you use Ad Hoc for free.

Ad Hoc Distribution Provisioning Profile lets you test your built apps on 100 different devices you have configured in iTunes Connect.

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

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