Skip to content

Conversation

Ryu-ga
Copy link
Contributor

@Ryu-ga Ryu-ga commented Nov 5, 2023

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.

@JoseMoreville
Copy link
Member

I haven't test this yet but wouldn't this cause side effects?

@Ryu-ga
Copy link
Contributor Author

Ryu-ga commented Dec 5, 2023

I haven't test this yet but wouldn't this cause side effects?

I don't think there are any side effects because this is only an option for very specific games (robovm based apps). However, Swift-Lint seems to be going to argue that the class code in PlayApp.swift is too long when adding more code. This code does not hold much value. If this pr was closed due to mess code, I would create forked app for this issue and provide zipped app similar to Sonoma Quick Patch of mine.

@JoseMoreville JoseMoreville merged commit 2224ca8 into PlayCover:develop Dec 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants