mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-29 21:25:51 +08:00
Closes gh-47. Initial implementation of OS X build integrating changes submitted by Felix Holmgren (https://github.com/Felixyz/RestKit).
* Factored out display of alerts into RKAlert interface that hides the differences between UIKit and OS X Cocoa. * Added macosx to supported platforms to enable build on OS X. * Configured project to use conditional architectures to enable building on OS X and iOS from the same targets. * Implemented a bare-bones OS X example app. * Create `rake build` task for building RestKit against iOS and OS X SDK for quick testing.
This commit is contained in:
6
Rakefile
6
Rakefile
@@ -40,3 +40,9 @@ end
|
||||
|
||||
desc "Run all specs"
|
||||
task :default => 'uispec:all'
|
||||
|
||||
desc "Build RestKit for iOS and Mac OS X"
|
||||
task :build do
|
||||
system("xcodebuild -workspace RestKit.xcodeproj/project.xcworkspace -scheme RestKit -sdk iphoneos4.3")
|
||||
system("xcodebuild -workspace RestKit.xcodeproj/project.xcworkspace -scheme RestKit -sdk macosx10.6")
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user