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
d5261242
Commit
d5261242
authored
Sep 27, 2015
by
Samuel E. Giddins
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4272 from CocoaPods/seg-remove-dylib-versions
[PodTargetInstaller] Dont set the dylib version settings
parents
34d53644
65877b65
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
64 deletions
+7
-64
CHANGELOG.md
CHANGELOG.md
+6
-1
pod_target_installer.rb
...oapods/installer/target_installer/pod_target_installer.rb
+0
-19
cocoapods-integration-specs
spec/cocoapods-integration-specs
+1
-1
pod_target_installer_spec.rb
...t/installer/target_installer/pod_target_installer_spec.rb
+0
-43
No files found.
CHANGELOG.md
View file @
d5261242
...
@@ -45,16 +45,21 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
...
@@ -45,16 +45,21 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
*
Podfile generated by
`pod init`
now specifies iOS 8.0 as the default platform
*
Podfile generated by
`pod init`
now specifies iOS 8.0 as the default platform
and includes
`use_frameworks!`
for Swift projects.
and includes
`use_frameworks!`
for Swift projects.
[
Jamie Evans
](
https://github.com/JamieREvans
)
[
Jamie Evans
](
https://github.com/JamieREvans
)
*
Support for the new
`tvos`
platform.
*
Support for the new
`tvos`
platform.
[
Boris Bügling
](
https://github.com/neonichu
)
[
Boris Bügling
](
https://github.com/neonichu
)
[
#4152
](
https://github.com/CocoaPods/CocoaPods/pull/4152
)
[
#4152
](
https://github.com/CocoaPods/CocoaPods/pull/4152
)
*
Either generate just one pod target or generate it once for each target
*
Either generate just one pod target or generate it once for each target
definition.
definition.
[
Marius Rackwitz
](
https://github.com/mrackwitz
)
[
Marius Rackwitz
](
https://github.com/mrackwitz
)
[
#4034
](
https://github.com/CocoaPods/CocoaPods/issues/4034
)
[
#4034
](
https://github.com/CocoaPods/CocoaPods/issues/4034
)
*
Stop setting
`DYLIB_CURRENT_VERSION`
,
`CURRENT_PROJECT_VERSION`
, and
`DYLIB_COMPATIBILITY_VERSION`
for pods integrated as dynamic frameworks.
[
Samuel Giddins
](
https://github.com/segiddins
)
[
#4083
](
https://github.com/CocoaPods/CocoaPods/issues/4083
)
## 0.39.0.beta.4 (2015-09-02)
## 0.39.0.beta.4 (2015-09-02)
...
...
lib/cocoapods/installer/target_installer/pod_target_installer.rb
View file @
d5261242
...
@@ -36,25 +36,6 @@ module Pod
...
@@ -36,25 +36,6 @@ module Pod
private
private
# Adds the project/library and compatibility versions, which are only
# applicable to dynamic libraries.
#
# @return [Hash{String => String}]
#
def
custom_build_settings
settings
=
super
if
target
.
requires_frameworks?
version
=
target
.
root_spec
.
version
project_version
=
[
version
.
major
,
version
.
minor
,
version
.
patch
].
join
(
'.'
)
compatibility_version
=
version
.
major
compatibility_version
=
project_version
if
compatibility_version
<
1
settings
[
'CURRENT_PROJECT_VERSION'
]
=
project_version
settings
[
'DYLIB_COMPATIBILITY_VERSION'
]
=
compatibility_version
.
to_s
settings
[
'DYLIB_CURRENT_VERSION'
]
=
'$(CURRENT_PROJECT_VERSION)'
end
settings
end
#-----------------------------------------------------------------------#
#-----------------------------------------------------------------------#
SOURCE_FILE_EXTENSIONS
=
Sandbox
::
FileAccessor
::
SOURCE_FILE_EXTENSIONS
SOURCE_FILE_EXTENSIONS
=
Sandbox
::
FileAccessor
::
SOURCE_FILE_EXTENSIONS
...
...
cocoapods-integration-specs
@
8732aa41
Subproject commit
6989ebd54e1aeae47706b375057791b4f2c93bbb
Subproject commit
8732aa416f7729d06df8ae4ea838837f37a0db9f
spec/unit/installer/target_installer/pod_target_installer_spec.rb
View file @
d5261242
...
@@ -295,49 +295,6 @@ module Pod
...
@@ -295,49 +295,6 @@ module Pod
end
end
end
end
end
end
#--------------------------------------------------------------------------------#
describe
'concerning framework versions'
do
before
do
@pod_target
.
stubs
(
:requires_frameworks?
=>
true
)
@spec
.
stubs
(
:version
=>
Version
.
new
(
'1.2.3'
))
end
it
'sets the project and library version'
do
settings
=
@installer
.
send
(
:custom_build_settings
)
settings
[
'CURRENT_PROJECT_VERSION'
].
should
==
'1.2.3'
settings
[
'DYLIB_CURRENT_VERSION'
].
should
==
'$(CURRENT_PROJECT_VERSION)'
end
it
'sets the library compatibility version to the major version'
do
settings
=
@installer
.
send
(
:custom_build_settings
)
settings
[
'DYLIB_COMPATIBILITY_VERSION'
].
should
==
'1'
end
it
'sets the library compatibility version to the exact version when it is less than v1 (because SemVer makes no promises)'
do
@spec
.
stubs
(
:version
=>
Version
.
new
(
'0.1.2'
))
settings
=
@installer
.
send
(
:custom_build_settings
)
settings
[
'DYLIB_COMPATIBILITY_VERSION'
].
should
==
'0.1.2'
end
describe
'with weird version numbers'
do
handles
=
->
(
version
,
project_version
,
compatibility_version
)
do
it
"handles
#{
version
}
"
do
@spec
.
stubs
(
:version
=>
Version
.
new
(
version
))
settings
=
@installer
.
send
(
:custom_build_settings
)
settings
[
'CURRENT_PROJECT_VERSION'
].
should
==
project_version
settings
[
'DYLIB_COMPATIBILITY_VERSION'
].
should
==
compatibility_version
end
end
handles
[
'1.alpha'
,
'1.0.0'
,
'1'
]
handles
[
'0.1-alpha'
,
'0.1.0'
,
'0.1.0'
]
handles
[
'1.2.3.4'
,
'1.2.3'
,
'1'
]
handles
[
'0.2.3.4'
,
'0.2.3'
,
'0.2.3'
]
handles
[
'1.alpha.2'
,
'1.0.0'
,
'1'
]
end
end
end
end
end
end
end
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