Tested on macOS Sonoma Developer beta 2 (23A5276g)
- Download openssh-portable source code, install
libcrypto
,libfido2
; - Configure openssh-portable build system by
./configure # [options]
.
extension View { | |
/// Adds a double click handler this view (macOS only) | |
/// | |
/// Example | |
/// ``` | |
/// Text("Hello") | |
/// .onDoubleClick { print("Double click detected") } | |
/// ``` | |
/// - Parameters: | |
/// - handler: Block invoked when a double click is detected |
Since monterey update does not allow us to use Xcode previous than 13, let's show how to "install previous SDKs"
Swift toolchains, from https://swift.org/download/
Previous Xcode.xip, from the https://developer.apple.com
/** | |
* @author github.com/luncliff ([email protected]) | |
* @brief Personal experiment with libdispatch in Apple platform. | |
* | |
* @note clang++ -std=c++2a -stdlib=libc++ -fcoroutines-ts | |
* @see https://developer.apple.com/library/archive/documentation/General/Conceptual/ConcurrencyProgrammingGuide/Introduction/Introduction.html | |
* @see https://apple.github.io/swift-corelibs-libdispatch/tutorial/ | |
*/ | |
#define CATCH_CONFIG_RUNNER | |
#define CATCH_CONFIG_FAST_COMPILE |
If you have issues with installing numpy related packages on Big sur, these steps helped me: 1- Uninstall pyhon installed with homebrew and use python-installer. This resolves numpy issue. And it's better to install 1.18 or just anything bellow 1.19.
brew uninstall python
And install it from: https://www.python.org/downloads/
Then:
pip install numpy==1.18
import Cocoa | |
// Say we have a Person model | |
enum V1 { | |
struct Person: Codable { | |
let name: String | |
var age: Int | |
} | |
} |
tasks.withType<Jar> { | |
manifest { | |
attributes["Main-Class"] = "com.example.MainKt" | |
} | |
} |
class BytesToTexture { | |
func texture(bytes: [UInt8], bytesPerRow: Int) -> CGImage { | |
let rgbaData = CFDataCreate(nil, bytes, bytes.count)! | |
let provider = CGDataProvider(data: rgbaData)! | |
let colorSpace = CGColorSpaceCreateDeviceRGB() | |
let bitmapInfo = CGBitmapInfo(rawValue: CGImageAlphaInfo.noneSkipLast.rawValue) | |
return CGImage( | |
width: bytesPerRow / 4, | |
height: bytes.count / bytesPerRow, | |
bitsPerComponent: 8, |
This tutorial will work you through steps of configuring an FFmpeg build tailored for RTMP streaming on macOS. At first I think of making it support general live streaming, with additional protocols like HLS, but to keep things simple let's stick with RTMP for now. (Anyway, I do include HLS in the protocol list as well as some related bitstream filters but it's untested.)
The built FFmpeg executable should