mirror of
				https://github.com/ohmyzsh/ohmyzsh.git
				synced 2024-05-11 05:55:17 +00:00 
			
		
		
		
	Merge pull request #3224 from Neal/xcode-simulator-fix
Update path for the iOS simulator.
This commit is contained in:
		@@ -16,4 +16,9 @@ function xcsel {
 | 
			
		||||
 | 
			
		||||
alias xcb='xcodebuild'
 | 
			
		||||
alias xcp='xcode-select --print-path'
 | 
			
		||||
alias simulator='open $(xcode-select  -p)/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app'
 | 
			
		||||
 | 
			
		||||
if [[ -d $(xcode-select -p)/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app ]]; then
 | 
			
		||||
  alias simulator='open $(xcode-select -p)/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app'
 | 
			
		||||
else
 | 
			
		||||
  alias simulator='open $(xcode-select -p)/Applications/iOS\ Simulator.app'
 | 
			
		||||
fi
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user