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
02d28e45
Commit
02d28e45
authored
Jul 31, 2012
by
Francis Chong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
In case of project have no Frameworks group, raise a meaningful error. (#326)
parent
58bea1eb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
user_project_integrator.rb
lib/cocoapods/installer/user_project_integrator.rb
+4
-1
No files found.
lib/cocoapods/installer/user_project_integrator.rb
View file @
02d28e45
...
...
@@ -141,7 +141,10 @@ module Pod
end
def
add_pods_library
pods_library
=
user_project
.
group
(
"Frameworks"
).
files
.
new_static_library
(
@target_definition
.
label
)
framework_group
=
user_project
.
group
(
"Frameworks"
)
raise
Informative
,
"Cannot add pod library to project. Please check if the project have a 'Frameworks' group in the root of the project."
unless
framework_group
pods_library
=
framework_group
.
files
.
new_static_library
(
@target_definition
.
label
)
targets
.
each
do
|
target
|
target
.
frameworks_build_phases
.
each
{
|
build_phase
|
build_phase
<<
pods_library
}
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