flutter/packages/flutter_tools/test/ios
Chris Bracken 379a2d5654
Push /usr/bin to front of PATH for ios-deploy runs (#19281)
ios-deploy relies on LLDB.framework, which relies on /usr/bin/python and
the 'six' module that's installed on the system. However, it appears to
use the first version of Python on PATH, rather than explicitly
specifying the system install.  If a user has a custom install of Python
(e.g., via Homebrew or MacPorts) ahead of the system Python on their
PATH, LLDB.framework will pick up that version instead. If the user
hasn't installed the 'six' module, ios-deploy will fail with a
relatively cryptic error message.

This patch pushes /usr/bin to the front of PATH for the duration of the
ios-deploy run to avoid this scenario.

This patch also removes checks for package six.

Neither Flutter nor any of its direct dependencies/tooling relies on
package six. ios-deploy depends on LLDB.framework (included with Xcode),
which relies on a Python script that imports this package but uses
whichever Python is at the front of the path. Flutter now invokes
ios-deploy with a PATH with /usr/bin forced to the front in order to
avoid this problem.

We could have retained the check out of paranoia, but this seems
unnecessary since it's entirely possible LLDB.framework may one day drop
this dependency, in which case I'd expect the base system install of
Python would likely drop it as well.
2018-07-11 17:33:06 -07:00
..
cocoapods_test.dart Add iOS module template (#18830) (#18903) 2018-06-28 14:35:00 +02:00
code_signing_test.dart Bump mockito to 3.0.0-beta (#18462) 2018-06-21 16:23:47 -07:00
devices_test.dart Support multi-line log messages on iOS devices (#17327) 2018-05-23 19:03:05 -07:00
ios_workflow_test.dart Push /usr/bin to front of PATH for ios-deploy runs (#19281) 2018-07-11 17:33:06 -07:00
mac_test.dart Fixed code sign error message width (#19026) 2018-07-11 16:51:25 -07:00
simulators_test.dart Fix type errors in iOS simulator discovery. (#18960) 2018-06-30 17:17:35 -07:00
xcodeproj_test.dart make tests in xcodeproj_test.dart and gradle_test.dart hermetic (#18093) (#18548) 2018-07-09 10:36:17 -07:00