Skip to content

Commit 6ca8111

Browse files
committed
Enable all platforms and update framework build script.
1 parent 7ddf265 commit 6ca8111

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

xcode/LDKFramework/LDKFramework.xcodeproj/project.pbxproj

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1845,6 +1845,8 @@
18451845
07344C69264277ED001CD90E /* Debug */ = {
18461846
isa = XCBuildConfiguration;
18471847
buildSettings = {
1848+
ADDITIONAL_SDKS = macOS;
1849+
ALLOW_TARGET_PLATFORM_SPECIALIZATION = YES;
18481850
BUILD_LIBRARY_FOR_DISTRIBUTION = YES;
18491851
CLANG_ENABLE_MODULES = YES;
18501852
CODE_SIGN_STYLE = Automatic;
@@ -1867,7 +1869,8 @@
18671869
PRODUCT_BUNDLE_IDENTIFIER = org.ldk.LDKFramework;
18681870
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
18691871
SKIP_INSTALL = YES;
1870-
SUPPORTS_MACCATALYST = NO;
1872+
SUPPORTED_PLATFORMS = "watchsimulator watchos macosx iphonesimulator iphoneos driverkit appletvsimulator appletvos";
1873+
SUPPORTS_MACCATALYST = YES;
18711874
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
18721875
SWIFT_VERSION = 5.0;
18731876
TARGETED_DEVICE_FAMILY = "1,2";
@@ -1877,6 +1880,8 @@
18771880
07344C6A264277ED001CD90E /* Release */ = {
18781881
isa = XCBuildConfiguration;
18791882
buildSettings = {
1883+
ADDITIONAL_SDKS = macOS;
1884+
ALLOW_TARGET_PLATFORM_SPECIALIZATION = YES;
18801885
BUILD_LIBRARY_FOR_DISTRIBUTION = YES;
18811886
CLANG_ENABLE_MODULES = YES;
18821887
CODE_SIGN_STYLE = Automatic;
@@ -1900,7 +1905,8 @@
19001905
PRODUCT_BUNDLE_IDENTIFIER = org.ldk.LDKFramework;
19011906
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
19021907
SKIP_INSTALL = YES;
1903-
SUPPORTS_MACCATALYST = NO;
1908+
SUPPORTED_PLATFORMS = "watchsimulator watchos macosx iphonesimulator iphoneos driverkit appletvsimulator appletvos";
1909+
SUPPORTS_MACCATALYST = YES;
19041910
SWIFT_VERSION = 5.0;
19051911
TARGETED_DEVICE_FAMILY = "1,2";
19061912
};

xcode/build_xcode_frameworks.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ do
4747
find "${CURRENT_ARCHIVE_DIRECTORY}" -mindepth 1 -delete
4848
find "${CURRENT_DERIVED_DATA_DIRECTORY}" -mindepth 1 -delete
4949

50-
LDK_C_BINDINGS_BINARY_DIRECTORY="${CURRENT_LIPO_DIRECTORY_PATH}" xcodebuild archive -verbose -project "${BASEDIR}/LDKFramework/LDKFramework.xcodeproj" -scheme LDKFramework -destination "generic/platform=${CURRENT_DESTINATION_NAME}" -derivedDataPath "${CURRENT_DERIVED_DATA_DIRECTORY}" -archivePath "${CURRENT_ARCHIVE_PATH}" EXCLUDED_ARCHS="i386 armv7" SKIP_INSTALL=NO BUILD_LIBRARY_FOR_DISTRIBUTION=YES
50+
LDK_C_BINDINGS_BINARY_DIRECTORY="${CURRENT_LIPO_DIRECTORY_PATH}" xcodebuild archive -verbose -project "${BASEDIR}/LDKFramework/LDKFramework.xcodeproj" -scheme LDKFramework -destination "generic/platform=${CURRENT_DESTINATION_NAME}" -derivedDataPath "${CURRENT_DERIVED_DATA_DIRECTORY}" -archivePath "${CURRENT_ARCHIVE_PATH}" ENABLE_BITCODE=NO EXCLUDED_ARCHS="i386 armv7" SKIP_INSTALL=NO BUILD_LIBRARY_FOR_DISTRIBUTION=YES
5151

5252
XCFRAMEWORK_INPUT_FLAGS="${XCFRAMEWORK_INPUT_FLAGS}-framework ${CURRENT_ARCHIVE_PATH}.xcarchive/Products/Library/Frameworks/LDKFramework.framework "
5353
echo "Current xcframework flags: ${XCFRAMEWORK_INPUT_FLAGS}" >> $BUILD_LOG_PATH

0 commit comments

Comments
 (0)