iOS:Xcode Overview2 && Run|Debug|Test|Changes|Help

--参考:(Xcode Overview) https://developer.apple.com/library/ios/documentation/ToolsLanguages/Conceptual/Xcode_Overview/About_Xcode/about.html 

============Run Your App============

--首先,Choose a Scheme to Build Your App:scheme可以看作targets的“生产计划”,它指定了哪一个target去生成,并且使用哪些设置(这些设置可能是target build setting设置好了,这里只是选择使用哪个)。设置主要在5个动作:

1.Run the app.(Run)
2.Run unit tests against the target.(Test)
3.Profile the app’s performance characteristics.(Profile)
4.Perform static analysis on the code.(Analyze)
5.Archive the app for distribution, such as for sending to testers or submitting to the App Store.(Archive).

--例如,Run action配置可以实现以下功能:1.Building multiple targets +2.Executing scripts/Sending emails before or after any action +3.Running with memory management diagnostics + 4.Producing either a debug or release build for any action

备注:

scheme概念参考博文:<Xcode Concepts[译]> 

scheme配置参考:https://developer.apple.com/library/ios/recipes/xcode_help-scheme_editor/Articles/SchemeDialog.html

------------------------

--Choose a Destination to Run Your App.-->Run You App In iOS Simulator + Run You App On a Connected Device.

注意:Although you can test your app’s basic behavior in iOS Simulator, the simulator is limited as a test platform. Therefore while developing your app, it is essential that you run and test it on connected iOS devices.

备注:关于真机调试参考博文<iOS 开发注册 &真机调试与安装 &发布> 

============Debug Your App============

A.使用breakpoint、Debug navigator、Debug area查看各变量、程序状态等。

--注意在断点情况下,code editor里面也能查看变量情况。将指针移动提留在它上面即可(有inspector icon 、Quick Look icon、frame capture button( OpenGL ES application))。同时在Debug area里面的变量,下面的工具条也有相同按钮。

B.‘Analyze’ + The Instruments app -性能。

C.真机崩溃报告log,导出和远程管理等?

备注:

----一些debug技巧(参考:http://www.cocoachina.com/newbie/basic/2013/0517/6225.html):

1.条件断点 + 异常断点 + Console进行手动打印(一些Console命令?);

2.有效Logging,关键地方(例如对象生命周期……)使用NSLog,配合宏定义使用。

3.跟踪EXC_BAD_ACCESS-->Schem中Diagnostics里的Zombies。

============Test============

--参考<Xcode Unit Testing Guide>:https://developer.apple.com/legacy/library/documentation/DeveloperTools/Conceptual/UnitTesting/00-About_Unit_Testing/about.html

--译文参考:http://www.devdiv.com/thread-124254-1-1.html

--例子参考:官网‘UnitTest ’(Unit Testing Apps and Frameworks)  Sample Code;

============Changes============

1.File > revert + Edit > undo;

2.File > Create Snapshot  和 Organizer > Export Snapshot;

3.Git and Subversion;

============Help============

--方式:

1.网上 iOS Developer Library

2.Help Menu / Documentation and API Reference。 进入方式:Help > “Documentation and API Reference” 或者 Control-click areas of the Xcode +“end” +Show All Help Topics。

--更新文档:Xcode > Preferences > Downloads

你可能感兴趣的:(iOS:Xcode Overview2 && Run|Debug|Test|Changes|Help)