- Open Xcode -> Preferences -> Components.
- Open the Console App, clear the console.
- Go back to the Xcode preferences. Start the simulator download, then cancel it.
- Now in the Console, you will see something about the cancellation with the download URL.
- Copy the URL from the Console, download it.
- Copy this file to ~/Library/Caches/com.apple.dt.Xcode/Downloads.
- If
Downloads
did not exist, create a newDownloads
directory. - If
Downloads
exists, remove all*.dvtdownloadableindex
files under it.
- If
- Open Xcode -> Preferences -> Components, start the simulator download again, it should find the file you downloaded and install it.
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
func UIImageToDataIO(image: UIImage, compressionRatio: CGFloat, orientation: Int = 1) -> Data? { | |
return autoreleasepool(invoking: { () -> Data in | |
let data = NSMutableData() | |
let options: NSDictionary = [ | |
kCGImagePropertyOrientation: orientation, | |
kCGImagePropertyHasAlpha: true, | |
kCGImageDestinationLossyCompressionQuality: compressionRatio | |
] | |
let imageDestinationRef = CGImageDestinationCreateWithData(data as CFMutableData, kUTTypeJPEG, 1, nil)! |
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
struct Form: Codable, Equatable { | |
let id: Int | |
let type: FType | |
let name: String | |
let code: String | |
let hasScreenshot: Bool | |
let total: Int | |
let totalUnique: Int | |
let opened: Int | |
@SomeKindOfBool var active: Bool |
OlderNewer