Skip to content

Play your own Switch games on iPhone/iPad — one-click macOS app, no terminal. | 把 Switch 游戏装进 iPhone:图形界面一键构建,不用命令行。Bring your own game.

dlopen probe: zero Xcode warnings

LNPANDY0aad0eeaa6d7
diff --git a/dm/ios/probe/DmProbe.xcodeproj/project.pbxproj b/dm/ios/probe/DmProbe.xcodeproj/project.pbxproj
index be654dec..4ed3bdef 100644
--- a/dm/ios/probe/DmProbe.xcodeproj/project.pbxproj
+++ b/dm/ios/probe/DmProbe.xcodeproj/project.pbxproj
@@ -265,7 +265,7 @@
buildSettings = {
CODE_SIGN_IDENTITY = "";
CURRENT_PROJECT_VERSION = 1;
- DEFINES_MODULE = YES;
+ DEFINES_MODULE = NO;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
@@ -344,7 +344,7 @@
buildSettings = {
CODE_SIGN_IDENTITY = "";
CURRENT_PROJECT_VERSION = 1;
- DEFINES_MODULE = YES;
+ DEFINES_MODULE = NO;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
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.xcuserstate
index 82d6c7e6..b4b8eee3 100644
Binary files a/dm/ios/probe/DmProbe.xcodeproj/project.xcworkspace/xcuserdata/hejie.xcuserdatad/UserInterfaceState.xcuserstate and b/dm/ios/probe/DmProbe.xcodeproj/project.xcworkspace/xcuserdata/hejie.xcuserdatad/UserInterfaceState.xcuserstate differ
diff --git a/dm/ios/probe/probe-Info.plist b/dm/ios/probe/probe-Info.plist
index f36f07a3..affd7571 100644
--- a/dm/ios/probe/probe-Info.plist
+++ b/dm/ios/probe/probe-Info.plist
@@ -24,9 +24,14 @@
<true/>
<key>UIFileSharingEnabled</key>
<true/>
+ <key>UILaunchScreen</key>
+ <dict/>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
+ <string>UIInterfaceOrientationLandscapeLeft</string>
+ <string>UIInterfaceOrientationLandscapeRight</string>
+ <string>UIInterfaceOrientationPortraitUpsideDown</string>
</array>
</dict>
</plist>
diff --git a/dm/ios/probe/project.yml b/dm/ios/probe/project.yml
index 61aa609c..3d711419 100644
--- a/dm/ios/probe/project.yml
+++ b/dm/ios/probe/project.yml
@@ -27,15 +27,26 @@ targets:
CFBundleDisplayName: DmProbe
CFBundleShortVersionString: "1.0"
CFBundleVersion: "1"
- UILaunchStoryboardName: ""
+ UILaunchScreen: {} # an empty launch screen: silences the storyboard warning
UIFileSharingEnabled: true # Documents/probe-log.txt visible in the Files app
LSSupportsOpeningDocumentsInPlace: true
- UISupportedInterfaceOrientations: [UIInterfaceOrientationPortrait]
+ # all four orientations: iOS 26 deprecated UIRequiresFullScreen, and a probe that writes
+ # its verdict to a file does not care how it is held
+ UISupportedInterfaceOrientations:
+ - UIInterfaceOrientationPortrait
+ - UIInterfaceOrientationLandscapeLeft
+ - UIInterfaceOrientationLandscapeRight
+ - UIInterfaceOrientationPortraitUpsideDown
Probe:
type: framework
platform: iOS
sources:
- path: src/probe.c
+ settings:
+ base:
+ # a pure-C payload dlsym'd by name needs no module map; without an umbrella header the
+ # DEFINES_MODULE default only produces a warning
+ DEFINES_MODULE: NO
info:
path: probe-framework-Info.plist
properties: