开发者

NSLog on the iPhone device

开发者 https://www.devze.com 2023-01-10 13:08 出处:网络
I wanted to test my app on the device, but I dont want now to buy apple licence for 99$. I read some tutorials on the Internet and installed my app, but I cant debug it.

I wanted to test my app on the device, but I dont want now to buy apple licence for 99$.

I read some tutorials on the Internet and installed my app, but I cant debug it. Xcode says that "Error launching remote program: faileds to get the task for process 731"

App works fine, but I cant debug it.

Maybe break points arent the most important for me. The worst thing is that NSLog() doesnt work when I run app on the device...

开发者_运维技巧

What can I do?


Buy an iPhone Developer Licence. 99$/Year aren't this much. If you create one paid app, you'll get more than that back. ;-) I know it. I did that myself. ;-)


I am afraid that you can't do this without proper development profile. Please correct me if I am wrong.


The "Console" tab in the Xcode Organizer or iPhone Configuration Utility will give you device log messages. It gives messages for all apps (not just yours!) but that's not the end of the world, really.

Your app is missing the entitlement <key>get-task-allow</key><true/>. You might be able to self-sign it with this to make it work. I'm not sure, since I'm not sure what steps you're following to get it to run.


Instead of NSLog, write to a log file and then read it.

You can transfer it to your PC/Mac by mailing it from your application or just upload it to your computer with SSH if you have a jailbroken iPhone device.

0

精彩评论

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