[Reveal] Join the project

Source: Internet
Author: User

If you prefer either of the aforementioned dependency managers, you can integrate Alamofire into your project M Anually.

Embedded Framework
    • Open up Terminal, into cd your top-level project directory, and run the following command "If" your project was not init Ialized as a git repository:
$ git init
    • Add Alamofire as a git submodule by running the following command:
$ git submodule add https://github.com/Alamofire/Alamofire.git
  • Open the new Alamofire folder, and drag the into the Alamofire.xcodeproj project Navigator of your application ' s Xcode project.

    It should appear nested underneath your application ' s Blue Project icon. Whether it is above or below all of the other Xcode groups does not matter.

  • Select the In the Alamofire.xcodeproj Project Navigator and verify the deployment target matches that of your application target.

  • Next, select your application project in the Project Navigator (blue Project icon) to navigate to the target configuration window and select the application target under the "Targets" heading in the sidebar.
  • In the tab bar at the top of that window, open the ' General ' panel.
  • Click on + the button under the ' Embedded Binaries ' section.
  • You'll see both different Alamofire.xcodeproj folders each with a different versions of the Alamofire.framework nested inside a Products folder.

    It does not matter which Products folder choose from, but it does matter whether you choose the top or bottom Alamofire.framework .

  • Select the top for IOS and the bottom one for Alamofire.framework OS x.

    You can verify which one to selected by inspecting the build log for your project. The build target for would be Alamofire listed as either Alamofire iOS or Alamofire OSX .

  • And that ' s it!

Alamofire.frameworkthe is automagically added as a target dependency, linked framework and embedded framework in a copy files build Pha Se which is all you need to build on the simulator and a device.

[Reveal] Join the project

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.