Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

* fixed: crashing sideloaded app on m1 (fix for #659) #660

Merged
merged 1 commit into from
Jun 11, 2022

Conversation

dkimitsa
Copy link
Contributor

@dkimitsa dkimitsa commented Jun 2, 2022

problem: SideLoaded apps were silently dying.

Actually -- not. If started with stderror redirection open --stdout=0.log --stderr=1.log -W /Applications/test_app.app following exception was observed:

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.mycompany.myapp.Main.main(Main.java:89)

Root case

library search path for iOSSupport was missing

workaround possible

Manually add search path:

    public static void main(String[] args) {
        Runtime.addSearchPath("/System/iOSSupport/System/Library/Frameworks/");

Root case: library search path for `iOSSupport` was missing
@Tom-Ski Tom-Ski merged commit 34c1dee into MobiVM:master Jun 11, 2022
@dkimitsa dkimitsa deleted the fix/m1_sideload_support branch June 12, 2022 13:44
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