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
691e3de4
Commit
691e3de4
authored
Sep 27, 2015
by
Samuel E. Giddins
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4217 from CocoaPods/fix-archiving
Clear out PRIVATE/PUBLIC_HEADERS_FOLDER_PATH
parents
d5261242
8d2ea653
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
42 additions
and
1 deletion
+42
-1
CHANGELOG.md
CHANGELOG.md
+6
-0
pod_target_installer.rb
...oapods/installer/target_installer/pod_target_installer.rb
+14
-0
cocoapods-integration-specs
spec/cocoapods-integration-specs
+1
-1
pod_target_installer_spec.rb
...t/installer/target_installer/pod_target_installer_spec.rb
+21
-0
No files found.
CHANGELOG.md
View file @
691e3de4
...
@@ -60,6 +60,12 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
...
@@ -60,6 +60,12 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
[
Samuel Giddins
](
https://github.com/segiddins
)
[
Samuel Giddins
](
https://github.com/segiddins
)
[
#4083
](
https://github.com/CocoaPods/CocoaPods/issues/4083
)
[
#4083
](
https://github.com/CocoaPods/CocoaPods/issues/4083
)
*
The headers folders paths for static library pods will be unset, fixing
validation when archives are uploaded to iTunes Connect.
[
Boris Bügling
](
https://github.com/neonichu
)
[
Samuel Giddins
](
https://github.com/segiddins
)
[
#4119
](
https://github.com/CocoaPods/CocoaPods/issues/4119
)
## 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 @
691e3de4
...
@@ -36,6 +36,20 @@ module Pod
...
@@ -36,6 +36,20 @@ module Pod
private
private
# Remove the default headers folder path settings for static library pod
# targets.
#
# @return [Hash{String => String}]
#
def
custom_build_settings
settings
=
super
unless
target
.
requires_frameworks?
settings
[
'PRIVATE_HEADERS_FOLDER_PATH'
]
=
''
settings
[
'PUBLIC_HEADERS_FOLDER_PATH'
]
=
''
end
settings
end
#-----------------------------------------------------------------------#
#-----------------------------------------------------------------------#
SOURCE_FILE_EXTENSIONS
=
Sandbox
::
FileAccessor
::
SOURCE_FILE_EXTENSIONS
SOURCE_FILE_EXTENSIONS
=
Sandbox
::
FileAccessor
::
SOURCE_FILE_EXTENSIONS
...
...
cocoapods-integration-specs
@
ad51467c
Subproject commit
8732aa416f7729d06df8ae4ea838837f37a0db9f
Subproject commit
ad51467cca929004a7e5bff2caf29c61ee351e3c
spec/unit/installer/target_installer/pod_target_installer_spec.rb
View file @
691e3de4
...
@@ -71,6 +71,27 @@ module Pod
...
@@ -71,6 +71,27 @@ module Pod
#--------------------------------------#
#--------------------------------------#
describe
'headers folder paths'
do
it
'does not set them for framework targets'
do
@pod_target
.
stubs
(
:requires_frameworks?
=>
true
)
@installer
.
install!
@project
.
targets
.
first
.
build_configurations
.
each
do
|
config
|
config
.
build_settings
[
'PUBLIC_HEADERS_FOLDER_PATH'
].
should
.
be
.
nil
config
.
build_settings
[
'PRIVATE_HEADERS_FOLDER_PATH'
].
should
.
be
.
nil
end
end
it
'empties them for non-framework targets'
do
@installer
.
install!
@project
.
targets
.
first
.
build_configurations
.
each
do
|
config
|
config
.
build_settings
[
'PUBLIC_HEADERS_FOLDER_PATH'
].
should
.
be
.
empty
config
.
build_settings
[
'PRIVATE_HEADERS_FOLDER_PATH'
].
should
.
be
.
empty
end
end
end
#--------------------------------------#
it
'adds the source files of each pod to the target of the Pod library'
do
it
'adds the source files of each pod to the target of the Pod library'
do
@installer
.
install!
@installer
.
install!
names
=
@installer
.
target
.
native_target
.
source_build_phase
.
files
.
map
{
|
bf
|
bf
.
file_ref
.
display_name
}
names
=
@installer
.
target
.
native_target
.
source_build_phase
.
files
.
map
{
|
bf
|
bf
.
file_ref
.
display_name
}
...
...
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