Skip to content

Commit

Permalink
Set deployment targets for Xcode 16
Browse files Browse the repository at this point in the history
  • Loading branch information
tgoyne committed Jun 18, 2024
1 parent c3492ed commit cf41b01
Showing 4 changed files with 15 additions and 12 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -3,6 +3,9 @@ x.y.z Release notes (yyyy-MM-dd)
### Enhancements
* Add `@ObservedSectionedResults.remove(atOffsets:section:)` which adds the ability to
remove a Realm Object when using `onDelete` on `ForEach` in a SwiftUI `List`.
* Add support for Xcode 16 beta 1 and fix some of the new warnings. Note that
this does not yet include full support for Swift 6 language mode
([#8618](https://github.com/realm/realm-swift/pull/8618)).

### Fixed
* Deleting a Realm Object used in a `@ObservedSectionedResults` collection in `SwiftUI`
8 changes: 4 additions & 4 deletions Configuration/Base.xcconfig
Original file line number Diff line number Diff line change
@@ -59,17 +59,17 @@ HEADER_SEARCH_PATHS = $(inherited) core/include;
CODE_SIGN_IDENTITY[sdk=iphone*] = iPhone Developer;
CODE_SIGNING_REQUIRED[sdk=macosx] = NO;

IPHONEOS_DEPLOYMENT_TARGET_1400 = 11.0;
IPHONEOS_DEPLOYMENT_TARGET_1500 = 12.0;
IPHONEOS_DEPLOYMENT_TARGET_1600 = 12.0;
IPHONEOS_DEPLOYMENT_TARGET = $(IPHONEOS_DEPLOYMENT_TARGET_$(XCODE_VERSION_MAJOR));
MACOSX_DEPLOYMENT_TARGET_1400 = 10.13;
MACOSX_DEPLOYMENT_TARGET_1500 = 10.14;
MACOSX_DEPLOYMENT_TARGET_1600 = 10.14;
MACOSX_DEPLOYMENT_TARGET = $(MACOSX_DEPLOYMENT_TARGET_$(XCODE_VERSION_MAJOR));
WATCHOS_DEPLOYMENT_TARGET_1400 = 4.0;
WATCHOS_DEPLOYMENT_TARGET_1500 = 4.0;
WATCHOS_DEPLOYMENT_TARGET_1600 = 4.0;
WATCHOS_DEPLOYMENT_TARGET = $(WATCHOS_DEPLOYMENT_TARGET_$(XCODE_VERSION_MAJOR));
TVOS_DEPLOYMENT_TARGET_1400 = 11.0;
TVOS_DEPLOYMENT_TARGET_1500 = 12.0;
TVOS_DEPLOYMENT_TARGET_1600 = 12.0;
TVOS_DEPLOYMENT_TARGET = $(TVOS_DEPLOYMENT_TARGET_$(XCODE_VERSION_MAJOR));

APPLICATION_EXTENSION_API_ONLY = YES;
8 changes: 4 additions & 4 deletions Realm.podspec
Original file line number Diff line number Diff line change
@@ -130,17 +130,17 @@ Pod::Spec.new do |s|
'OTHER_CPLUSPLUSFLAGS' => '-isystem "${PODS_ROOT}/Realm/include/core" -fvisibility-inlines-hidden',
'USER_HEADER_SEARCH_PATHS' => '"${PODS_ROOT}/Realm/include" "${PODS_ROOT}/Realm/include/Realm"',

'IPHONEOS_DEPLOYMENT_TARGET_1400' => '11.0',
'IPHONEOS_DEPLOYMENT_TARGET_1500' => '12.0',
'IPHONEOS_DEPLOYMENT_TARGET_1600' => '12.0',
'IPHONEOS_DEPLOYMENT_TARGET' => '$(IPHONEOS_DEPLOYMENT_TARGET_$(XCODE_VERSION_MAJOR))',
'MACOSX_DEPLOYMENT_TARGET_1400' => '10.13',
'MACOSX_DEPLOYMENT_TARGET_1500' => '10.13',
'MACOSX_DEPLOYMENT_TARGET_1600' => '10.13',
'MACOSX_DEPLOYMENT_TARGET' => '$(MACOSX_DEPLOYMENT_TARGET_$(XCODE_VERSION_MAJOR))',
'WATCHOS_DEPLOYMENT_TARGET_1400' => '4.0',
'WATCHOS_DEPLOYMENT_TARGET_1500' => '4.0',
'WATCHOS_DEPLOYMENT_TARGET_1600' => '4.0',
'WATCHOS_DEPLOYMENT_TARGET' => '$(WATCHOS_DEPLOYMENT_TARGET_$(XCODE_VERSION_MAJOR))',
'TVOS_DEPLOYMENT_TARGET_1400' => '11.0',
'TVOS_DEPLOYMENT_TARGET_1500' => '12.0',
'TVOS_DEPLOYMENT_TARGET_1600' => '12.0',
'TVOS_DEPLOYMENT_TARGET' => '$(TVOS_DEPLOYMENT_TARGET_$(XCODE_VERSION_MAJOR))',

'OTHER_LDFLAGS' => '"-Wl,-unexported_symbols_list,${PODS_ROOT}/Realm/Configuration/Realm/PrivateSymbols.txt"',
8 changes: 4 additions & 4 deletions RealmSwift.podspec
Original file line number Diff line number Diff line change
@@ -33,17 +33,17 @@ Pod::Spec.new do |s|
s.pod_target_xcconfig = {
'APPLICATION_EXTENSION_API_ONLY' => 'YES',

'IPHONEOS_DEPLOYMENT_TARGET_1400' => '11.0',
'IPHONEOS_DEPLOYMENT_TARGET_1500' => '12.0',
'IPHONEOS_DEPLOYMENT_TARGET_1600' => '12.0',
'IPHONEOS_DEPLOYMENT_TARGET' => '$(IPHONEOS_DEPLOYMENT_TARGET_$(XCODE_VERSION_MAJOR))',
'MACOSX_DEPLOYMENT_TARGET_1400' => '10.13',
'MACOSX_DEPLOYMENT_TARGET_1500' => '10.13',
'MACOSX_DEPLOYMENT_TARGET_1600' => '10.13',
'MACOSX_DEPLOYMENT_TARGET' => '$(MACOSX_DEPLOYMENT_TARGET_$(XCODE_VERSION_MAJOR))',
'WATCHOS_DEPLOYMENT_TARGET_1400' => '4.0',
'WATCHOS_DEPLOYMENT_TARGET_1500' => '4.0',
'WATCHOS_DEPLOYMENT_TARGET_1600' => '4.0',
'WATCHOS_DEPLOYMENT_TARGET' => '$(WATCHOS_DEPLOYMENT_TARGET_$(XCODE_VERSION_MAJOR))',
'TVOS_DEPLOYMENT_TARGET_1400' => '11.0',
'TVOS_DEPLOYMENT_TARGET_1500' => '12.0',
'TVOS_DEPLOYMENT_TARGET_1600' => '12.0',
'TVOS_DEPLOYMENT_TARGET' => '$(TVOS_DEPLOYMENT_TARGET_$(XCODE_VERSION_MAJOR))',
}
end

0 comments on commit cf41b01

Please sign in to comment.