From 8000e239d27f556dfa98b900386af85e9bd35b8b Mon Sep 17 00:00:00 2001 From: DreamPiggy Date: Sat, 2 Sep 2023 20:11:45 +0800 Subject: [PATCH] Update readme and at least the xcconfig for visionOS --- Configs/Module-Shared.xcconfig | 7 +++++-- README.md | 8 ++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/Configs/Module-Shared.xcconfig b/Configs/Module-Shared.xcconfig index 1b35da47..2d9dfdce 100644 --- a/Configs/Module-Shared.xcconfig +++ b/Configs/Module-Shared.xcconfig @@ -210,10 +210,10 @@ SDKROOT = macosx SKIP_INSTALL = YES // The list of supported platforms from which a base SDK can be used. This setting is used if the product can be built for multiple platforms using different SDKs. -SUPPORTED_PLATFORMS = macosx iphoneos iphonesimulator watchsimulator watchos appletvsimulator appletvos +SUPPORTED_PLATFORMS = macosx iphoneos iphonesimulator watchsimulator watchos appletvsimulator appletvos xrsimulator xros // The build system uses the selected device to set the correct value for the `UIDeviceFamily` key it adds to the target's `Info.plist` file. This also drives the --target-device flag to actool, which determines the idioms selected during catalog compilation for iOS platforms. -TARGETED_DEVICE_FAMILY = 1,2,3,4 +TARGETED_DEVICE_FAMILY = 1,2,3,4,5,6,7 // Code will load on this and later versions of tvOS. Framework APIs that are unavailable in earlier versions will be weak-linked; your code should check for null function pointers or specific system versions before calling newer APIs. TVOS_DEPLOYMENT_TARGET = 9.0 @@ -224,6 +224,9 @@ VERSIONING_SYSTEM = apple-generic // Code will load on this and later versions of watchOS. Framework APIs that are unavailable in earlier versions will be weak-linked; your code should check for null function pointers or specific system versions before calling newer APIs. WATCHOS_DEPLOYMENT_TARGET = 2.0 +// Code will load on this and later versions of visionOS. Framework APIs that are unavailable in earlier versions will be weak-linked; your code should check for null function pointers or specific system versions before calling newer APIs. +XROS_DEPLOYMENT_TARGET = 1.0 + // macOS Catalyst support SUPPORTS_MACCATALYST = YES diff --git a/README.md b/README.md index 784ab87a..bf76153c 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,14 @@ Note: `SD` is the prefix for **Simple Design** (which is the team name in Daily - [x] Modern Objective-C and better Swift support - [x] Performances! +## For Apple visionOS + +From 5.18.0, SDWebImage can be compiled for visionOS platform. However, it's still in beta and may contains issues unlike the stable iOS UIKit support. Welcome to have a try and [report issue](https://github.com/SDWebImage/SDWebImage/issues). + +To build on visionOS, currently we only support the standard Xcode integration. Which means, open that `SDWebImage.xcodeproj` (Xcode 15+), then choose the target to build as library, framework or XCFramework (supports static and dynamic), and integrate to your visionOS App. + +Once the visionOS toolchain is stable, we will add the package manager support later (include CocoaPods and SwiftPM). + ## Supported Image Formats - Image formats supported by Apple system (JPEG, PNG, TIFF, BMP, ...), including [GIF](https://github.com/SDWebImage/SDWebImage/wiki/Advanced-Usage#gif-coder)/[APNG](https://github.com/SDWebImage/SDWebImage/wiki/Advanced-Usage#apng-coder) animated image