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
116120f7
Commit
116120f7
authored
May 19, 2013
by
Eloy Durán
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Sandbox] Try to make an educated guess as to where the MacPorts prefix is.
parent
62101a60
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
CHANGELOG.md
CHANGELOG.md
+2
-6
sandbox-pod
bin/sandbox-pod
+5
-1
No files found.
CHANGELOG.md
View file @
116120f7
...
...
@@ -32,12 +32,8 @@ To install or update CocoaPods see this [guide](http://docs.cocoapods.org/guides
yet which process causes this, but there shouldn’t be a need for any process
to read data from the root path anyways._
**NOTE 2**
: _If you’re using a package manager other than Homebrew, please
submit a pull-request that adds the prefix of that manager
[
here
](
https://github.com/CocoaPods/CocoaPods/blob/master/bin/sandbox-pod#L40
)
._
**NOTE 3**
: _At the moment the sandbox is not compatible with the
`:path`
option
when referencing Pods which are not stored within the directory of the Podfile._
**NOTE 2**
: _At the moment the sandbox is not compatible with the
`:path`
option
when referencing Pods that are not stored within the directory of the Podfile._
*
The naked
`pod`
command now defaults to
`pod install`
.
[
#958
](
https://github.com/CocoaPods/CocoaPods/issues/958
)
...
...
bin/sandbox-pod
View file @
116120f7
...
...
@@ -37,7 +37,11 @@ ruby_prefix = RbConfig::CONFIG['prefix']
prefixes
=
[
'/bin'
,
'/usr/bin'
,
'/usr/libexec'
]
prefixes
<<
`brew --prefix`
.
strip
unless
`which brew`
.
strip
.
empty?
# TODO add MacPorts. More?
# From asking people, it seems MacPorts does not have a `prefix` command, like
# Homebrew does, so make an educated guess:
unless
(
port
=
`which port`
.
strip
).
empty?
prefixes
<<
File
.
dirname
(
File
.
dirname
(
port
))
end
developer_prefix
=
`xcode-select --print-path`
.
strip
xcode_app_path
=
File
.
expand_path
(
'../..'
,
developer_prefix
)
...
...
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