Configure the build settings for the Xcode project, then build the
project.
In the Project Navigator, select the SMPFlightManagement under
Projects and SMPFlightManagement folder under Targets.
In the Project Navigator > Summary, navigate to LinkedFrameworks and
Libraries pane to add the frameworks. Click the
+ icon below the list, select the
MobileCoreServices.framework libraries, and then click
Add to add them to the project:
Note: The library version corresponds to the configuration you are building. In this
tutorial, you work with the libraries for the Debug and Release version of the
iPhone simulator.
Delete ViewController.h and ViewController.m
files that are created by default.
Add the LoginViewController.h and
FlightDetailsViewController.h source code files from the
SMPFlightManagement folder in the REST API example project on SCN.
In Xcode, ctrl-click the SMPFlightManagement project and
select Add Files to " SMPFlightManagement ".
Select the SMPFlightManagement > SMPFlightManagement folder from the
SMPFlightManagement tutorial ZIP file on SCN.
Select Copy items into destination group's folder (if
needed).
Modify the code in AppDelegate.h and AppDelegate.m to include the newly created
view controller. Replace ViewController with LoginViewController (first login screen
displayed in the application). The project now looks like this:
In the Project Navigator, under Target, select
SMPFlightManagement > Build
Phases, then expand the Copy Bundle Resources
section. Select SMPFlightManagement-info.plist and click on the
- sign to remove it.
Hold the Option key, and select Product > Clean , then Product > Build to test initial project setup. If you correctly followed this
procedure, you see a Build Succeeded message.