After adding DatePicker, set properties and compile, and then the following error message was reported.
/Users/*****/Main.storyboard:1:1: Internal error. Please file a bug at feedbackassistant.apple.com and attach “/var/folders/gm/t2l4p33d1r9gpqzscb8kdggw0000gn/T/IB-agent-diagnostics_2020-12-13_14-22-11_398000”.
Cause
Unknown.
In my case, I added DatePicker with count down timer for macCatalyst. And added a few lines of code to change properties. Then, suddenly the error came up. After removing the DatePicker control and then it was solved. I guess it would be a Xcode bug.
Solution
Clean build and rebuild did not work.
Close and reopen the project did not work.
Restart Xcode did not work.
Removed the DatePicker control and rebuild, then it worked.
U^2-Net for human portrait drawing is so cool. I’m just curious that the Style Transfer could do the similar conversion or not. Here is the evaluation result.
Train Image
I used the following partial image from the U2-Net sample image as a training style image.
Parameters
Use Case: Video
Iterations: 400
Other Parameters: Default
Result
I implemented the human portrait drawing by the Style Transfer with Create ML. Here is the result.
malloc: nano zone abandoned due to inability to preallocate reserved vm space. message is displayed when the “Thead Sanitizer” of “Diagnostic” is checked.
Solution
A default Swift Project for iPhone with no control shows this message, when the “Thead Sanitizer” of “Diagnostic” is checked.
if let url = URL(string: baseUrlStr) {
let task = URLSession.shared.dataTask(with: url) {(data, response, error) in
}
task.resume()
}
Solution
Just ignore the error.
I tested the code above within main thread and global thread, and the error message was displayed in both cases. There is no way to avaid this error at this moment.
final class Settings {
let userDefaults = UserDefaults.standard
public static let shared = Settings()
let defaults: [String : Int] = ["minute" : 4, "second" : 59]
private init() {
self.minute = userDefaults.integer(forKey: "minute")
self.second = userDefaults.integer(forKey: "second")
}
private var _interval: Int = 0
var interval: Int {
get {
return _interval
}
set {
_interval = newValue
}
}
private var _minute: Int = 0
var minute: Int {
get {
return _minute
}
set {
_minute = newValue
}
}
}
-------------------------
// 設定を初期化する
let _ = Settings.shared
minStepper.value = Double(Settings.shared.minute)