Install the OpenSSL on Debian based systems
sudo apt-get install opensslInstallation procedure for pre-build actions to automatically populate Xcode Info.plist with dynamic data.
Edit Xcode Scheme and add a pre-action script.
Copy the contents of preaction.sh into the pre-action script box.
hdiutil attach /Applications/Install\ macOS\ Sierra\ Public\ Beta.app/Contents/SharedSupport/InstallESD.dmg -noverify -nobrowse -mountpoint /Volumes/install_apphdiutil create -o /tmp/Sierra.cdr -size 7316m -layout SPUD -fs HFS+Jhdiutil attach /tmp/Sierra.cdr.dmg -noverify -nobrowse -mountpoint /Volumes/install_buildasr restore -source /Volumes/install_app/BaseSystem.dmg -target /Volumes/install_build -noprompt -noverify -eraserm /Volumes/OS\ X\ Base\ System/System/Installation/Packagescp -rp /Volumes/install_app/Packages /Volumes/OS\ X\ Base\ System/System/Installation/cp -rp /Volumes/install_app/BaseSystem.chunklist /Volumes/OS\ X\ Base\ System/BaseSystem.chunklistKnown Issues: On High Sierra there are problems related to the screen brightness and sleep issues.
An easy to refer to document for regularly setting up macOS 10.13 High Siera, in flavor of my previous macOS/OSX setup gists:
I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. I generally reinstall each computer from scratch every 6 months, and I do not perform upgrades between releases.
The libdispatch is one of the most misused API due to the way it was presented to us when it was introduced and for many years after that, and due to the confusing documentation and API. This page is a compilation of important things to know if you're going to use this library. Many references are available at the end of this document pointing to comments from Apple's very own libdispatch maintainer (Pierre Habouzit).
My take-aways are:
You should create very few, long-lived, well-defined queues. These queues should be seen as execution contexts in your program (gui, background work, ...) that benefit from executing in parallel. An important thing to note is that if these queues are all active at once, you will get as many threads running. In most apps, you probably do not need to create more than 3 or 4 queues.
Go serial first, and as you find performance bottle necks, measure why, and if concurrency helps, apply with care, always validating under system pressure. Reuse
| /// `ObjectBinding` used as a way to create a `Binding` from a `BindableObject`. In this case the ViewModel | |
| /// complies with `BindableObject` which is then translated into a `Binding` which is what `Toggle` is expecting | |
| /// NOTE: Since it's a `DynamicViewProperty`, after its value is changed, the body will be updated. | |
| class ViewModel: BindableObject { | |
| let didChange = PassthroughSubject<ViewModel, Never>() | |
| var isEnabled = false { | |
| didSet { | |
| didChange.send(self) |