아이폰 시뮬레이터 위치
내 컴퓨터 어디에 iPhone 시뮬레이터가 설치되어 있습니까?
시뮬레이터에서 실행하는 테스트 응용 프로그램이 저장된 위치를 찾으려고했습니다.
모의 실험 장치: ~/Library/Application Support/iPhone Simulator/
Mac OS X의 해당 디렉토리에서 시뮬레이터 파일을 찾아 볼 수 있습니다.
Xcode 4.4 업데이트 : iPhone 시뮬레이터는 여전히 같은 위치에 있지만 Apple은 다음 위치에 iPhone Simulator에 대한 바로 가기를 포함했습니다.
/Applications/Xcode.app/Contents/Applications
Xcode 4.3.1 이후의 변경 사항
새로운 버전의 Xcode는 이제 Mac App Store 에서 사용할 수 있습니다 . 따라서 설치 프로그램과 함께 제공되었던 모든 항목이 이제 패키지로 제공됩니다 Xcode.app
.
따라서 iOS 시뮬레이터 바이너리는 다음 위치에 있습니다.
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/
시뮬레이터에 설치된 다른 구성 파일과 함께 설치된 앱은 다음과 같습니다.
~/Library/Application Support/iPhone Simulator/
다음은 Xcode 4.3.1 의 현재 릴리스 노트에서 발췌 한 것입니다.
Xcode 4.3.1의 새로운 기능
Xcode는 이제 설치 프로그램이 아닌 응용 프로그램으로 배포됩니다. 이 변경으로 Xcode를 Mac App Store에서 직접 업데이트 할 수 있습니다.
Xcode 6 및 iOS 8부터는 다음에서 찾을 수 있습니다.
~/Library/Developer/CoreSimulator/Devices/{cryptic number}/data/Containers/Data/Application/{cryptic number}/
또는 아래 코드 실행에서 얻을 수 있습니다.
NSLog(@"Documents Directory: %@", [[[NSFileManager defaultManager] URLsForDirectory:NSDocumentDirectory inDomains:NSUserDomainMask] lastObject]);
Xcode 6- >/Users/{YOUR NAME}/Library/Developer/CoreSimulator/Devices/{DEVICE ID}/data/Containers/Data/Application/{APPLICATION ID}/
또는 Xcode 콘솔에서 인쇄하십시오.
#if TARGET_IPHONE_SIMULATOR
NSLog(@"Documents Directory: %@", [[[NSFileManager defaultManager] URLsForDirectory:NSDocumentDirectory inDomains:NSUserDomainMask] lastObject]);
#endif
실제 시뮬레이터 응용 프로그램 자체 는 /Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone Simulator에 있습니다.
시뮬레이터에서 애플리케이션의 최신 설치를 찾으려면 다음 명령을 사용할 수 있습니다.
find "/Users/$USER/Library/Application Support/iPhone Simulator" -type d -name 'YourAppName.app' -print0 | xargs -0 ls -td | head -1
YourAppName을 앱 이름으로 바꾸는 것을 잊지 마십시오!
Xcode 6에서 iOS Simulator.app는 다음 위치에 있습니다.
/Applications/Xcode.app/Contents/Developer/Applications/iOS Simulator.app
Xcode 6에 CoreSimulator가 도입되면서 각 시뮬레이트 된 장치에는 자체 데이터가 있습니다. 이전 버전에서는 모든 기기에서 각 버전의 iOS에 대해 동일한 데이터를 공유했습니다.
장치는 ~ / Library / Developer / CoreSimulator / Devices에 있습니다. 로그는 ~ / Library / Logs / CoreSimulator에 있습니다.
~ / Library / Developer / CoreSimulator / Devices // data / Library / Logs는 ~ / Library / Logs / CoreSimulator /에 대한 심볼릭 링크입니다.
CoreSimualtor는 최초 사용시 (및 이전 시뮬레이터 런타임 설치 후) 초기 장치 세트를 생성합니다. 'xcrun simctl create'또는 'xcrun simctl delete'를 사용하여 Xcode.app 내에서 또는 명령 줄에서 새 장치를 추가하거나 삭제할 수 있습니다.
X-Code 4.2
에서 iPhone 시뮬레이터의 사진은
/Users/user_name/Library/Application Support/iPhone Simulator/5.0/Media/DCIM/100APPLE
As of 4.3.2 of Xcode for Lion, the iOS simulator is located in the contents of the app package... If you right click on xcode.app and click "Show package contents" then navigate to Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications there you will find the iOS Simulator app... Just drag it to your dock and there you go... Or you can make an Alias and drag that to your desktop (or wherever you want) for easy access to the simulator... Why Apple decided to bury it in the package, I have no clue.
On El Capitan and Xcode 7.2 and 7.3 I found the Simulators here: /Applications/Xcode.app/Contents/Developer/Applications/
- Simulator
- Simulator (Watch)
The top answer is correct for location of the simulator app. But there is a secondary location where the example apps (and your app builds) are stored for the simulator to access. This is:
~/Library/Developer/CoreSimulator/Devices
Each subdir is a device ID. You can find where your app is by looking in each of these dirs at data/Containers/Bundle/Application/{app_id}
For xcode 7, you'll find it at here
/Users/{USERNAME}/Library/Developer/CoreSimulator/Devices/{CRIPTIC NUMBER}/data/Containers/Data/Application/{CRIPTIC NUMBER}/Documents/
or execute the code below in your xcode project
Objective C
NSLog(@"Documents Directory: %@", [[[NSFileManager defaultManager] URLsForDirectory:NSDocumentDirectory inDomains:NSUserDomainMask] lastObject]);
Swift
print(applicationDocumentsDirectory.path)
From xCode 8.0 the simulator .app is located in
/Applications/Xcode.app/Contents/Developer/Applications
I found the easiest way to find it programmatically. Run the app and put NSLog() for [NSBundle MainBundle], it will show you the whole path of the app running in simulator.
A super simple and sexy way is to use Apple Script:
property findtype : quoted form of "kMDItemContentType = \"com.apple.application-bundle\""
set simulatorFolder to POSIX path of (path to application support folder from user domain) & "iPhone Simulator/"
set appFiles to paragraphs of (do shell script "mdfind -onlyin " & quoted form of simulatorFolder & " " & findtype)
if appFiles is not {} then
set mostRecentApp to item 1 of appFiles
tell application "Finder" to reveal ((POSIX file mostRecentApp) as alias)
tell application "Finder" to activate
end if
Paste this into Apple Script Editor and export it as a Mac app. Then you can just run the app whenever you need a Finder window open in the sandbox. The code is courtesy StefanK at MacScripter.
It took me a while, but I just found mine at /Applications/Xcode.app/Contents/Developer/Applications/iOS\ Simulator.app
참고URL : https://stackoverflow.com/questions/1567798/iphone-simulator-location
'IT박스' 카테고리의 다른 글
날짜-시간 C #에서 시간 만 가져 오는 방법 (0) | 2020.07.13 |
---|---|
파이썬에서 제곱근을 어떻게 계산합니까? (0) | 2020.07.13 |
NPM 모듈은 sudo없이 전체적으로 설치되지 않습니다 (0) | 2020.07.13 |
Spring MVC에서 응답 컨텐츠 유형을 설정하는 사람 (@ResponseBody) (0) | 2020.07.13 |
ngrok이 React dev 서버에 연결하려고 할 때 잘못된 호스트 헤더 (0) | 2020.07.13 |