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
bf9402c2
Commit
bf9402c2
authored
Feb 25, 2013
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adapt for Spec::Consumer changes
parent
2a54cbe3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
cocoapods.rb
lib/cocoapods.rb
+1
-0
target_installer.rb
lib/cocoapods/installer/target_installer.rb
+1
-1
validator.rb
lib/cocoapods/validator.rb
+2
-2
No files found.
lib/cocoapods.rb
View file @
bf9402c2
...
...
@@ -17,6 +17,7 @@ module Pod
end
require
'cocoapods-core'
require
'xcodeproj'
require
'cocoapods/downloader'
require
'cocoapods/file_list'
require
'cocoapods/config'
...
...
lib/cocoapods/installer/target_installer.rb
View file @
bf9402c2
...
...
@@ -355,7 +355,7 @@ module Pod
flags
=
consumer
.
compiler_flags
.
dup
if
consumer
.
requires_arc
flags
<<
'-fobjc-arc'
platform_name
=
consumer
.
platform
.
symbolic_name
unless
consumer
.
platform
.
is_a?
(
Symbol
)
#TODO
platform_name
=
consumer
.
platform
_name
spec_deployment_target
=
consumer
.
spec
.
deployment_target
(
platform_name
)
if
spec_deployment_target
.
nil?
||
Version
.
new
(
spec_deployment_target
)
<
ENABLE_OBJECT_USE_OBJC_FROM
[
platform_name
]
flags
<<
'-DOS_OBJECT_USE_OBJC=0'
...
...
lib/cocoapods/validator.rb
View file @
bf9402c2
...
...
@@ -232,7 +232,7 @@ module Pod
# for all available platforms with xcodebuild.
#
def
install_pod
podfile
=
podfile_from_spec
(
consumer
.
platform
,
spec
.
deployment_target
(
consumer
.
platform
))
podfile
=
podfile_from_spec
(
consumer
.
platform
_name
,
spec
.
deployment_target
(
consumer
.
platform_name
))
sandbox
=
Sandbox
.
new
(
config
.
sandbox_root
)
installer
=
Installer
.
new
(
sandbox
,
podfile
)
installer
.
install!
...
...
@@ -312,7 +312,7 @@ module Pod
result
=
Specification
::
Linter
::
Result
.
new
(
type
,
message
)
results
<<
result
end
result
.
platforms
<<
consumer
.
platform
if
consumer
result
.
platforms
<<
consumer
.
platform
_name
if
consumer
end
#-------------------------------------------------------------------------#
...
...
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