Skip to content

Commit

Permalink
Merge pull request #680 from madsmtm/xcode-16-2
Browse files Browse the repository at this point in the history
Update to Xcode 16.2
  • Loading branch information
madsmtm authored Dec 20, 2024
2 parents 045ba49 + 2f15f25 commit a6b7029
Show file tree
Hide file tree
Showing 14 changed files with 73 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ jobs:
- lint

env:
DEVELOPER_DIR: /Applications/Xcode_16.1.app/Contents/Developer
DEVELOPER_DIR: /Applications/Xcode_16.2.app/Contents/Developer

steps:
- uses: actions/checkout@v4
Expand Down
3 changes: 1 addition & 2 deletions crates/dispatch2/translation-config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ framework = "Dispatch"
crate = "dispatch2"
required-crates = ["bitflags"]
link = false
# TODO: Moved to usr/include/dispatch.modulemap in Xcode 16.2
modulemap = "usr/include/dispatch/module.modulemap"
modulemap = "usr/include/dispatch.modulemap"
is-library = true
custom-lib-rs = true

Expand Down
6 changes: 5 additions & 1 deletion crates/objc2/src/topics/about_generated/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
* **BREAKING**: Renamed `from_id_slice` to `from_retained_slice`.
* **BREAKING**: Renamed `NSString::as_str` to `to_str`, and made it `unsafe`,
since we cannot ensure that the given pool is actually the innermost pool.
* Updated SDK from Xcode 15.4 to 16.1.
* Updated SDK from Xcode 15.4 to 16.2.

View the release notes to learn more details:
- [16.0](https://developer.apple.com/documentation/xcode-release-notes/xcode-16-release-notes)
- [16.1](https://developer.apple.com/documentation/xcode-release-notes/xcode-16_1-release-notes)
- [16.2](https://developer.apple.com/documentation/xcode-release-notes/xcode-16_2-release-notes)

Breaking changes are noted elsewhere in this changelog entry.
* **BREAKING**: `NSWindowSharingReadWrite` was deprecated, and moved from
Expand All @@ -97,6 +98,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
correct `&ProtocolObject<dyn NSObjectProtocol>`.
* **BREAKING**: Moved `CGFloat`, `CGPoint`, `CGSize` and `CGRect` from
`objc2-foundation` to `objc2-core-foundation`.
* **BREAKING**: The feature flag guarding `SCSensitivityAnalysis` changed.
* **BREAKING**: `-[NSSavePanel beginSheetForDirectory:file:modalForWindow:modalDelegate:didEndSelector:contextInfo:]`
now takes an optional value as the file path.

### Deprecated
* Moved `MainThreadMarker` from `objc2-foundation` to `objc2`.
Expand Down
12 changes: 6 additions & 6 deletions crates/objc2/src/topics/about_generated/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ for the [`block2`] crate for how to call such methods using a closure.

## Currently supported versions

- macOS: `10.12-15.1`
- iOS/iPadOS: `10.0-18.1` (WIP)
- tvOS: `10.0-18.1` (WIP)
- watchOS: `5.0-11.1` (WIP)
- visionOS: `1.0-2.1` (WIP)
- macOS: `10.12-15.2`
- iOS/iPadOS: `10.0-18.2` (WIP)
- tvOS: `10.0-18.2` (WIP)
- watchOS: `5.0-11.2` (WIP)
- visionOS: `1.0-2.2` (WIP)

These bindings are currently generated from the SDKs in Xcode 16.1.
These bindings are currently generated from the SDKs in Xcode 16.2.
The Xcode version will be periodically updated.
7 changes: 7 additions & 0 deletions framework-crates/objc2-accessibility/Cargo.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions framework-crates/objc2-accessibility/translation-config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ ios = "14.0"
tvos = "14.0"
watchos = "7.0"
visionos = "1.0"

static.AXFeatureOverrideSessionErrorDomain.skipped = true
20 changes: 20 additions & 0 deletions framework-crates/objc2-app-kit/Cargo.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion framework-crates/objc2-core-graphics/Cargo.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions framework-crates/objc2-screen-capture-kit/Cargo.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions framework-crates/objc2-sensitive-content-analysis/Cargo.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions framework-crates/objc2-ui-kit/Cargo.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions framework-crates/objc2-ui-kit/translation-config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ class.UIDocumentProperties.methods."initWithMetadata:".skipped = true
class.UIDocumentProperties.methods.metadata.skipped = true
class.UIDocumentProperties.methods."setMetadata:".skipped = true

# Unclear how error handling is done for methods returning integers
class.UIApplication.methods."defaultStatusForCategory:error:".skipped = true

# Protocols require that these are main thread only
class.UIDocumentBrowserTransitionController.main-thread-only = true
class.UIDocumentInteractionController.main-thread-only = true
Expand Down
1 change: 1 addition & 0 deletions framework-crates/objc2-web-kit/Cargo.toml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion generated
Submodule generated updated 56 files
+35 −0 AVFAudio/AVAudioApplication.rs
+47 −0 AVFAudio/AVAudioSession.rs
+20 −0 AVFAudio/AVAudioSessionTypes.rs
+8 −0 AVFAudio/mod.rs
+15 −0 AVFoundation/AVCaptureFileOutput.rs
+2 −0 Accessibility/AXFeatureOverrideSessionManager.rs
+539 −0 Accessibility/AXMathExpression.rs
+2 −0 Accessibility/AXSettings.rs
+38 −0 Accessibility/mod.rs
+5 −0 AppKit/NSAttributedString.rs
+9 −0 AppKit/NSMenu.rs
+3 −0 AppKit/NSMenuItem.rs
+8 −0 AppKit/NSResponder.rs
+1 −1 AppKit/NSSavePanel.rs
+6 −0 AppKit/NSTextField.rs
+6 −0 AppKit/NSToolbarItem.rs
+18 −0 AppKit/NSView.rs
+451 −0 AppKit/NSWritingToolsCoordinator.rs
+67 −0 AppKit/NSWritingToolsCoordinatorAnimationParameters.rs
+54 −0 AppKit/NSWritingToolsCoordinatorContext.rs
+33 −0 AppKit/mod.rs
+2 −0 AudioToolbox/AUComponent.rs
+2 −0 AudioToolbox/mod.rs
+4 −0 AuthenticationServices/ASAuthorizationError.rs
+31 −0 CoreGraphics/CGEXRToneMappingGamma.rs
+31 −0 CoreGraphics/CGITUToneMapping.rs
+0 −51 CoreGraphics/CGToneMapping.rs
+22 −16 CoreGraphics/mod.rs
+6 −0 Foundation/NSHTTPCookie.rs
+15 −0 Foundation/NSURLRequest.rs
+2 −0 Foundation/mod.rs
+5 −0 HealthKit/HKMetadata.rs
+2 −0 HealthKit/mod.rs
+52 −0 MetalPerformanceShadersGraph/MPSGraphTensorShapeOps.rs
+13 −0 ScreenCaptureKit/SCScreenshotManager.rs
+20 −0 ScreenCaptureKit/SCStream.rs
+37 −0 SensitiveContentAnalysis/SCSensitivityAnalysis.rs
+7 −34 SensitiveContentAnalysis/SCSensitivityAnalyzer.rs
+5 −2 SensitiveContentAnalysis/mod.rs
+2 −0 Speech/SFErrors.rs
+5 −0 UIKit/NSAttributedString.rs
+85 −0 UIKit/UIApplication.rs
+2 −0 UIKit/UIBarButtonItem.rs
+4 −0 UIKit/UIResponder.rs
+4 −0 UIKit/UITextView.rs
+383 −0 UIKit/UIWritingToolsCoordinator.rs
+67 −0 UIKit/UIWritingToolsCoordinatorAnimationParameters.rs
+54 −0 UIKit/UIWritingToolsCoordinatorContext.rs
+45 −0 UIKit/mod.rs
+6 −0 UniformTypeIdentifiers/UTCoreTypes.rs
+2 −0 UniformTypeIdentifiers/mod.rs
+7 −0 WebKit/WKDownload.rs
+44 −0 WebKit/WKDownloadDelegate.rs
+16 −0 WebKit/WKWebViewConfiguration.rs
+35 −0 WebKit/WKWebpagePreferences.rs
+4 −0 WebKit/mod.rs

0 comments on commit a6b7029

Please sign in to comment.