Author: Chris Lattner
This file contains hidden or 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
func visionOSModelIdentifier() -> String { | |
if let identifier = ProcessInfo().environment["SIMULATOR_MODEL_IDENTIFIER"] { | |
return identifier | |
} else { | |
var systemInfo = utsname() | |
uname(&systemInfo) | |
let machine = Mirror(reflecting: systemInfo.machine) | |
return machine.children | |
.compactMap({ $0.value as? Int8 }) |
This file contains hidden or 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
// | |
// AmazonProduct.swift | |
// Requires SHXMLParser for parsing Amazon's XML responses (https://github.com/simhanature/SHXMLParser) | |
// | |
// Created by Cory Alder on 2015-01-11. | |
// Copyright (c) 2015 Davander Mobile Corporation. All rights reserved. | |
// | |
// partly inspired by RWMAmazonProductAdvertisingManager | |
import Alamofire |
This file contains hidden or 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
i386 : iPhone Simulator | |
x86_64 : iPhone Simulator | |
arm64 : iPhone Simulator | |
iPhone1,1 : iPhone | |
iPhone1,2 : iPhone 3G | |
iPhone2,1 : iPhone 3GS | |
iPhone3,1 : iPhone 4 | |
iPhone3,2 : iPhone 4 GSM Rev A | |
iPhone3,3 : iPhone 4 CDMA | |
iPhone4,1 : iPhone 4S |