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
23250690
Commit
23250690
authored
May 15, 2013
by
利辺羅エルネスト
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Complete] Fix copy resources script for iOS < 6 and OS X < 10.8
parent
4fd4624c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
target_installer.rb
lib/cocoapods/installer/target_installer.rb
+7
-3
No files found.
lib/cocoapods/installer/target_installer.rb
View file @
23250690
...
...
@@ -209,6 +209,10 @@ module Pod
end
end
ENABLE_EXTERNAL_STRINGS_FILE_FLAG
=
{
:ios
=>
Version
.
new
(
'6'
),
:osx
=>
Version
.
new
(
'10.8'
)
}
# Creates a script that copies the resources to the bundle of the client
# target.
#
...
...
@@ -222,9 +226,9 @@ module Pod
UI
.
message
"- Generating copy resources script at
#{
UI
.
path
(
path
)
}
"
do
resources
=
library
.
file_accessors
.
map
{
|
accessor
|
accessor
.
resources
.
flatten
.
map
{
|
res
|
project
.
relativize
(
res
)}
}.
flatten
resources
<<
bridge_support_file
if
bridge_support_file
# @todo inspect library.platform to see if it is osx 10.8+ or 6.0+
greaterorquealto_osx10_8_or_ios6
=
true
generator
=
Generator
::
CopyResourcesScript
.
new
(
resources
,
greaterorquealto_osx10_8_or_ios6
)
platform_name
=
library
.
platform
.
name
reference_external_strings_file
=
library
.
platform
.
deployment_target
>=
ENABLE_EXTERNAL_STRINGS_FILE_FLAG
[
platform_name
]
generator
=
Generator
::
CopyResourcesScript
.
new
(
resources
,
reference_external_strings_file
)
generator
.
save_as
(
path
)
add_file_to_support_group
(
path
)
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