| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 35 | public function execute(ChainContext $context) |
||
| 36 | { |
||
| 37 | try { |
||
| 38 | $this->process->execute($context); |
||
| 39 | } catch (ProcessFailedException $e) { |
||
| 40 | $processOutput = $e->getProcess()->getOutput(); |
||
| 41 | if (strpos($processOutput, 'Agreeing to the Xcode/iOS license requires admin privileges, please re-run') !== false) { |
||
| 42 | $this->userInteraction->writeTitle('You need to agree Xcode license.'); |
||
| 43 | $this->userInteraction->write('Run `xcode-select --install` to fix the problem and run this command again.'); |
||
| 44 | |||
| 45 | throw $e; |
||
| 46 | } |
||
| 47 | } |
||
| 48 | } |
||
| 49 | } |
||
| 50 |