Note: For up-to-date product documentation, see the IBM MobileFirst Foundation Developer Center.
Registering iOS applications from the MobileFirst Platform CLI
You can use the IBM MobileFirst™ Platform Command Line Interface (CLI) to register your iOS application to an instance MobileFirst Server.
Before you begin
- You must have the IBM MobileFirst Platform Command Line Interface (CLI) installed. For more information, see Installing the MobileFirst Platform CLI.
- You must have an instance of MobileFirst Server running. The server can be running locally, or it can be a remote server, but it must be reachable from your local computer. For more information, see Setting up the MobileFirst Development Server, Installing the IBM MobileFirst Platform Foundation Developer Kit, or Installing IBM MobileFirst Platform Server.
- You must have a native iOS application on your local computer.
About this task
Tip: If the mfpdev app register
command cannot determine the bundle ID, it will prompt you to enter it. This can
occur if value of the CFBundleIdentifier key in the Info.plist file contains variables. To avoid this, manually edit
theInfo.plist file and enter the bundle ID without
variables before you run the mfpdev app register command.
Procedure
Results
Note: If an existing
mfpclient.plist file resides in another directory in the
project besides the root directory, the file will be updated with the server's
URL.
What to do next
Copy the mfpclient.plist file and register it in your Xcode project. For more information, see iOS client properties file.
You can proceed with other development tasks that depend on the MobileFirst Server. For example, you can preview your app, test your app's security features, and manage your app from the MobileFirst Operations Console.