Skip to content
Open
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
10 changes: 7 additions & 3 deletions Src/Main/Server/Connection/LKS_ConnectionManager.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#ifdef SHOULD_COMPILE_LOOKIN_SERVER
#ifdef SHOULD_COMPILE_LOOKIN_SERVER

//
// LookinServer.m
Expand Down Expand Up @@ -39,8 +39,12 @@ + (instancetype)sharedInstance {
}

+ (void)load {
// 触发 init 方法
[LKS_ConnectionManager sharedInstance];
if (NSProcessInfo.processInfo.environment[@"XCODE_RUNNING_FOR_PREVIEWS"]) {

} else {
// 触发 init 方法
[LKS_ConnectionManager sharedInstance];
}
}

- (instancetype)init {
Expand Down