Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

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

iphone - Trouble running Instruments on iPad

I'm trying to profile my application using Instruments on the device itself. Specifically, I'm trying to do time profiling.

Unfortunately, I just can't get it to work. Here's the situation:

1) If I run instruments with the app signed using the developer profile on the simulator, it works.

2) If I run instruments with the app signed using the distribution profile on the simulator, it works.

3) If I run instruments with the app signed using the distribution profile on the device (which is the default case for profiling since the scheme is set to use the release build) then Xcode complains about that there's no valid provisioning profile. That seems reasonable.

4) If I run instruments with the app signed using the developer profile on the device, then Xcode transfers the app, but then states that it's "Finished running" immediately. The app isn't run, and in most cases there's no error message.

Sometimes, just sometimes, there's a message from the Organiser stating that device does not recognise host - E800001C.

5) Running the app directly using the developer profile works fine - I can debug as expected.

Summary - I can't run an app on a device through Instruments using a debug build - it stops before it's had a chance to start. There are no error messages - nothing at all in the debug console.

Help?

Thanks,

Tim

See Question&Answers more detail:os

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

1 Reply

0 votes
by (71.8m points)

I've solved this. It hadn't occurred to me to check the console inside the organizer. It said:

: entitlement 'keychain-access-groups' has value not permitted by a provisioning profile

After a bit of Googling I discovered that deleting the app from the device would solve my issue. Now I can profile.

So easy when you know how. Hope that helps someone else.

Tim


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...