Play your own Switch games on iPhone/iPad — one-click macOS app, no terminal. | 把 Switch 游戏装进 iPhone:图形界面一键构建,不用命令行。Bring your own game.
Swift apple-siliconcustom-formathomebrewiosipaipadipadosiphonemetalnative-portnintendo-switchnxnativeromfsswitch-games
dlopen probe: embed the framework into the app bundle
LNPANDYae36e9f41051
diff --git a/dm/ios/probe/DmProbe.xcodeproj/project.pbxproj b/dm/ios/probe/DmProbe.xcodeproj/project.pbxprojindex 8ba60acd..be654dec 100644--- a/dm/ios/probe/DmProbe.xcodeproj/project.pbxproj+++ b/dm/ios/probe/DmProbe.xcodeproj/project.pbxproj@@ -7,10 +7,36 @@objects = {/* Begin PBXBuildFile section */+ 2013F6CD064EE80DD5843D45 /* Probe.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = FE4AE6108123D746C5393ED7 /* Probe.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };418AA9F224215885616DF281 /* probe.c in Sources */ = {isa = PBXBuildFile; fileRef = 9D35A9F8119FFBEE2C503AAD /* probe.c */; };+ 7A77ECBDCAD18AF9F0479F18 /* Probe.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FE4AE6108123D746C5393ED7 /* Probe.framework */; };E87D64C1AB95AA2BE70D72EF /* probe_main.m in Sources */ = {isa = PBXBuildFile; fileRef = FB06C46F0E8AB6B859924E6A /* probe_main.m */; };/* End PBXBuildFile section */+/* Begin PBXContainerItemProxy section */+ FF0604D39539FFF1AF62F0FC /* PBXContainerItemProxy */ = {+ isa = PBXContainerItemProxy;+ containerPortal = 665957B2F37792FAF81F0760 /* Project object */;+ proxyType = 1;+ remoteGlobalIDString = 5A4AE636FE4AFD6115D14AF3;+ remoteInfo = Probe;+ };+/* End PBXContainerItemProxy section */++/* Begin PBXCopyFilesBuildPhase section */+ 0B5D80247451CC6CD1A2E376 /* Embed Frameworks */ = {+ isa = PBXCopyFilesBuildPhase;+ buildActionMask = 2147483647;+ dstPath = "";+ dstSubfolderSpec = 10;+ files = (+ 2013F6CD064EE80DD5843D45 /* Probe.framework in Embed Frameworks */,+ );+ name = "Embed Frameworks";+ runOnlyForDeploymentPostprocessing = 0;+ };+/* End PBXCopyFilesBuildPhase section */+/* Begin PBXFileReference section */43150F93F9204EF615D94F11 /* DmProbe.app */ = {isa = PBXFileReference; includeInIndex = 0; lastKnownFileType = wrapper.application; path = DmProbe.app; sourceTree = BUILT_PRODUCTS_DIR; };9D35A9F8119FFBEE2C503AAD /* probe.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = probe.c; sourceTree = "<group>"; };@@ -18,6 +44,17 @@FE4AE6108123D746C5393ED7 /* Probe.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Probe.framework; sourceTree = BUILT_PRODUCTS_DIR; };/* End PBXFileReference section */+/* Begin PBXFrameworksBuildPhase section */+ 3A942D989AEB0836E1497A36 /* Frameworks */ = {+ isa = PBXFrameworksBuildPhase;+ buildActionMask = 2147483647;+ files = (+ 7A77ECBDCAD18AF9F0479F18 /* Probe.framework in Frameworks */,+ );+ runOnlyForDeploymentPostprocessing = 0;+ };+/* End PBXFrameworksBuildPhase section */+/* Begin PBXGroup section */667940E40ADC709A064A55E0 /* src */ = {isa = PBXGroup;@@ -53,10 +90,13 @@buildConfigurationList = FB9912A086081F2D19165946 /* Build configuration list for PBXNativeTarget "DmProbe" */;buildPhases = (FACD769F731E7788343A6BD1 /* Sources */,+ 3A942D989AEB0836E1497A36 /* Frameworks */,+ 0B5D80247451CC6CD1A2E376 /* Embed Frameworks */,);buildRules = ();dependencies = (+ 365E35C0C35C86A7263A02CE /* PBXTargetDependency */,);name = DmProbe;packageProductDependencies = (@@ -132,6 +172,14 @@};/* End PBXSourcesBuildPhase section */+/* Begin PBXTargetDependency section */+ 365E35C0C35C86A7263A02CE /* PBXTargetDependency */ = {+ isa = PBXTargetDependency;+ target = 5A4AE636FE4AFD6115D14AF3 /* Probe */;+ targetProxy = FF0604D39539FFF1AF62F0FC /* PBXContainerItemProxy */;+ };+/* End PBXTargetDependency section */+/* Begin XCBuildConfiguration section */010EAC4E2D1CD340BE7A9DE8 /* Debug */ = {isa = XCBuildConfiguration;diff --git a/dm/ios/probe/DmProbe.xcodeproj/project.xcworkspace/xcuserdata/hejie.xcuserdatad/UserInterfaceState.xcuserstate b/dm/ios/probe/DmProbe.xcodeproj/project.xcworkspace/xcuserdata/hejie.xcuserdatad/UserInterfaceState.xcuserstatenew file mode 100644index 00000000..82d6c7e6Binary files /dev/null and b/dm/ios/probe/DmProbe.xcodeproj/project.xcworkspace/xcuserdata/hejie.xcuserdatad/UserInterfaceState.xcuserstate differdiff --git a/dm/ios/probe/probe-Info.plist b/dm/ios/probe/probe-Info.plistindex 9a54ac27..f36f07a3 100644--- a/dm/ios/probe/probe-Info.plist+++ b/dm/ios/probe/probe-Info.plist@@ -24,8 +24,6 @@<true/><key>UIFileSharingEnabled</key><true/>- <key>UILaunchStoryboardName</key>- <string></string><key>UISupportedInterfaceOrientations</key><array><string>UIInterfaceOrientationPortrait</string>diff --git a/dm/ios/probe/project.yml b/dm/ios/probe/project.ymlindex 77a1aae0..61aa609c 100644--- a/dm/ios/probe/project.yml+++ b/dm/ios/probe/project.yml@@ -14,6 +14,13 @@ targets:platform: iOSsources:- path: src/probe_main.m+ # Embed the framework into DmProbe.app/Frameworks/ — the probe's dlopen targets+ # @executable_path/Frameworks/Probe.framework, so without this the app reports a FALSE+ # "BLOCKED: no such file" (the framework would be built but never shipped inside the bundle).+ dependencies:+ - target: Probe+ embed: true+ codeSign: trueinfo:path: probe-Info.plistproperties: