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
6381bf5e
Commit
6381bf5e
authored
Nov 16, 2011
by
Eloy Duran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Inform the user that she has to open the workspace instead of the project after installing.
parent
d96bcffb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
installer.rb
lib/cocoapods/installer.rb
+5
-0
No files found.
lib/cocoapods/installer.rb
View file @
6381bf5e
...
@@ -235,6 +235,7 @@ module Pod
...
@@ -235,6 +235,7 @@ module Pod
# 3. Let the user specify the app target name as an extra argument, but this
# 3. Let the user specify the app target name as an extra argument, but this
# seems to be a less good version of the variation on #2.
# seems to be a less good version of the variation on #2.
def
configure_project
(
projpath
)
def
configure_project
(
projpath
)
# TODO use more of Pathname’s API here
root
=
File
.
dirname
(
projpath
)
root
=
File
.
dirname
(
projpath
)
xcworkspace
=
File
.
join
(
root
,
File
.
basename
(
projpath
,
'.xcodeproj'
)
+
'.xcworkspace'
)
xcworkspace
=
File
.
join
(
root
,
File
.
basename
(
projpath
,
'.xcodeproj'
)
+
'.xcworkspace'
)
workspace
=
Xcodeproj
::
Workspace
.
new_from_xcworkspace
(
xcworkspace
)
workspace
=
Xcodeproj
::
Workspace
.
new_from_xcworkspace
(
xcworkspace
)
...
@@ -267,6 +268,10 @@ module Pod
...
@@ -267,6 +268,10 @@ module Pod
app_project
.
targets
.
each
{
|
target
|
target
.
buildPhases
<<
copy_resources
}
app_project
.
targets
.
each
{
|
target
|
target
.
buildPhases
<<
copy_resources
}
app_project
.
save_as
(
projpath
)
app_project
.
save_as
(
projpath
)
unless
config
.
silent?
puts
"[!] From now on use `
#{
File
.
basename
(
xcworkspace
)
}
' instead of `
#{
File
.
basename
(
projpath
)
}
'."
end
end
end
end
end
end
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