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

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

问题描述

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

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

提前谢谢!

解决方案

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

从您的开发人员帐户下载free provisioning profile并将其嵌入到应用程序捆绑包中,并且整个捆绑包均已代码签名.必须在要运行应用程序代码的每台设备上安装开发配置文件.如果配置文件中的信息不符合特定条件,则您的应用将无法启动.

供应配置文件曾经有效期为90天,但从创建配置文件之日起,现在已减少为7天.这意味着7天后,您的iPhone应用程序将仅停止工作.

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

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

在此处阅读Unity文档: iOS开发入门.. >

如果您的应用在少于或超过7天的时间内无法正常工作–这绝对是签名错误.

如果您想更改现有应用的配置文件,请>阅读此内容有用的SO帖子.

有几个供开发人员使用的程序:

  • iOS开发人员计划 (99美元)
  • Apple Developer Program (个人)(99美元)
  • 针对组织的
  • 开发人员企业计划 (299美元)
  • 适用于高等教育机构的iOS开发者大学计划 (免费)

请参阅本文选择会员资格.

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

临时发行设置配置文件 ,您可以在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?

Thank you in advance!

解决方案

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天全站免登陆