Learning iOS development. If you are playing with it, the simulator in the Mac will be enough, but because the memory computing capability of the Mac simulator is much better than that of the real machine, there are many problems you can't find without a real machine test. Unlike Android development, iOS development itself is a costly item. First, you have to have a Mac machine and a Mac Mini for the worst time, you can also create a virtual machine. I used visualbox to get one, except for the slow speed. In addition, to debug a real machine, you have to join the iOS development plan, which requires 99 knives. Of course, since it's a real machine debugging, you have to have an iPhone or iPad. The worst thing is an iPod.
Next is my question, debugging IOS on a real machine.
After the data line is connected to the mobile phone, you can see in the organizer in xcode that you need to select the device and click "use for development" to allow development and debugging using this device.
A prompt is displayed, prompting you to log on to the Apple id.
Wait a moment and it will be like the following:
Then you can see my iPhone in xcode, set the activity schema to my iPhone, and click the run button to start the application on my mobile phone.Program.
If a breakpoint is set, the operation on the mobile phone triggers xcodeCode.
I have omitted the steps for applying for the Apple iOS development plan and downloading the provisioning profile. However, there is a super complete one, which is posted here for reference:
- How to submit your app to Apple: from no account to App Store, part 1
-
- How to submit your app to Apple: from no account to App Store, part 2