Commit 30c8a1e5 authored by Eloy Duran's avatar Eloy Duran

Make the rake build_examples task work and use newer xcodeproj version with fix.

parent b20366fc
...@@ -89,7 +89,11 @@ task :build_examples do ...@@ -89,7 +89,11 @@ task :build_examples do
Dir.chdir(example.to_s) do Dir.chdir(example.to_s) do
sh "rm -rf Pods DerivedData" sh "rm -rf Pods DerivedData"
sh "../../bin/pod install --verbose" sh "../../bin/pod install --verbose"
sh "xcodebuild -workspace '#{example.basename}.xcworkspace' -scheme '#{example.basename}'" command = "xcodebuild -workspace '#{example.basename}.xcworkspace' -scheme '#{example.basename}'"
if (example + 'Podfile').read.include?('platform :ios')
command << " -sdk /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk"
end
sh command
end end
puts puts
end end
......
...@@ -31,7 +31,7 @@ Gem::Specification.new do |s| ...@@ -31,7 +31,7 @@ Gem::Specification.new do |s|
" $ sudo macgem install rubygems-compile\n" \ " $ sudo macgem install rubygems-compile\n" \
" $ sudo macgem compile cocoapods\n\n" " $ sudo macgem compile cocoapods\n\n"
s.add_runtime_dependency 'xcodeproj', '~> 0.0.1' s.add_runtime_dependency 'xcodeproj', '~> 0.0.2'
## Make sure you can build the gem on older versions of RubyGems too: ## Make sure you can build the gem on older versions of RubyGems too:
s.rubygems_version = "1.6.2" s.rubygems_version = "1.6.2"
......
PODS:
- AFNetworking (0.7.0):
- JSONKit
- FormatterKit (0.6.0)
- JSONKit (1.4)
DEPENDENCIES:
- AFNetworking (~> 0.7.0)
- FormatterKit
PODS:
- MGSplitViewController (1.0.0)
DEPENDENCIES:
- MGSplitViewController (= 1.0.0)
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "self:MGSplitView.xcodeproj">
</FileRef>
</Workspace>
PODS:
- JSONKit (1.4)
- LibComponentLogging-Core (1.1.4)
- LibComponentLogging-NSLog (1.0.2):
- LibComponentLogging-Core (>= 1.1.4)
- RestKit-JSON-JSONKit (0.9.3):
- JSONKit
- RestKit (= 0.9.3)
- RestKit-Network (0.9.3):
- LibComponentLogging-NSLog
- RestKit (= 0.9.3)
- RestKit-ObjectMapping (0.9.3):
- RestKit (= 0.9.3)
- RestKit-Network (= 0.9.3)
DOWNLOAD_ONLY:
- RestKit (0.9.3)
DEPENDENCIES:
- RestKit-JSON-JSONKit
- RestKit-ObjectMapping
Subproject commit af5d347f9cf7768ea9433a321c3a7c7d898044e1 Subproject commit e2ab8c76e891241612535acd114eb82d6be5815e
...@@ -15,7 +15,7 @@ module Xcodeproj ...@@ -15,7 +15,7 @@ module Xcodeproj
class PBXCopyFilesBuildPhase class PBXCopyFilesBuildPhase
def self.new_pod_dir(project, pod_name, path) def self.new_pod_dir(project, pod_name, path)
new(project, nil, { new(project, nil, {
"dstPath" => "$(PUBLIC_HEADERS_FOLDER_PATH)/#{path}", "dstPath" => "$(PRODUCT_NAME)/#{path}",
"name" => "Copy #{pod_name} Public Headers", "name" => "Copy #{pod_name} Public Headers",
}) })
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment