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
d9306b4c
Commit
d9306b4c
authored
Nov 06, 2011
by
Eloy Duran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add the library to the Frameworks group when configuring the app project.
parent
9ea008e3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
pod
bin/pod
+2
-0
installer.rb
lib/cocoapods/installer.rb
+1
-0
podfile_spec.rb
spec/unit/podfile_spec.rb
+3
-3
No files found.
bin/pod
View file @
d9306b4c
#!/usr/bin/env macruby
#!/usr/bin/env macruby
if $0 == __FILE__
if $0 == __FILE__
require 'rubygems'
gem 'activesupport', '~> 3.1.1'
$:.unshift File.expand_path('../../lib', __FILE__)
$:.unshift File.expand_path('../../lib', __FILE__)
end
end
...
...
lib/cocoapods/installer.rb
View file @
d9306b4c
...
@@ -214,6 +214,7 @@ module Pod
...
@@ -214,6 +214,7 @@ module Pod
end
end
libfile
=
app_project
.
files
.
new_static_library
(
'Pods'
)
libfile
=
app_project
.
files
.
new_static_library
(
'Pods'
)
libfile
.
group
=
app_project
.
main_group
.
groups
.
find
{
|
g
|
g
.
name
==
'Frameworks'
}
app_project
.
objects
.
select_by_class
(
Xcode
::
Project
::
PBXFrameworksBuildPhase
).
each
do
|
build_phase
|
app_project
.
objects
.
select_by_class
(
Xcode
::
Project
::
PBXFrameworksBuildPhase
).
each
do
|
build_phase
|
build_phase
.
files
<<
libfile
.
buildFiles
.
new
build_phase
.
files
<<
libfile
.
buildFiles
.
new
end
end
...
...
spec/unit/podfile_spec.rb
View file @
d9306b4c
...
@@ -18,9 +18,9 @@ describe "Pod::Podfile" do
...
@@ -18,9 +18,9 @@ describe "Pod::Podfile" do
podfile
.
dependency_by_name
(
'SSZipArchive'
).
should
==
Pod
::
Dependency
.
new
(
'SSZipArchive'
,
'>= 0.1'
)
podfile
.
dependency_by_name
(
'SSZipArchive'
).
should
==
Pod
::
Dependency
.
new
(
'SSZipArchive'
,
'>= 0.1'
)
end
end
it
"specifies
if
BridgeSupport metadata should be generated"
do
it
"specifies
that
BridgeSupport metadata should be generated"
do
podfile
=
Pod
::
Podfile
.
new
{
generate_bridge_support!
}
Pod
::
Podfile
.
new
{}.
should
.
not
.
generate_bridge_support
podfile
.
generate_bridge_support?
.
should
==
true
Pod
::
Podfile
.
new
{
generate_bridge_support!
}.
should
.
generate_bridge_support
end
end
describe
"concerning targets (dependency groups)"
do
describe
"concerning targets (dependency groups)"
do
...
...
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