开发者

What is the simplest way to get log files off of an iPhone?

开发者 https://www.devze.com 2023-04-02 01:18 出处:网络
I have logged my NSLog statements to a file in my iPhone app. What is the simplest way to grab this data off the phone?

I have logged my NSLog statements to a file in my iPhone app.

What is the simplest way to grab this data off the phone?

Is there a way to copy the file from Xcode's organizer or some other GUI interface/CLI utility like that or do I ne开发者_开发技巧ed to grab the contents of the file programmatically?


Using the Xcode Organizer, you can "Download" all of your app's files.

1) Open the Organizer.
2) Connect your device.
3) Select "Applications" under that device.
4) Click the Download button for the application.
5) Save the folder to your Desktop.

Your app's Documents folder will be in the folder that you save, along with the Library and tmp folders for that app.


inside of Xcode (in the organizer) you can click your application, expand it and copy the logs to your local machine


As the file is in your apps docs folder you can switch on iTunes filesharing in your plist

UIFileSharingEnabled

and copy it off the device via the iTunes interface.

0

精彩评论

暂无评论...
验证码 换一张
取 消