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
cf285e14
Commit
cf285e14
authored
Oct 18, 2014
by
Eloy Durán
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2676 from CocoaPods/issue/2666
Fixes an issue when using pods in static library targets
parents
e18e00c9
a8645c6f
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
3 deletions
+22
-3
CHANGELOG.md
CHANGELOG.md
+9
-1
aggregate_xcconfig.rb
lib/cocoapods/generator/xcconfig/aggregate_xcconfig.rb
+1
-0
target_installer.rb
lib/cocoapods/installer/target_installer.rb
+1
-1
aggregate_xcconfig_spec.rb
spec/unit/generator/xcconfig/aggregate_xcconfig_spec.rb
+4
-0
target_installer_spec.rb
spec/unit/installer/target_installer_spec.rb
+7
-1
No files found.
CHANGELOG.md
View file @
cf285e14
...
@@ -32,6 +32,14 @@ To install or update CocoaPods see this [guide](http://docs.cocoapods.org/guides
...
@@ -32,6 +32,14 @@ To install or update CocoaPods see this [guide](http://docs.cocoapods.org/guides
[
Kurry Tran
](
https://github.com/kurry
)
[
Kurry Tran
](
https://github.com/kurry
)
[
#2683
](
https://github.com/CocoaPods/CocoaPods/issues/2683
)
[
#2683
](
https://github.com/CocoaPods/CocoaPods/issues/2683
)
*
Fixes an issue when using pods in static library targets and building with
Xcode 6 which requires
`OTHER_LIBTOOLFLAGS`
instead of
`OTHER_LDFLAGS`
, thus
basically reverting to the previous Xcode behaviour, for now at least.
[
Kyle Fuller
](
https://github.com/kylef
)
[
Eloy Durán
](
https://github.com/alloy
)
[
#2666
](
https://github.com/CocoaPods/CocoaPods/issues/2666
)
## 0.34.2
## 0.34.2
##### Enhancements
##### Enhancements
...
@@ -2619,7 +2627,7 @@ podspec, then update these method calls.
...
@@ -2619,7 +2627,7 @@ podspec, then update these method calls.
generated Pods project file.
generated Pods project file.
*
[
#142
](
https://github.com/CocoaPods/CocoaPods/issues/
)
: Add
`-fobjc-arc`
to
*
[
#142
](
https://github.com/CocoaPods/CocoaPods/issues/
)
: Add
`-fobjc-arc`
to
`OTHER_LD
_
FLAGS`
if _any_ pods require ARC.
`OTHER_LDFLAGS`
if _any_ pods require ARC.
*
[
#148
](
https://github.com/CocoaPods/CocoaPods/issues/148
)
: External encoding
*
[
#148
](
https://github.com/CocoaPods/CocoaPods/issues/148
)
: External encoding
set to UTF-8 on Ruby 1.9 to fix crash caused by non-ascii characters in pod
set to UTF-8 on Ruby 1.9 to fix crash caused by non-ascii characters in pod
...
...
lib/cocoapods/generator/xcconfig/aggregate_xcconfig.rb
View file @
cf285e14
...
@@ -50,6 +50,7 @@ module Pod
...
@@ -50,6 +50,7 @@ module Pod
header_search_path_flags
=
target
.
sandbox
.
public_headers
.
search_paths
header_search_path_flags
=
target
.
sandbox
.
public_headers
.
search_paths
@xcconfig
=
Xcodeproj
::
Config
.
new
(
@xcconfig
=
Xcodeproj
::
Config
.
new
(
'OTHER_LDFLAGS'
=>
XCConfigHelper
.
default_ld_flags
(
target
),
'OTHER_LDFLAGS'
=>
XCConfigHelper
.
default_ld_flags
(
target
),
'OTHER_LIBTOOLFLAGS'
=>
'$(OTHER_LDFLAGS)'
,
'HEADER_SEARCH_PATHS'
=>
XCConfigHelper
.
quote
(
target
.
sandbox
.
public_headers
.
search_paths
),
'HEADER_SEARCH_PATHS'
=>
XCConfigHelper
.
quote
(
target
.
sandbox
.
public_headers
.
search_paths
),
'PODS_ROOT'
=>
target
.
relative_pods_root
,
'PODS_ROOT'
=>
target
.
relative_pods_root
,
'GCC_PREPROCESSOR_DEFINITIONS'
=>
'$(inherited) COCOAPODS=1'
,
'GCC_PREPROCESSOR_DEFINITIONS'
=>
'$(inherited) COCOAPODS=1'
,
...
...
lib/cocoapods/installer/target_installer.rb
View file @
cf285e14
...
@@ -45,7 +45,7 @@ module Pod
...
@@ -45,7 +45,7 @@ module Pod
configuration
=
@target
.
add_build_configuration
(
bc_name
,
type
)
configuration
=
@target
.
add_build_configuration
(
bc_name
,
type
)
end
end
settings
=
{}
settings
=
{
'OTHER_LDFLAGS'
=>
''
,
'OTHER_LIBTOOLFLAGS'
=>
''
}
if
library
.
archs
if
library
.
archs
settings
[
'ARCHS'
]
=
library
.
archs
settings
[
'ARCHS'
]
=
library
.
archs
end
end
...
...
spec/unit/generator/xcconfig/aggregate_xcconfig_spec.rb
View file @
cf285e14
...
@@ -85,6 +85,10 @@ module Pod
...
@@ -85,6 +85,10 @@ module Pod
@xcconfig
.
to_hash
[
'OTHER_LDFLAGS'
].
should
.
not
.
include
'-l"Pods-BananaLib"'
@xcconfig
.
to_hash
[
'OTHER_LDFLAGS'
].
should
.
not
.
include
'-l"Pods-BananaLib"'
end
end
it
'should configure OTHER_LIBTOOLFLAGS flags to include OTHER_LDFLAGS'
do
@xcconfig
.
to_hash
[
'OTHER_LIBTOOLFLAGS'
].
should
==
'$(OTHER_LDFLAGS)'
end
#-----------------------------------------------------------------------#
#-----------------------------------------------------------------------#
before
do
before
do
...
...
spec/unit/installer/target_installer_spec.rb
View file @
cf285e14
...
@@ -29,7 +29,7 @@ module Pod
...
@@ -29,7 +29,7 @@ module Pod
@installer
=
Installer
::
TargetInstaller
.
new
(
config
.
sandbox
,
@pod_target
)
@installer
=
Installer
::
TargetInstaller
.
new
(
config
.
sandbox
,
@pod_target
)
end
end
it
'
A
dds the architectures to the custom build configurations of the user target'
do
it
'
a
dds the architectures to the custom build configurations of the user target'
do
@pod_target
.
archs
=
'$(ARCHS_STANDARD_64_BIT)'
@pod_target
.
archs
=
'$(ARCHS_STANDARD_64_BIT)'
@installer
.
send
(
:add_target
)
@installer
.
send
(
:add_target
)
@installer
.
send
(
:target
).
resolved_build_setting
(
'ARCHS'
).
should
==
{
@installer
.
send
(
:target
).
resolved_build_setting
(
'ARCHS'
).
should
==
{
...
@@ -40,5 +40,11 @@ module Pod
...
@@ -40,5 +40,11 @@ module Pod
}
}
end
end
it
'always clears the OTHER_LDFLAGS and OTHER_LIBTOOLFLAGS, because these lib targets do not ever need any'
do
@installer
.
send
(
:add_target
)
@installer
.
send
(
:target
).
resolved_build_setting
(
'OTHER_LDFLAGS'
).
values
.
uniq
.
should
==
[
''
]
@installer
.
send
(
:target
).
resolved_build_setting
(
'OTHER_LIBTOOLFLAGS'
).
values
.
uniq
.
should
==
[
''
]
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