Post

Replies

Boosts

Views

Activity

Passing data buffers from web to Swift?
The new WKJSScriptingBuffer API allows Swift to define data buffers and make them available to JS code running in a WKWebView. Is there any API for passing an ArrayBuffer of data from a WKWebView to Swift code? Currently the usual workaround is to convert the buffer to a base64 string, but that is slow and can lead to exhausting memory depending on the size of the buffer. On the web, window.postMessage() has an argument that allows transferring ownership of ArrayBuffers to the receiver, but the webkit.messageHandlers.<name>.postMessage() API doesn't seem to support that.
Topic: Safari & Web SubTopic: WebKit
1
0
61
20h
xcodebuild distribution documentation
The release notes for Xcode 15 mentions that xcodebuild has support for automatic distribution: xcodebuild -exportArchive supports using App Store Connect authentication keys to upload apps to App Store Connect and the Apple notary service. (76036452) I'm not able to find any documentation about the flags or options to pass to xcodebuild to do automatic TestFlight uploading, and it's not covered in the xcodebuild man pages either. Can someone detail what the command-line flags are to enable this?
1
0
1.8k
Jun ’23
Passing data buffers from web to Swift?
The new WKJSScriptingBuffer API allows Swift to define data buffers and make them available to JS code running in a WKWebView. Is there any API for passing an ArrayBuffer of data from a WKWebView to Swift code? Currently the usual workaround is to convert the buffer to a base64 string, but that is slow and can lead to exhausting memory depending on the size of the buffer. On the web, window.postMessage() has an argument that allows transferring ownership of ArrayBuffers to the receiver, but the webkit.messageHandlers.<name>.postMessage() API doesn't seem to support that.
Topic: Safari & Web SubTopic: WebKit
Replies
1
Boosts
0
Views
61
Activity
20h
xcodebuild distribution documentation
The release notes for Xcode 15 mentions that xcodebuild has support for automatic distribution: xcodebuild -exportArchive supports using App Store Connect authentication keys to upload apps to App Store Connect and the Apple notary service. (76036452) I'm not able to find any documentation about the flags or options to pass to xcodebuild to do automatic TestFlight uploading, and it's not covered in the xcodebuild man pages either. Can someone detail what the command-line flags are to enable this?
Replies
1
Boosts
0
Views
1.8k
Activity
Jun ’23