IOS development-Xcode

Source: Internet
Author: User
Tags macbook

"Xcode for iOS development" briefly introduces some features of Xcode4.0 and later versions. It also selects development tutorials and experiences shared by members and some hot topics in the Forum, hoping to give new users some suggestions. Basic Environment setup!

I. Introduction to tools

Ii. tutorials and experience sharing

Iii. Forum hot topics

Iv. Q &

 

Tool Introduction

Xcode is an integrated development environment provided by Apple to developers for developing Mac OS X and iOS applications. Xcode is a Project Builder inherited from NeXT.

 

Whether you write a program in C, C ++, Objective-C or Java, write a script in AppleScript, or try to transfer the code from another wonderful tool, you will find that Xcode compilation is extremely fast. Each operation is fast and easy.
The next step for registering as an iOS developer is to download Xcode. Since developers mostly use Versions later than Xcode4.0, we will start with Versions later than 4.0.

Version features


New Features of Xcode 4.6
-- Includes OS X 10.8 Mountain Lion SDK and iOS 6.1 SDK.
-- More precise code complementing function, optimized the default Dataset
-- The New compiler reminds users to identify potential bugs caused by ARC and weak references.
-- C ++ 11 supports "user defined literals" and "unrestricted unions"
-- The debugger can check the elements in NSArray and NSDictionary objects.
-- Analyze can perform a deeper Static Analysis on each function (written in Objective-C and C ++ ).
-- Improved dependency check to reduce index volume
-- Added bug fixes and improved stability


Release of Xcode 4.5 supports iOS 6
-- Supports sdks for OS X 10.8 Mountain Lion and iOS 6
-- Both OS X and iOS support Automatic Layout
-- The new positioning workflow can share a single. xib or. storyboard file for multiple locations
-- Improved the OpenGL Debugger for iOS Performance Analysis and Recommendations
-- When connecting to the iOS device, you can set the debugger observation point.
-- The Objective-C @ synthesis command can be generated by default when properties is used.
-- Objective-C adds text syntax for numbers, arrays, dictionaries, and formulas
-- Both OS x Lion and OS X Mountain Lion can run Xcode 4.5
-- Improved and enhanced for Retina Macbook Pro
-- Fix bugs and enhance stability
 

New Features of Xcode 4.4
-- Supports OS X 10.8 and iOS 5.1
-- A MacBook Pro notebook with a Retina screen is supported.
-- Code is automatically completed to provide more accurate suggestions
-- Use properties to generate the Objective-C @ synthesize command by default.
-- Objective-C adds text syntax for values, arrays, dictionaries, and expressions
-- Apple LLVM compiler supports additional C ++ 11 features, including lambda expressions
-- The auxiliary editor can trace the current caller and callee.
-- The New localization workflow can share a single. xib file in multiple Locale of OS X.
-- Source code control system improvement. You can select individual changes.
-- The ARC porting tool has the "retain/released" and spam code collection functions.
-- Fixed a problem: the code complementing function may fail, requiring the user to delete the inherited data.
-- Bug fixes to improve stability
 
New Performance of Xcode 4.3
Xcode 4.3 (supports iOS 5.0 and OS X v10.7) brings many new features. The most important change is that Xcode has become an independent application. Previously, Xcode was provided in the form of an installation package. Specific changes include:
-- Xcode4.3 is released as an independent App Xcode. app in Mac App Store.
-- Xcode4.3 supports opening some auxiliary tools from inside Xcode
-- The command line tool is no longer installed by default. If necessary, you can use the Downloads preferences panel to install ,:
--/Developer directory no longer exists. Because Xcode4.3 exists as a separate application, the/Developer folder is not provided in the system to store the previous version of Xcode. In addition, the Install Xcode application and the familiar uninstall-devtools command line code are no longer useful. However, Xcode4.3 can coexist with Xcode of previous versions.
Downloadable tools include:
Audio tools: AULab, HALLab, and audio utility source code
Accessibility tools: Accessibility Inspector, Accessibility Verifier
Hardware IO tools: Bluetooth tools, IORegistryExplorer, USB Prober
Graphics tools: CI Filter Browser Widget, OpenGL tools, Pixie, Quartz Debug, and Quartz Composer tools
Auxiliary tools: Clipboard Viewer, CrashReporterPrefs, Help Indexer, PackageMaker, Speech tools, SleepX
Dashcode: Dashcode application
-- New cocoa projects support Automatic Layout by default. You can also manually disable
 
Xcode 4.2
Since the release of Xcode 3.1, Xcode has become the development environment of the iPhone software development kit. Xcode can develop Mac OS X and iOS applications, and the version of Xcode corresponds to the SDK. For example, Xcode 3.2.5 corresponds to iOS SDK 4.2, Xcode 4.1 corresponds to iOS SDK 4.3, and Xcode 4.2 corresponds to iOS SDK 5.
Before Xcode 4.1, there was a supporting tool Interface Builder, which is part of the Xcode suite and used to design forms and views, you can drag controls, define events, and so on, and store the data in XML format. in the xib file. After Xcode 4.1, Interface Builder became a part of Xcode and integrated with Xcode.
All users can download Xode for free in the Mac App Store. However, if you submit an application to the App Store, you need to pay for the developer account.


New Features of Xcode 4.1
The software development kit for Apple, which was sold for $4.99 in the Mac App Store, changed from pay-as-you-go to free version Xcode 4.1 (it has always been free for Apple's registered developers ). Non-registered developers can use Xcode 4.1 to develop Mac and iOS software and release it outside the Mac App Store. If you want to publish the software to the Mac App Store or test the iOS App on a real machine, you still need to pay for it and register an apple developer account. Xcode 4.1 contains Xcode IDE, Instruments, iOS simulators, the latest Mac OS X and iOS sdks. The detailed list is as follows:
-- Contains sdks for OS X Lion and iOS 4.3.
-- Interface Builder supports automatic formatting and a new Aqua control, such as NSPopover.
-- Supports full-screen workspace, projects, and window arrangement.
-- Identify and update outdated engineering documents.
-- You can customize behaviors and set shortcuts for them.
-- The source control has been improved, and the remote server push, pull, and management functions have been added.
-- The Editor Assistant adds the components generated by the display and the output preprocessing.
-- Fix other problems and enhance stability.


Xcode 4 new features
-- Single Window: Xcode 4 puts all the sections in a single window, so you don't have to worry about switching the window.
-- Navigation bar: The left navigation bar includes the project file list, sorting symbols, search bar, event tracking, and data debugging.
-- Skip column: displays the location of the file being edited at the top of the editing window, which allows you to quickly jump to your upper-level file or directory.
-- Interface Editor-built-in: Interface Builder and Xcode IDE are integrated.
-- Xcode ASSISTANT: it will automatically tell you what files are needed, tell you what classes your code inherits, and automatically create corresponding classes based on your data model.
-- LLVM compiler 2.0: LLVM compiler is an open-source compilation technology that supports C, Objective-C, and C ++. LLVM and Xcode 4 are fully integrated, including keyword highlighting and code integrity, which are all analyzed by LLVM syntax analyzer. In this way, you can understand your code well during editing.
-- Correction function: Because the LLVM engine is used, Xcode 4 can detect errors in your code during editing without compiling.
-- Version Editor: the new version editor makes it easier for you to view code of different versions.
-- New Debugger: Xcode 4 includes LLDB (a new debugging engine), which consumes less memory and runs faster.

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.