Convert mac-os-el-capitan-pkg-to-iso.sh from using hdiutil and asr to using Linux utilities.
Important: You will need about 30GB of free disk space.
| %hook TFSKeychain | |
| - (NSString *)providerDefaultAccessGroup { | |
| NSDictionary *query = [NSDictionary dictionaryWithObjectsAndKeys: | |
| (__bridge NSString *)kSecClassGenericPassword, (__bridge NSString *)kSecClass, | |
| @"bundleSeedID", kSecAttrAccount, | |
| @"", kSecAttrService, | |
| (id)kCFBooleanTrue, kSecReturnAttributes, | |
| nil]; | |
| CFDictionaryRef result = nil; | |
| OSStatus status = SecItemCopyMatching((__bridge CFDictionaryRef)query, (CFTypeRef *)&result); |
| // TODO: setting window transforms (or mission control) flattens layers... | |
| // TODO: Mask image vs path (layer)? | |
| /// `NSVisualEffectView`: | |
| /// | |
| /// A view that adds translucency and vibrancy effects to the views in your interface. | |
| /// When you want views to be more prominent in your interface, place them in a | |
| /// backdrop view. The backdrop view is partially transparent, allowing some of | |
| /// the underlying content to show through. Typically, you use a backdrop view | |
| /// to blur background content, instead of obscuring it completely. It can also |
| # see rkengler.com for related blog post | |
| # https://www.rkengler.com/how-to-capture-network-traffic-when-scraping-with-selenium-and-python/ | |
| import json | |
| import pprint | |
| from selenium import webdriver | |
| from selenium.webdriver.common.desired_capabilities import DesiredCapabilities | |
| capabilities = DesiredCapabilities.CHROME |
| // Run any SwiftUI view as a Mac app. | |
| import Cocoa | |
| import SwiftUI | |
| NSApplication.shared.run { | |
| VStack { | |
| Text("Hello, World") | |
| .padding() | |
| .background(Capsule().fill(Color.blue)) |
| pragma solidity 0.6.4; | |
| import "./Context.sol"; | |
| import "./IERC20.sol"; | |
| import "./SafeMath.sol"; | |
| import "./Ownable.sol"; | |
| /** | |
| * @dev Implementation of the {IERC20} interface. | |
| * |
Convert mac-os-el-capitan-pkg-to-iso.sh from using hdiutil and asr to using Linux utilities.
Important: You will need about 30GB of free disk space.
| PRODUCT_NAME := Foo | |
| SCHEME_NAME := ${PRODUCT_NAME} | |
| WORKSPACE_NAME := ${PRODUCT_NAME}.xcworkspace | |
| UI_TESTS_TARGET_NAME := ${PRODUCT_NAME}UITests | |
| TEST_SDK := iphonesimulator | |
| TEST_CONFIGURATION := Debug | |
| TEST_PLATFORM := iOS Simulator | |
| TEST_DEVICE ?= iPhone 11 Pro Max | |
| TEST_OS ?= 13.3 |
You can't use bridging headers within a framework.
Xcode will automatically create umbrella header for you Cocoa Framework project. That will be the file named <FrameworkName>.h in the <FrameworkName> group/folder (where the rest of your sources are).
Public: select it in the project explorer (left pane) and change the property Target Membership (left—Inspectors—pane) from Project to Public.<FrameworkName>.h) and import the required header as:I think most of us realize that macOS isn't a Linux OS, but what that also means is that instead of shipping with the GNU flavor of command line tools, it ships with the FreeBSD flavor. As such, writing shell scripts which can work across both platforms can sometimes be challenging.
Homebrew can be used to install the GNU versions of tools onto your Mac, but they are all prefixed with "g" by default.
All commands have been installed with the prefix "g". If you need to use these commands with their normal names, you can add a "gnubin" directory to your PATH from your bashrc.
| [alias] | |
| ## | |
| # One letter alias for our most frequent commands. | |
| # | |
| # Guidelines: these aliases do not use options, because we want | |
| # these aliases to be easy to compose and use in many ways. | |
| ## | |
| a = add |