-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
--- | ||
title: 'How to delete or check iOS simulator' | ||
tags: ['trouble-shooting', 'ios', 'simulator'] | ||
date: 2023-05-16T18:38 | ||
--- | ||
|
||
## Check the installed list | ||
|
||
```bash | ||
xcrun simctl list devices | ||
``` | ||
|
||
## Delete the installed simulator | ||
|
||
### 유효하지 않은 시뮬레이터 디바이스 삭제하기 | ||
|
||
```bash | ||
xcrun simctl delete unavailable | ||
``` | ||
|
||
### 특정 시뮬레이터 디바이스 삭제하기 | ||
|
||
```bash | ||
xcrun simctl delete 디바이스코드 | ||
``` | ||
|
||
예시) | ||
|
||
```bash | ||
# check the installed list | ||
❯ xcrun simctl list devices | ||
== Devices == | ||
-- iOS 16.4 -- | ||
iPhone 14 Pro (3DF66D25-6A7A-4AE9-BA57-968BE69B7B05) (Shutdown) | ||
iPhone 14 Pro Max (45554A3F-0F2C-427C-9DE7-12F8EFF2C0A6) (Shutdown) | ||
iPad Air (5th generation) (60EB117D-7F5B-4A52-8E81-C06B01857370) (Shutdown) | ||
|
||
# delete | ||
❯ xcrun simctl delete 60EB117D-7F5B-4A52-8E81-C06B01857370 | ||
|
||
# check again | ||
❯ xcrun simctl list devices | ||
== Devices == | ||
-- iOS 16.4 -- | ||
iPhone 14 Pro (3DF66D25-6A7A-4AE9-BA57-968BE69B7B05) (Shutdown) | ||
iPhone 14 Pro Max (45554A3F-0F2C-427C-9DE7-12F8EFF2C0A6) (Shutdown) | ||
``` |
22 changes: 22 additions & 0 deletions
22
apps/doc/blog/trouble-shootings/2023/2023-05-16-ios-web-inspector.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
title: 'Can not display inspector via iOS Simulator' | ||
tags: ['trouble-shooting', 'ios', 'web-inspector'] | ||
date: 2023-05-16T18:38 | ||
--- | ||
|
||
## What happened ...😱 | ||
|
||
iOS 시뮬레이터를 이용하여 Native App에서 동작하는 Webview를 Safari에서 web inspector를 이용하여 확인을 하려고 하는데, | ||
해당 web 주소가 도통 확인이 되지 않았다... | ||
|
||
## Why happened ...🥲 | ||
|
||
해당 문제를 해결하기 위해 검색하다가 발견한 다음의 글을 통해 원인을 알게 되었다. | ||
|
||
- https://stackoverflow.com/questions/75975485/safari-web-inspector-stopped-working-on-latest-ios-for-webkit-apps | ||
|
||
iOS 16.4 버전 이상에서 [`isInspectable`](https://developer.apple.com/documentation/webkit/wkwebview/4111163-isinspectable) 속성이 추가되었음. | ||
해당 속성의 기본 값은 `false` 이므로 **WKWebView**를 이용하여 native App에서 열린 webview를 safari를 통하여 디버깅하기 위해서는 해당 속성을 `true`로 설정해주어야한다. | ||
|
||
내 경우는 native app을 수정할 수 없어서, iOS 시뮬레이터 버전을 16.3 이하로 설치해서 문제를 해결하였다. | ||
대신, native에서 수정해주기 전에는 최신의 iOS에서 테스트가 필요할 때....난감하겠지만.... |