「IPhone Xcode」の版間の差分
ナビゲーションに移動
検索に移動
(同じ利用者による、間の6版が非表示) | |||
1行目: | 1行目: | ||
− | + | | [[Objective-C]] | [[Mac]] | [[Xcode]] | [[Swift]] | | |
− | [[Objective-C][Mac]] | + | ==[[iPhone Xcode]]== |
− | *iPhone Xcode 基本 | + | |
+ | *[[iPhone Xcode 基本]] | ||
+ | |||
+ | ==シミュレーター== | ||
+ | ===ドキュメントパス([[Mac]]上)=== | ||
+ | <pre> | ||
+ | let documentDirPath = NSSearchPathForDirectoriesInDomains(FileManager.SearchPathDirectory.documentDirectory, FileManager.SearchPathDomainMask.userDomainMask, true) | ||
+ | print("Simulator document location \(documentDirPath)") | ||
+ | </pre> | ||
+ | ===管理ツール=== | ||
+ | *simctl | ||
+ | <pre> | ||
+ | $ xcrun simctl list | ||
+ | == Device Types == | ||
+ | : | ||
+ | iPhone 13 (com.apple.CoreSimulator.SimDeviceType.iPhone-13) | ||
+ | iPhone SE (3rd generation) (com.apple.CoreSimulator.SimDeviceType.iPhone-SE-3rd-generation) | ||
+ | : | ||
+ | iPad Air (5th generation) (com.apple.CoreSimulator.SimDeviceType.iPad-Air-5th-generation) | ||
+ | iPad mini (6th generation) (com.apple.CoreSimulator.SimDeviceType.iPad-mini-6th-generation) | ||
+ | : | ||
+ | Apple TV 4K (at 1080p) (2nd generation) (com.apple.CoreSimulator.SimDeviceType.Apple-TV-4K-2nd-generation-1080p) | ||
+ | : | ||
+ | Apple Watch Series 7 - 45mm (com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-7-45mm) | ||
+ | == Runtimes == | ||
+ | iOS 15.4 (15.4 - 19E240) - com.apple.CoreSimulator.SimRuntime.iOS-15-4 | ||
+ | tvOS 15.4 (15.4 - 19L439) - com.apple.CoreSimulator.SimRuntime.tvOS-15-4 | ||
+ | watchOS 8.5 (8.5 - 19T241) - com.apple.CoreSimulator.SimRuntime.watchOS-8-5 | ||
+ | == Devices == | ||
+ | -- iOS 15.4 -- | ||
+ | : | ||
+ | iPhone 13 (423F7270-67EF-4757-B5F4-BDEC53852F69) (Shutdown) | ||
+ | iPhone SE (3rd generation) (7A5C4431-2A6E-4ABD-856E-EBEC49AE5E65) (Shutdown) | ||
+ | : | ||
+ | -- tvOS 15.4 -- | ||
+ | : | ||
+ | Apple TV 4K (at 1080p) (2nd generation) (D6D06620-1ECC-4C69-A425-2BA6DE536322) (Shutdown) | ||
+ | -- watchOS 8.5 -- | ||
+ | : | ||
+ | Apple Watch Series 7 - 45mm (C0A343AC-25A9-4AAA-BD20-181FFB48A454) (Shutdown) | ||
+ | -- Unavailable: com.apple.CoreSimulator.SimRuntime.iOS-14-0 -- | ||
+ | : | ||
+ | iPad Air (4th generation) (EB54D929-BC59-4A2D-B5F6-C6F9F4436E68) (Shutdown) (unavailable, runtime profile not found) | ||
+ | -- Unavailable: com.apple.CoreSimulator.SimRuntime.iOS-14-1 -- | ||
+ | : | ||
+ | == Device Pairs == | ||
+ | : | ||
+ | 9AA8FA98-C44C-4C05-B3BC-A0B61DA3A615 (unavailable) | ||
+ | Watch: Apple Watch Series 7 - 41mm (098BB6C9-818C-453F-B138-059D56050394) (Shutdown) | ||
+ | Phone: iPhone 13 mini (8A58627E-7A9F-466E-888D-F6437ABB2140) (Shutdown) | ||
+ | 79F9881A-91FB-455B-A191-95B21047C383 (unavailable) | ||
+ | Watch: Apple Watch Series 7 - 45mm (3FD974A9-E2B0-4F23-9E3A-03CEADB29843) (Shutdown) | ||
+ | Phone: iPhone 13 (35E8F225-98D8-4E0E-BA83-44C58F68EA94) (Shutdown) | ||
+ | </pre> |
2022年5月15日 (日) 01:25時点における最新版
| Objective-C | Mac | Xcode | Swift |
iPhone Xcode
シミュレーター
ドキュメントパス(Mac上)
let documentDirPath = NSSearchPathForDirectoriesInDomains(FileManager.SearchPathDirectory.documentDirectory, FileManager.SearchPathDomainMask.userDomainMask, true) print("Simulator document location \(documentDirPath)")
管理ツール
- simctl
$ xcrun simctl list == Device Types == : iPhone 13 (com.apple.CoreSimulator.SimDeviceType.iPhone-13) iPhone SE (3rd generation) (com.apple.CoreSimulator.SimDeviceType.iPhone-SE-3rd-generation) : iPad Air (5th generation) (com.apple.CoreSimulator.SimDeviceType.iPad-Air-5th-generation) iPad mini (6th generation) (com.apple.CoreSimulator.SimDeviceType.iPad-mini-6th-generation) : Apple TV 4K (at 1080p) (2nd generation) (com.apple.CoreSimulator.SimDeviceType.Apple-TV-4K-2nd-generation-1080p) : Apple Watch Series 7 - 45mm (com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-7-45mm) == Runtimes == iOS 15.4 (15.4 - 19E240) - com.apple.CoreSimulator.SimRuntime.iOS-15-4 tvOS 15.4 (15.4 - 19L439) - com.apple.CoreSimulator.SimRuntime.tvOS-15-4 watchOS 8.5 (8.5 - 19T241) - com.apple.CoreSimulator.SimRuntime.watchOS-8-5 == Devices == -- iOS 15.4 -- : iPhone 13 (423F7270-67EF-4757-B5F4-BDEC53852F69) (Shutdown) iPhone SE (3rd generation) (7A5C4431-2A6E-4ABD-856E-EBEC49AE5E65) (Shutdown) : -- tvOS 15.4 -- : Apple TV 4K (at 1080p) (2nd generation) (D6D06620-1ECC-4C69-A425-2BA6DE536322) (Shutdown) -- watchOS 8.5 -- : Apple Watch Series 7 - 45mm (C0A343AC-25A9-4AAA-BD20-181FFB48A454) (Shutdown) -- Unavailable: com.apple.CoreSimulator.SimRuntime.iOS-14-0 -- : iPad Air (4th generation) (EB54D929-BC59-4A2D-B5F6-C6F9F4436E68) (Shutdown) (unavailable, runtime profile not found) -- Unavailable: com.apple.CoreSimulator.SimRuntime.iOS-14-1 -- : == Device Pairs == : 9AA8FA98-C44C-4C05-B3BC-A0B61DA3A615 (unavailable) Watch: Apple Watch Series 7 - 41mm (098BB6C9-818C-453F-B138-059D56050394) (Shutdown) Phone: iPhone 13 mini (8A58627E-7A9F-466E-888D-F6437ABB2140) (Shutdown) 79F9881A-91FB-455B-A191-95B21047C383 (unavailable) Watch: Apple Watch Series 7 - 45mm (3FD974A9-E2B0-4F23-9E3A-03CEADB29843) (Shutdown) Phone: iPhone 13 (35E8F225-98D8-4E0E-BA83-44C58F68EA94) (Shutdown)
© 2006 矢木浩人