Add support for some iOS Apps that cannot find iOS Frameworks. #1195
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add some apps that cannot find iOS Frameworks due to weird dynamic linking via FileSystem.
"Curse of Aros", The app actually doesn't catch dyld environment variables on Mac-catalyst.
2023-11-01 03:49:49.140009+0900 IOSLauncher[3583:64154] PC-DEBUG: PlayShadow is now loading
java.lang.UnsatisfiedLinkError: Library 'UIKit' not found
at org. robovm.rt.bro.Runtime.getHandle(Runtime.java :317)
at org. robovm.rt.bro.Runtime. loadLibrary (Runtime. java:191)
at org. robovm.rt.bro.Bro.bind (Bro.java: 60)
at org. robovm.objc.ObjCRuntime.bind(ObjCRuntime.java:92)
at org.robovm.apple.uikit.UIResponder.(UIResponder.java:53)
at com.bitgate.curseofaros.IOSLauncher.main (IOSLauncher.java:67)
This is a log of the app, and it didn't crash but always quit due to DYLD env variables.
Pure iOS SwiftUI App
import SwiftUI
struct ContentView: View {
var body: some View {
Text("Test")
.onAppear {
if let dyld = ProcessInfo.processInfo.environment["DYLD_LIBRARY_PATH"] {
print("DYLD_LIBRARY_PATH env var: (dyld)")
//DYLD_LIBRARY_PATH env var: /Users/[name]/Library/Developer/Xcode/DerivedData/Test-bfkvkgqricwfawdjxreioirkncqq/Build/Products/Debug-iphoneos:/usr/lib/system/introspection
}
}
}
}
It print DYLD_LIBRARY_PATH like this. I guess Mac-Catalyst does not give DYLD env variables.