A simple lib and category arsenal by Objective-C
Embedded frameworks require a minimum deployment target of iOS 8 or OS X Mavericks.
CocoaPods is a dependency manager for Cocoa projects.
CocoaPods 0.36 beta adds supports for Swift and embedded frameworks. You can install it with the following command:
$ gem install cocoapods --pre
To integrate Alamofire into your Xcode project using CocoaPods, specify it in your Podfile
:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
pod 'OcArsenal', '~> 0.1'
Then, run the following command:
$ pod install
Carthage is a decentralized dependency manager that automates the process of adding frameworks to your Cocoa application.
You can install Carthage with Homebrew using the following command:
$ brew update
$ brew install carthage
To integrate Alamofire into your Xcode project using Carthage, specify it in your Cartfile
:
github "louis-cai/OcArsenal" >= 0.1
If you prefer not to use either of the aforementioned dependency managers, you can integrate Alamofire into your project manually.
- Add Alamofire as a submodule by opening the Terminal,
cd
-ing into your top-level project directory, and entering the following command:
$ git submodule add https://github.com/louis-cai/OcArsenal.git
- Open the
OcArsenal
folder, and dragOcArsenal.xcodeproj
into the file navigator of your app project. - In Xcode, navigate to the target configuration window by clicking on the blue project icon, and selecting the application target under the "Targets" heading in the sidebar.
- Ensure that the deployment target of OcArsenal.framework matches that of the application target.
- In the tab bar at the top of that window, open the "Build Phases" panel.
- Expand the "Target Dependencies" group, and add
OcArsenal.framework
. - Click on the
+
button at the top left of the panel and select "New Copy Files Phase". Rename this new phase to "Copy Frameworks", set the "Destination" to "Frameworks", and addOcArsenal.framework
.