본문 바로가기
카테고리 없음

VS Code에서 Remote-SSH로 맥에 연결한 상태면, 터미널에서 바로 맥 명령어 실행

by RPoint 2025. 11. 2.

VS Code에서 Remote-SSH로 맥에 연결한 상태면, 터미널에서 바로 맥 명령어 실행 가능합니다.

예를 들어:

 
open -a Simulator
  • iOS 시뮬레이터 실행
 
xcodebuild -workspace YourWorkspace.xcworkspace -scheme YourScheme -destination 'platform=iOS Simulator,name=iPhone 14,OS=latest' clean build test
  • 앱 빌드 후 유닛 테스트 실행
 
xcrun simctl install booted /path/to/your/app.app xcrun simctl launch booted com.yourcompany.yourapp
  • 시뮬레이터에 앱 설치 및 실행

팁

  • VS Code 터미널은 실제 맥 터미널과 같으니 명령어 그대로 써서 빌드/실행 가능
  • xcodebuild 옵션과 simctl 명령어는 필요에 따라 조정하세요

댓글