简体   繁体   English

是否有可能由于配置文件到期而导致崩溃日志?

[英]Is it possible to get a crash log due to expiration of provisioning profile?

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? 当某个应用程序无法启动或在点击该应用程序后立即进入主屏幕时,我是否有办法知道它是由于其配置文件到期还是其他原因?

I couldn't find them in crash logs from Finder. 我在Finder的崩溃日志中找不到它们。

Thanks. 谢谢。

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. 如果可以访问该设备,请将其插入Mac并启动Xcode。

Starting with Xcode 6, to view the console output of a connected device: 从Xcode 6开始,查看已连接设备的控制台输出:

Connect your device. 连接您的设备。 Build and deploy the app to the device using either the CLI or Studio. 使用CLI或Studio将应用程序构建并部署到设备上。 Sync the application to the device using iTunes (if you are not building directly to device). 使用iTunes将应用程序同步到设备(如果您没有直接构建到设备上)。 Launch Xcode. 启动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: 如果该应用程序的配置文件已过期,我相信您会看到类似以下的消息:

A valid provisioning profile for this executable was not found

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM