Xcode 4.1: Modernizing Projects

July 24th, 2011

Filed under: Xcode | 2 comments

When you open a project in Xcode 4.1, Xcode checks the project for any outdated settings like build settings, SDKs, and project file formats. If Xcode finds any outdated settings, they appear as a Project Modernization warning in the issue navigator. Select the Project Modernization warning or choose Editor > Modernize Project to update the […]

Xcode 4: Unit Testing 64-Bit Mac Apps

May 12th, 2011

Filed under: Mac Development, Xcode | Be the first to comment!

When unit-testing a 64-bit Mac application, make sure the class files you are testing (your application’s implementation files) are members of the unit testing target. You will get linker errors when building the unit testing target if the class files being tested are not members of the unit testing target. How do you make a […]

Xcode 4: Removing Files from a Project

May 9th, 2011

Filed under: Xcode | Be the first to comment!

To remove a file from an Xcode project, select the file from the project navigator and press the Delete key. An alert like the following opens: If you want to delete the file, the safest thing to do is click the Remove Reference Only button, then move the file to the Trash. Clicking the Delete […]

Xcode 4: Finding the Application You Built

April 6th, 2011

Filed under: Xcode | 12 comments

Previous versions of Xcode created a build folder inside your project folder and placed your application there. Xcode 4 stores build products in the following location: /Users/Username/Library/Developer/Xcode/DerivedData When you build the project, Xcode creates a folder for your project in the derived data folder and places the files it creates in that folder. If you […]

Xcode 4: Finding User Interface Elements

April 4th, 2011

Filed under: Interface Builder, Xcode | 7 comments

One of Xcode 4’s biggest changes is its integration with Interface Builder. There is no longer a separate Interface Builder application. Select a xib file from the project navigator to create your application’s user interface. You may be wondering where the user interface elements are located in Xcode 4. They are in the object library. […]

Xcode 4: Unit Testing Support

April 1st, 2011

Filed under: Xcode | 3 comments

Developers doing test-driven development with the Cocoa and Cocoa Touch frameworks will like the improved support Xcode 4 has for unit testing. When you create a project that uses the Cocoa or Cocoa Touch frameworks, such as a Cocoa or iPhone application, Xcode gives you the option to add a unit testing bundle to the […]

Xcode 4: Splitting the Editor

March 30th, 2011

Filed under: Xcode | Be the first to comment!

Xcode 4’s standard editor does not support splitting. Use the assistant editor if you want to split the editor. Choose View > Editor > Assistant to open the assistant editor. Choose View > Assistant Layout to customize the appearance of the assistant editor. Click the Add Assistant Editor button (the + button) on the right […]

Xcode 4: Adding Command-Line Arguments and Environment Variables

March 28th, 2011

Filed under: Xcode | 3 comments

Choose Edit Scheme from the Scheme pop-up menu in the project window toolbar to open the scheme editor. Select Run from the list on the left side of the scheme editor. Click the Arguments button in the scheme editor. From here you can add command-line arguments and environment variables. Clicking the Diagnostics button provides checkboxes […]

Xcode 4: Adding a Framework to Your Project

March 25th, 2011

Filed under: Mac Development, Xcode | 12 comments

To add a framework to your project, select the project file from the project navigator on the left side of the project window. Select the target from the project settings editor. Click the Summary button at the top of the editor. You will see a list of linked frameworks and libraries in the project settings […]

Xcode 4: Opening the Build Results Window

March 23rd, 2011

Filed under: Xcode | 1 comment

Those of you who have upgraded to Xcode 4 may be wondering where the build results window went. Open the log navigator by choosing View > Navigators > Log. Select a build from the log list to open the build results window for that build.