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
4945e7d0
Commit
4945e7d0
authored
Apr 20, 2012
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Sample Spec] instructions on how handle pods which support both platforms with different details
parent
ff995387
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
spec.rb
lib/cocoapods/command/spec.rb
+4
-0
No files found.
lib/cocoapods/command/spec.rb
View file @
4945e7d0
...
@@ -185,10 +185,14 @@ Pod::Spec.new do |s|
...
@@ -185,10 +185,14 @@ Pod::Spec.new do |s|
# If this Pod runs only on iOS or OS X, then specify that with one of
# If this Pod runs only on iOS or OS X, then specify that with one of
# these, or none if it runs on both platforms.
# these, or none if it runs on both platforms.
# If the pod runs on both plafroms but presents different deployment
# targets, source files, etc. create two different pods: `
#{
data
[
:name
]
}
-iOS'
# and `
#{
data
[
:name
]
}
-OSX'.
#
#
# s.platform = :ios
# s.platform = :ios
# s.platform = :ios, { :deployment_target => "5.0" }
# s.platform = :ios, { :deployment_target => "5.0" }
# s.platform = :osx
# s.platform = :osx
# s.platform = :osx, { :deployment_target => "10.7" }
# A list of resources included with the Pod. These are copied into the
# A list of resources included with the Pod. These are copied into the
# target bundle with a build phase script.
# target bundle with a build phase script.
...
...
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