alias xcbuild=$(xcode-select -p)/../SharedFrameworks/XCBuild.framework/Versions/A/Support/xcbuild
# THIS DOESNT WORK YET: xcbuild openIDEConsole # … then switch to Xcode ➡️
xcbuild showSpecs
xcbuild build <foo.pif> [—target <target>]
diff --git a/src/main/java/com/google/devtools/build/lib/rules/apple/ApplePlatform.java b/src/main/java/com/google/devtools/build/lib/rules/apple/ApplePlatform.java | |
index 7759984b03..6f41eca83b 100644 | |
--- a/src/main/java/com/google/devtools/build/lib/rules/apple/ApplePlatform.java | |
+++ b/src/main/java/com/google/devtools/build/lib/rules/apple/ApplePlatform.java | |
@@ -42,7 +42,7 @@ public enum ApplePlatform implements ApplePlatformApi { | |
CATALYST("catalyst", "MacOSX", PlatformType.CATALYST, true); | |
private static final ImmutableSet<String> IOS_SIMULATOR_TARGET_CPUS = | |
- ImmutableSet.of("ios_x86_64", "ios_i386"); | |
+ ImmutableSet.of("ios_x86_64", "ios_i386", "ios_sim_arm64"); |
import SwiftUI | |
import PlaygroundSupport | |
// constants | |
let cardWidth: CGFloat = 343 | |
let cardHeight: CGFloat = 212 | |
let spacing = 36 | |
let animation = Animation.spring() | |
let cardColors = [ | |
Color(UIColor.systemRed), |
#!/usr/bin/env bash | |
set -e | |
VOLUME_PATH=/Volumes/installer | |
while getopts ":d:h" opts; do | |
case $opts in | |
d) | |
VOLUME_PATH=$OPTARG | |
;; |
This is a curated list of iOS (Swift & ObjC) frameworks which are inspired by React and Elm.
- ReactSwift by @ColinEberhardt
- https://github.com/ColinEberhardt/ReactSwift
FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.
- By Edmond Lau
- Highly Recommended 👍
- http://www.theeffectiveengineer.com/
Many Cocoa and Cocoa Touch calls are boilerplate. They use common argument values with nearly every call. Why not take advantage of Swift's default system instead? We'd like to simplify calls like this:
dismissViewControllerAnimated(flag: true, completion: nil)
to calls like this:
- Have an AWS Account
- Spin up an EC2 Instance of Ubuntu Server and Make sure that your instance's security groups allow incoming connections on TCP ports 22 and 3000
- Use an Elastic IP to bind your Instance to it --- You would not be paying for this -- Till the time the EC2 Instance is running
- Add the IP Allocated to your A Record --- with your registrar
- Have a SSH Connection to your EC2 Instance with the Key Pairs
- Connect to the EC2 Instance
import Cocoa | |
import MASShortcut | |
func pow() { | |
let rect = NSScreen.mainScreen()?.frame | |
let window = NSWindow(contentRect: rect!, styleMask: NSBorderlessWindowMask, backing: .Buffered, `defer`: false) | |
window.backgroundColor = NSColor.clearColor() | |
window.opaque = false | |
window.alphaValue = 1 | |
window.makeKeyAndOrderFront(NSApplication.sharedApplication()) |
extension NSCharacterSet { | |
var characters:[String] { | |
var chars = [String]() | |
for plane:UInt8 in 0...16 { | |
if self.hasMemberInPlane(plane) { | |
for (var c:UTF32Char = UInt32(plane) << 16; c < (UInt32(plane) + 1) << 16; c += 1) { | |
if self.longCharacterIsMember(c) { | |
let s = NSString(bytes: &c, length: 4, encoding: NSUTF32LittleEndianStringEncoding)! | |
chars.append(String(s)) | |
} |