Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cocoapods
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
cocoapods
Commits
2ae6ddfb
Commit
2ae6ddfb
authored
Feb 10, 2012
by
Luke Redpath
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Let users specify the deployment target for :iOS platforms so we can automatically set
the right ARCHS. Closes #118 (new feature).
parent
b983e3a3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
podfile.rb
lib/cocoapods/podfile.rb
+9
-2
No files found.
lib/cocoapods/podfile.rb
View file @
2ae6ddfb
...
@@ -48,8 +48,15 @@ module Pod
...
@@ -48,8 +48,15 @@ module Pod
#
#
# This can be either `:osx` for Mac OS X applications, or `:ios` for iOS
# This can be either `:osx` for Mac OS X applications, or `:ios` for iOS
# applications.
# applications.
def
platform
(
platform
=
nil
)
#
platform
?
@platform
=
Platform
.
new
(
platform
)
:
@platform
# For iOS applications, you can set the deployment target by passing a :deployment_target
# option, e.g:
#
# platform :ios, :deployment_target => "4.0"
#
# If the deployment target requires it (< 4.3), armv6 will be added to ARCHS.
def
platform
(
platform
=
nil
,
options
=
{})
platform
?
@platform
=
Platform
.
new
(
platform
,
options
)
:
@platform
end
end
# Specifies a dependency of the project.
# Specifies a dependency of the project.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment