Step 1: Use iOS App SDK to create a project directory
All resources for your app are stored in a project directory. Use iOS App SDK to create the project directory for your app.
-
Open the Terminal app on your Mac.
-
Use the
cd
command to change the directory to the location of the iOSAppSDKPackage_<version number> folder on your Mac. You created the folder in Before you begin.Tip Drag the folder to the Terminal window to enter the full path of the folder.
-
Enter the following command at the Terminal prompt:
./makeprojdir <projectPath> <appName> <appBundleIdentifier>
-
projectPath: The name and location of the project directory for your app. The project directory can be anywhere in your file system; it doesn't need to be in the iOS App SDK directory.
-
appName: The name of your app. If the name contains spaces or special characters, enclose the name in quotation marks.
-
appBundleIdentifier: The unique bundle identifier for your app. See Xcode Help.
The following example creates a new project directory called MyAppDir in the user's home directory for the Hello World app and the com.mycompany.helloworld bundle identifier:
./makeprojdir ~/MyAppDir "Hello World" com.mycompany.helloworld
-
Project directory contents
A project directory is created for your app in the location you specified. This directory includes:
-
<appName> directory: The directory used for storing the files and resources for your app.
-
<appName>.xcodeproj file: The Xcode project file for your app.
Do not modify the following:
-
app.entitlements file: Specifies the entitlements for your app.
-
iOSAppSDKResources directory: Contains the resources that iOS App SDK created for your app.