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
91ee7855
Commit
91ee7855
authored
Feb 05, 2017
by
Dimitris Koutsogiorgas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not generate UIRequiredDeviceCapabilities for tvOS info plists
parent
73ef2fdf
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
13 deletions
+7
-13
CHANGELOG.md
CHANGELOG.md
+4
-0
info_plist_file.rb
lib/cocoapods/generator/info_plist_file.rb
+0
-1
info_plist_file_spec.rb
spec/unit/generator/info_plist_file_spec.rb
+3
-12
No files found.
CHANGELOG.md
View file @
91ee7855
...
...
@@ -14,6 +14,10 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
##### Bug Fixes
*
Do not generate
`UIRequiredDeviceCapabilities`
for
`tvOS`
Info.plists.
[
Dimitris Koutsogiorgas
](
https://github.com/dnkoutso
)
[
#6193
](
https://github.com/CocoaPods/CocoaPods/issues/6193
)
*
Fix integration with vendored static frameworks and libraries.
[
Dimitris Koutsogiorgas
](
https://github.com/dnkoutso
)
[
#6477
](
https://github.com/CocoaPods/CocoaPods/pull/6477
)
...
...
lib/cocoapods/generator/info_plist_file.rb
View file @
91ee7855
...
...
@@ -117,7 +117,6 @@ module Pod
info
[
'CFBundleExecutable'
]
=
'${EXECUTABLE_NAME}'
if
bundle_package_type
!=
:bndl
info
[
'CFBundleVersion'
]
=
'1'
if
bundle_package_type
==
:bndl
info
[
'UIRequiredDeviceCapabilities'
]
=
%w(arm64)
if
target
.
platform
.
name
==
:tvos
info
end
...
...
spec/unit/generator/info_plist_file_spec.rb
View file @
91ee7855
...
...
@@ -59,7 +59,7 @@ module Pod
end
if
Executable
.
which
(
'plutil'
)
it
'generates a correct Info.plist file'
do
generator
=
Generator
::
InfoPlistFile
.
new
(
mock
(
'Target'
,
:platform
=>
stub
(
:name
=>
:ios
)
))
generator
=
Generator
::
InfoPlistFile
.
new
(
mock
(
'Target'
))
file
=
temporary_directory
+
'Info.plist'
generator
.
save_as
(
file
)
Xcodeproj
::
Plist
.
read_from_path
(
file
).
should
==
{
...
...
@@ -76,15 +76,6 @@ module Pod
}
end
it
'adds UIRequiredDeviceCapabilities for tvOS targets'
do
pod_target
=
fixture_pod_target
(
'orange-framework/OrangeFramework.podspec'
)
pod_target
.
stubs
(
:platform
).
returns
(
Platform
.
new
(
:tvos
,
'9.0'
))
generator
=
Generator
::
InfoPlistFile
.
new
(
pod_target
)
file
=
temporary_directory
+
'Info.plist'
generator
.
save_as
(
file
)
Xcodeproj
::
Plist
.
read_from_path
(
file
)[
'UIRequiredDeviceCapabilities'
].
should
==
%w(arm64)
end
it
'properly formats serialized arrays'
do
generator
=
Generator
::
InfoPlistFile
.
new
(
mock
(
'Target'
))
generator
.
send
(
:to_plist
,
'array'
=>
%w(a b)
).
should
==
<<-
PLIST
...
...
@@ -103,7 +94,7 @@ module Pod
end
it
'uses the specified bundle_package_type'
do
target
=
mock
(
'Target'
,
:platform
=>
stub
(
:name
=>
:ios
)
)
target
=
mock
(
'Target'
)
generator
=
Generator
::
InfoPlistFile
.
new
(
target
,
:bundle_package_type
=>
:bndl
)
file
=
temporary_directory
+
'Info.plist'
generator
.
save_as
(
file
)
...
...
@@ -111,7 +102,7 @@ module Pod
end
it
'does not include a CFBundleExecutable for bundles'
do
target
=
mock
(
'Target'
,
:platform
=>
stub
(
:name
=>
:ios
)
)
target
=
mock
(
'Target'
)
generator
=
Generator
::
InfoPlistFile
.
new
(
target
,
:bundle_package_type
=>
:bndl
)
file
=
temporary_directory
+
'Info.plist'
generator
.
save_as
(
file
)
...
...
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