Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion Sources/LookinCore/LookinAppInfo.m
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,13 @@ + (LookinAppInfo *)currentInfoWithScreenshot:(BOOL)hasScreenshot icon:(BOOL)hasI

LookinAppInfo *info = [[LookinAppInfo alloc] init];
info.serverReadableVersion = LOOKIN_SERVER_READABLE_VERSION;
#ifdef LOOKIN_SERVER_SWIFT_ENABLED
// Report Swift optimization as enabled whenever the Swift-aware build is
// compiled in. The CocoaPods subspec path defines LOOKIN_SERVER_SWIFT_ENABLED;
// the SwiftPM / XCFramework path defines SPM_LOOKIN_SERVER_ENABLED (which in
// turn imports LookinServerSwift and activates LOOKIN_SERVER_SWIFT_ENABLED_SUCCESSFULLY
// in LKS_TraceManager). Both imply the optimization is active, matching the
// contract documented on -swiftEnabledInLookinServer ("SPM 或 Swift Subspec → 1").
Comment on lines +145 to +150
#if defined(LOOKIN_SERVER_SWIFT_ENABLED) || defined(SPM_LOOKIN_SERVER_ENABLED)
info.swiftEnabledInLookinServer = 1;
#else
info.swiftEnabledInLookinServer = -1;
Expand Down
Loading