由于配置文件到期,是否可以获得崩溃日志? [英] Is it possible to get a crash log due to expiration of provisioning profile?

查看:19
本文介绍了由于配置文件到期,是否可以获得崩溃日志?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当应用程序没有启动或点击应用程序后立即进入主屏幕时,我是否有办法知道是因为其配置文件过期还是其他原因?

When an application doesn't start or it goes home screen right after tapping the application, do I have a way to know whether it is because of expiration of its provisioning profile or other reason?

我在 Finder 的崩溃日志中找不到它们.

I couldn't find them in crash logs from Finder.

谢谢.

推荐答案

如果应用的配置文件已过期,您将在设备控制台中看到它.如果您可以访问该设备,请将其插入您的 Mac 并启动 Xcode.

If the app's provisioning profile has expired, you will see it in the Device console. If you have access to the device, plug it into your Mac and fire up Xcode.

从 Xcode 6 开始,查看连接设备的控制台输出:

Starting with Xcode 6, to view the console output of a connected device:

连接您的设备.使用 CLI 或 Studio 构建应用程序并将其部署到设备.使用 iTunes 将应用程序同步到设备(如果您不直接构建到设备).启动 Xcode.

Connect your device. Build and deploy the app to the device using either the CLI or Studio. Sync the application to the device using iTunes (if you are not building directly to device). Launch Xcode.

打开设备窗口.从菜单中选择窗口 > 设备.

Open the Devices window. From the menu, select Window > Devices.

从左侧栏中选择您的设备.

Select your device from the left bar.

单击显示设备控制台按钮 ( ) 以展开控制台.

Click the Show the device console button ( ) to expand the console.

启动控制台后,单击垃圾桶将其清除,然后在设备上尝试启动应用程序.如果该应用的配置文件已过期,我相信您会看到如下消息:

Once you have the console up, click the trash can to clear it, then on the device try to launch the app. If the provisioning profile for the app has expired, I believe you will see a message like the following:

找不到此可执行文件的有效配置文件

这篇关于由于配置文件到期,是否可以获得崩溃日志?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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