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
791a51f2
Commit
791a51f2
authored
Jul 07, 2016
by
Samuel Giddins
Committed by
GitHub
Jul 07, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5595 from webmaster128/fix-shellscript
Fix shellscript in '
📦
Check Pods Manifest.lock'
parents
94b8528a
1b1f03df
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
8 deletions
+10
-8
CHANGELOG.md
CHANGELOG.md
+4
-0
target_integrator.rb
...ds/installer/user_project_integrator/target_integrator.rb
+3
-4
target_integrator_spec.rb
...staller/user_project_integrator/target_integrator_spec.rb
+3
-4
No files found.
CHANGELOG.md
View file @
791a51f2
...
@@ -91,6 +91,10 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
...
@@ -91,6 +91,10 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
[
Daniel Tomlinson
](
https://github.com/dantoml
)
[
Daniel Tomlinson
](
https://github.com/dantoml
)
[
#4014
](
https://github.com/CocoaPods/CocoaPods/issues/4014
)
[
#4014
](
https://github.com/CocoaPods/CocoaPods/issues/4014
)
*
Update script '📦 Check Pods Manifest.lock': Write error message to STDERR; make POSIX compatible
[
Simon Warta
](
https://github.com/webmaster128
)
[
#5595
](
https://github.com/CocoaPods/CocoaPods/pull/5595
)
## 1.0.1 (2016-06-02)
## 1.0.1 (2016-06-02)
##### Enhancements
##### Enhancements
...
...
lib/cocoapods/installer/user_project_integrator/target_integrator.rb
View file @
791a51f2
...
@@ -175,10 +175,9 @@ module Pod
...
@@ -175,10 +175,9 @@ module Pod
native_target
.
build_phases
.
unshift
(
phase
).
uniq!
unless
native_target
.
build_phases
.
first
==
phase
native_target
.
build_phases
.
unshift
(
phase
).
uniq!
unless
native_target
.
build_phases
.
first
==
phase
phase
.
shell_script
=
<<-
SH
.
strip_heredoc
phase
.
shell_script
=
<<-
SH
.
strip_heredoc
diff "${PODS_ROOT}/../Podfile.lock" "${PODS_ROOT}/Manifest.lock" > /dev/null
diff "${PODS_ROOT}/../Podfile.lock" "${PODS_ROOT}/Manifest.lock" > /dev/null
if [[ $? != 0 ]] ; then
if [ $? != 0 ] ; then
cat << EOM
# print error to STDERR
error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.
echo "error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation." >&2
EOM
exit 1
exit 1
fi
fi
SH
SH
...
...
spec/unit/installer/user_project_integrator/target_integrator_spec.rb
View file @
791a51f2
...
@@ -96,10 +96,9 @@ module Pod
...
@@ -96,10 +96,9 @@ module Pod
phase
=
target
.
shell_script_build_phases
.
find
{
|
bp
|
bp
.
name
==
phase_name
}
phase
=
target
.
shell_script_build_phases
.
find
{
|
bp
|
bp
.
name
==
phase_name
}
phase
.
shell_script
.
should
==
<<-
EOS
.
strip_heredoc
phase
.
shell_script
.
should
==
<<-
EOS
.
strip_heredoc
diff "${PODS_ROOT}/../Podfile.lock" "${PODS_ROOT}/Manifest.lock" > /dev/null
diff "${PODS_ROOT}/../Podfile.lock" "${PODS_ROOT}/Manifest.lock" > /dev/null
if [[ $? != 0 ]] ; then
if [ $? != 0 ] ; then
cat << EOM
# print error to STDERR
error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.
echo "error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation." >&2
EOM
exit 1
exit 1
fi
fi
EOS
EOS
...
...
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