Delphi for iOS Development Guide (1): Configure your development environment on your Mac

Source: Internet
Author: User
Tags knowledge base







http://cache.baiducontent.com/c?m= 9d78d513d99516f11ab7cf690d678c3b584380122ba7a0020fd18438e4732b40506793ac57240773a4d20c1116dc4348adb0687d6d4566f58cc9fb57c 0ebcc757a9f2743215dd01d05d36ef39c00388477cb4deedb5ca0bcfb3092aad2d2de49008a155e2bdea7960c57529934ae552ce0a4924f115b11bb &p=99759a45d5c714fc57efd33a465393&newp= Aa62c54ad6c045e606ac852d021497231610db2151d4d5136b82c825d7331b001c3bbfb42323110ed6c17b640ba4485ceffa3c70340821a3dda5c91d9 Fb4c57479c1797561&user=baidu&fm=sc&query=delphi+ios+%bb%b7%be%b3%b4%ee%bd%a8&qid= a2f841d600003acc&p1=2










ei_wu49036233 's Column

catalog view

Summary view

Subscription

Deep Learning Code columnSaving class-My study is my master Open your knowledge management, Knowledge Base profile online Delphi for IOS Development Guide (1): Configure your development environment on your MacTags: ios Development Delphi 2013-09-03 09:08 6104 People read comments (0) favorite reports Classification:IOS(+) Author of similar articlesX



The Firemonkey application developed for the iOS target platform can initially be tested on the iOS simulator of the Mac.






The second phase of the testing process can use the iOS device target platform and requires a test iOS device connected to your Mac.










The top half of this tutorial describes the steps you need to take to run an iOS application on your Mac's iOS simulator.

The lower half of this tutorial describes the additional steps you need to take to run an iOS application on iOS device.



























Mac requirements










OS X 10.7 Lion or 10.8 Mountain Lion

IOS 5.1 +

Install the latest version of Xcode and IOS SDK and install Xcode command linetools

Required to be a member of the Appledeveloper program

An iOS device that connects to your Mac via a USB port (used to test or run the iOS App on Device)







































To configure your Mac to let your iOS app run on iOS simulator











To get your iOS app to iOS simulator on Mac, you need to install the following tools on your Mac:










Platform Assistant (Paserver)









To test the target, RAD Studio uses platform Assistant, which must be installed and running on the Mac.










XCode









Xcode is a development test environment on a Mac and provides the program files required for Mac OS X and IOS applications.




































First step: Install Platformassistant












Just now, when you're running iOS apps from pc to iOS simulator or iOS device, Platform Assistant must run on your Mac.






Platform Assstant's Mac OS x installation package is named Radpaserverxe4.pkg and can be found in two places:










The Paserver directory in the RAD Studio installation directory.









For example, C:\Program files\embarcadero\radstudio\n.n\paserver\radpaserverxe4.pkg










On-line, used to download on Mac:









Http://installers.codegear.com/release/radstudio/11.0/PAServer/RADPAServerXE4.pkg


















For more detailed steps, see the chapter "Installing Platform Assistant on Mac".










































Step Two: Run Platformassistant












In the Finder for Mac, follow the steps below to activate this. app file (RAD paserver Xe4.app):






1. Locate the applications directory at the top level.






2. Double-click the RAD paserver Xe4.app to start the platform Assistant:












A terminal window appears, displaying the Platform assistant identity and entering a password hint:






Connection Profile password<press Enter for no password












You can press the return key or enter a paserver password and press the return key.






3. Next you will be prompted to enter your Mac's user password to allow platform Assistant to debug your application. Enter your password, and then select Take Control "Allow":












For more details on platform Assistant, see the chapter "running platform Assistant on Mac".
















































Step three: Install Xcode on your Mac












Xcode is a development test environment on a Mac and provides the development files needed for Mac OS X and IOS applications.






You can install Xcode from these places:










On your Mac OS X install DVD, under Optionsinstalls, double-click xcode.mpkg to install Xcode.

Download Xcode for free in the Mac App Store.

As a registered Appledeveloper, you can download the latest version of the Xcode package (. dmg). Sign up and download Xcode:









1. Register (name) on http://developer.apple.com/programs/register/to become a appledeveloper.






2. Download the Xcode installation package from Https://developer.apple.com/downloads.










































The next steps












You need to configure your Mac to run iOS apps on iOS simulator.










To run the iOS app on Iossimulator, review theiOS Tutorial: Preparing Your development environment on a Windows PC to complete the RAD Studio IDE configuration.

To run your iOS app on iOS device, use these steps to complete the configuration of your Mac. Note that you can perform these steps after you have tested the application on IOS Simulator.



























Additional steps to configure your Mac to run iOS apps on iOS device












Here are some steps you can take to run your iOS app on your iOS device.
























First step: Install Xcode Command line Tools on your Mac












Install the tools you need to use Xcode on your Mac:






1. Run Xcode on your Mac.






2. Select Preferences from the Xcode menu.












3. On the General panel, click Downloadd.






4. On the Downloads form, select the Components page.












5. Click the Install button next to command line tools.






You will be asked to sign in with Apple Developer during the installation process.






For more details, see the chapter "Installing Xcode Command line Tools on your Mac."
























Step Two: Register a developer account












Must be a member of iOS Developer program to build, run, test, and Deployment iOS apps.






You can use one of the following methods to join developer program:










As a private developer.

As a member of an enterprise (business) or a university.









For more details, please see "Join an iOS Developer program".






























Step three: request, download and install your development certificate












The application to device (or on iOS Simulator) requires a cryptographic signature before it runs. Development certificates contain information that requires authentication applications. Each (individual developer or team member) must have a unique development certificate that can be used for multiple applications.






For development teams, development certificates must be requested by each team member, and these requests must be approved by the team administrator.












Request, download and install your certificate











1. In the Keychain access (Keychain Access) application on Mac, select the Keychain Access button: Certificate Assistant (certificate assistant) >request a Certificate from a Ce Rtificateauthority (Request a certificate from a certification authority):






Save the certificate request to a file, and then send it to your certification authority by uploading the file in Apple's Iosprovisioning portal.










If you are a member of the developer team of a company/organization group, your team administrator needs to approve your request. You can download this certificate after your team administrator has approved it.

If you are a personal developer, after the request, you will see a download option. See Apple's documentation for more details: creatingsigning certificates









2. Visit the iosprovisioning Portal. After the status changes from submitted to issued you can download the development certificate:






3. Install the development certificate by double-clicking it. It will load automatically in the Keychain Access application.
























Fourth Step: Register your device for deployment












Before device can run the user's application, it must be registered in the Appleprovisioning portal. The device is registered through their unique device ID (UDID). Udid can be viewed using Xcode, as follows:






1. Make sure your IOS device is connected to your Mac machine.






2. Open Xcode and then to Organizer (Window>organizer).






3. On the Devices page, click on your device.






4. Next to the identifier tag is a string of characters:












This string of characters is the udid of your device.










If you are a personal developer, register your device by adding UDID to the Devices tab of the Apple Provisioning portal.

If you are a member of a company/organization, tell your team administrator to register your device.

































Fifth step: Create and install provisioning profile












Provisioning profile is used to connect developers and devices to a development team. Running the application on Iosdevice requires Provisioningprofile.










If you are a personal developer, you must create a provisioning profile. For more details, please see: creatingand downloading a distribution Provisioning profile.

If you are a company/organization developer, your team administrator must create a provisioning profile that you can use.









After creating the provisioning profile, you must install it into Xcode, as follows:






1. Open Xcode and go to Organixer (Windows>organizer).






2. In the library area, select Provisioning profile and click Refresh.






3. Xcode asks you to log in using your AppleID. Enter your identity, and then select Log In. Provisioning profile installed to Xcode:












4. Select an available IOS Provisioning profile and drag it to the provisioning profiles of your test device.












You have configured your Mac to let your app run on your IOS Device.






To run your iOS app, check out "iOS Tutorial: Preparing Your development environment on a Windows PC" and complete the RAD Studio IDE configuration. (If you've already configured your PC to run the app on iOS Simulator, you can skip this step.) )






Delphi for iOS Development Guide (1): Configure your development environment on your Mac




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.