Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
212 views
in Technique[技术] by (71.8m points)

ios - 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.

Thanks.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.

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

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 ( expand icon ) to expand the console. device 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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...