Skip to content

Commit d7a0a70

Browse files
committed
Fixed no reload after loading image
1 parent e7e9aaa commit d7a0a70

File tree

5 files changed

+23
-15
lines changed

5 files changed

+23
-15
lines changed
File renamed without changes.

ArchiveScript.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ development_mode="Release"
1414
build_path=${project_path}/build
1515

1616
#plist文件所在路径
17-
exportOptionsPlistPath=${project_path}/exportTest.plist
17+
exportOptionsPlistPath=${project_path}/ArchiveExportConfig.plist
1818

1919
#导出App文件所在路径
2020
exportAppPath=${project_path}/archive
@@ -26,8 +26,8 @@ echo '///-----------'
2626
xcodebuild \
2727
archive -workspace ${project_path}/${project_name}.xcworkspace \
2828
-scheme ${scheme_name} \
29-
-destination 'platform=macOS,arch=arm64e' \
30-
-destination 'platform=macOS,arch=x86_64' \
29+
-arch x86_64 \
30+
-arch arm64e \
3131
-configuration ${development_mode} \
3232
-skipPackagePluginValidation -skipMacroValidation \
3333
-archivePath ${build_path}/${project_name}.xcarchive -quiet || exit

Core/Sources/RuntimeViewerCore/RuntimeEngine.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ public final class RuntimeEngine {
230230
}
231231
.store(in: &subscriptions)
232232

233+
// observeDyldRegister()
233234
sendRemoteDataIfNeeded()
234235
}
235236

@@ -323,6 +324,7 @@ extension RuntimeEngine {
323324
public func loadImage(at path: String) async throws {
324325
try await request {
325326
try Self.loadImage(at: path)
327+
reloadData()
326328
} remote: {
327329
try await $0.sendMessage(name: CommandIdentifiers.loadImage, request: path)
328330
}

RuntimeViewerUsingAppKit/RuntimeViewerUsingAppKit.xcodeproj/project.pbxproj

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@
604604
attributes = {
605605
BuildIndependentTargetsInParallel = 1;
606606
LastSwiftUpdateCheck = 1540;
607-
LastUpgradeCheck = 1620;
607+
LastUpgradeCheck = 1640;
608608
TargetAttributes = {
609609
E9432FE12C0D614900362862 = {
610610
CreatedOnToolsVersion = 15.4;
@@ -854,7 +854,9 @@
854854
CLANG_WARN_UNREACHABLE_CODE = YES;
855855
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
856856
COPY_PHASE_STRIP = NO;
857+
DEAD_CODE_STRIPPING = YES;
857858
DEBUG_INFORMATION_FORMAT = dwarf;
859+
DEVELOPMENT_TEAM = D5Q73692VW;
858860
ENABLE_STRICT_OBJC_MSGSEND = YES;
859861
ENABLE_TESTABILITY = YES;
860862
ENABLE_USER_SCRIPT_SANDBOXING = YES;
@@ -917,7 +919,9 @@
917919
CLANG_WARN_UNREACHABLE_CODE = YES;
918920
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
919921
COPY_PHASE_STRIP = NO;
922+
DEAD_CODE_STRIPPING = YES;
920923
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
924+
DEVELOPMENT_TEAM = D5Q73692VW;
921925
ENABLE_NS_ASSERTIONS = NO;
922926
ENABLE_STRICT_OBJC_MSGSEND = YES;
923927
ENABLE_USER_SCRIPT_SANDBOXING = YES;
@@ -949,7 +953,7 @@
949953
CODE_SIGN_STYLE = Automatic;
950954
COMBINE_HIDPI_IMAGES = YES;
951955
CURRENT_PROJECT_VERSION = 1;
952-
DEVELOPMENT_TEAM = D5Q73692VW;
956+
DEAD_CODE_STRIPPING = YES;
953957
ENABLE_HARDENED_RUNTIME = YES;
954958
ENABLE_USER_SCRIPT_SANDBOXING = NO;
955959
FUSE_BUILD_SCRIPT_PHASES = NO;
@@ -986,7 +990,7 @@
986990
CODE_SIGN_STYLE = Automatic;
987991
COMBINE_HIDPI_IMAGES = YES;
988992
CURRENT_PROJECT_VERSION = 1;
989-
DEVELOPMENT_TEAM = D5Q73692VW;
993+
DEAD_CODE_STRIPPING = YES;
990994
ENABLE_HARDENED_RUNTIME = YES;
991995
ENABLE_USER_SCRIPT_SANDBOXING = NO;
992996
FUSE_BUILD_SCRIPT_PHASES = NO;
@@ -1024,7 +1028,6 @@
10241028
CODE_SIGN_STYLE = Automatic;
10251029
CURRENT_PROJECT_VERSION = 1;
10261030
DERIVE_MACCATALYST_PRODUCT_BUNDLE_IDENTIFIER = NO;
1027-
DEVELOPMENT_TEAM = D5Q73692VW;
10281031
ENABLE_HARDENED_RUNTIME = YES;
10291032
ENABLE_USER_SCRIPT_SANDBOXING = NO;
10301033
GENERATE_INFOPLIST_FILE = YES;
@@ -1069,7 +1072,6 @@
10691072
CODE_SIGN_STYLE = Automatic;
10701073
CURRENT_PROJECT_VERSION = 1;
10711074
DERIVE_MACCATALYST_PRODUCT_BUNDLE_IDENTIFIER = NO;
1072-
DEVELOPMENT_TEAM = D5Q73692VW;
10731075
ENABLE_HARDENED_RUNTIME = YES;
10741076
ENABLE_USER_SCRIPT_SANDBOXING = NO;
10751077
GENERATE_INFOPLIST_FILE = YES;
@@ -1108,7 +1110,7 @@
11081110
CODE_SIGN_STYLE = Automatic;
11091111
COMBINE_HIDPI_IMAGES = YES;
11101112
CURRENT_PROJECT_VERSION = 1;
1111-
DEVELOPMENT_TEAM = D5Q73692VW;
1113+
DEAD_CODE_STRIPPING = YES;
11121114
ENABLE_HARDENED_RUNTIME = YES;
11131115
GENERATE_INFOPLIST_FILE = YES;
11141116
INFOPLIST_KEY_NSHumanReadableCopyright = "";
@@ -1131,7 +1133,7 @@
11311133
CODE_SIGN_STYLE = Automatic;
11321134
COMBINE_HIDPI_IMAGES = YES;
11331135
CURRENT_PROJECT_VERSION = 1;
1134-
DEVELOPMENT_TEAM = D5Q73692VW;
1136+
DEAD_CODE_STRIPPING = YES;
11351137
ENABLE_HARDENED_RUNTIME = YES;
11361138
GENERATE_INFOPLIST_FILE = YES;
11371139
INFOPLIST_KEY_NSHumanReadableCopyright = "";
@@ -1154,10 +1156,11 @@
11541156
buildSettings = {
11551157
CODE_SIGN_STYLE = Automatic;
11561158
CREATE_INFOPLIST_SECTION_IN_BINARY = YES;
1157-
DEVELOPMENT_TEAM = D5Q73692VW;
1159+
DEAD_CODE_STRIPPING = YES;
11581160
ENABLE_HARDENED_RUNTIME = YES;
11591161
INFOPLIST_FILE = "$(SRCROOT)/$(TARGETNAME)/Info.plist";
11601162
MACOSX_DEPLOYMENT_TARGET = 12.0;
1163+
PRODUCT_BUNDLE_IDENTIFIER = com.JH.RuntimeViewerService;
11611164
PRODUCT_NAME = "$(TARGET_NAME)";
11621165
SKIP_INSTALL = YES;
11631166
SWIFT_VERSION = 5.0;
@@ -1170,10 +1173,11 @@
11701173
buildSettings = {
11711174
CODE_SIGN_STYLE = Automatic;
11721175
CREATE_INFOPLIST_SECTION_IN_BINARY = YES;
1173-
DEVELOPMENT_TEAM = D5Q73692VW;
1176+
DEAD_CODE_STRIPPING = YES;
11741177
ENABLE_HARDENED_RUNTIME = YES;
11751178
INFOPLIST_FILE = "$(SRCROOT)/$(TARGETNAME)/Info.plist";
11761179
MACOSX_DEPLOYMENT_TARGET = 12.0;
1180+
PRODUCT_BUNDLE_IDENTIFIER = com.JH.RuntimeViewerService;
11771181
PRODUCT_NAME = "$(TARGET_NAME)";
11781182
SKIP_INSTALL = YES;
11791183
SWIFT_VERSION = 5.0;
@@ -1185,11 +1189,12 @@
11851189
buildSettings = {
11861190
BUILD_LIBRARY_FOR_DISTRIBUTION = YES;
11871191
CLANG_ENABLE_MODULES = YES;
1192+
CODE_SIGN_IDENTITY = "";
11881193
CODE_SIGN_STYLE = Automatic;
11891194
COMBINE_HIDPI_IMAGES = YES;
11901195
CURRENT_PROJECT_VERSION = 1;
1196+
DEAD_CODE_STRIPPING = YES;
11911197
DEFINES_MODULE = YES;
1192-
DEVELOPMENT_TEAM = D5Q73692VW;
11931198
DYLIB_COMPATIBILITY_VERSION = 1;
11941199
DYLIB_CURRENT_VERSION = 1;
11951200
DYLIB_INSTALL_NAME_BASE = "@rpath";
@@ -1223,11 +1228,12 @@
12231228
buildSettings = {
12241229
BUILD_LIBRARY_FOR_DISTRIBUTION = YES;
12251230
CLANG_ENABLE_MODULES = YES;
1231+
CODE_SIGN_IDENTITY = "";
12261232
CODE_SIGN_STYLE = Automatic;
12271233
COMBINE_HIDPI_IMAGES = YES;
12281234
CURRENT_PROJECT_VERSION = 1;
1235+
DEAD_CODE_STRIPPING = YES;
12291236
DEFINES_MODULE = YES;
1230-
DEVELOPMENT_TEAM = D5Q73692VW;
12311237
DYLIB_COMPATIBILITY_VERSION = 1;
12321238
DYLIB_CURRENT_VERSION = 1;
12331239
DYLIB_INSTALL_NAME_BASE = "@rpath";

RuntimeViewerUsingAppKit/com.JH.RuntimeViewerService/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<plist version="1.0">
44
<dict>
55
<key>CFBundleIdentifier</key>
6-
<string>com.JH.RuntimeViewerService</string>
6+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
77
<key>CFBundleInfoDictionaryVersion</key>
88
<string>6.0</string>
99
<key>CFBundleName</key>

0 commit comments

Comments
 (0)