steventroughtonsmith / marzipanify

Convert an iOS Simulator app bundle to an iOSMac (Marzipan) one (Unsupported & undocumented, WIP)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

crash on launching

PhilCai1993 opened this issue · comments

I created a simple app (objc)
And do the following
INJECT_MARZIPAN_GLUE=1 ./marzipanify MyDemoApp.app
codesign --force --deep --sign - MyDemoApp.app
then after launching

$ lldb MyDemoApp.app -o run
error: '...' is not a valid command.
(lldb) target create "MyDemoApp.app"
Current executable set to 'MyDemoApp.app' (x86_64).
(lldb) run
2019-11-14 13:47:46.463529+0800 MyDemoApp[8694:1615117] mmmaaaccc
2019-11-14 13:47:46.683431+0800 MyDemoApp[8694:1615117] libMobileGestalt MobileGestalt.c:175: couldn't load support library
2019-11-14 13:47:46.683473+0800 MyDemoApp[8694:1615117] libMobileGestalt MobileGestalt.c:604: _MGSCopyAnswerFromServer can't be loaded
Process 8694 stopped

  • thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGABRT
    frame #0: 0x00007fff73baa47a libsystem_kernel.dylib __pthread_kill + 10 libsystem_kernel.dylib__pthread_kill:
    -> 0x7fff73baa47a <+10>: jae 0x7fff73baa484 ; <+20>
    0x7fff73baa47c <+12>: mov rdi, rax
    0x7fff73baa47f <+15>: jmp 0x7fff73ba4397 ; cerror_nocancel
    0x7fff73baa484 <+20>: ret
    libsystem_kernel.dylib'mach_vm_region: 0x7fff73baa485 <+0>: push rbp
    0x7fff73baa486 <+1>: mov rbp, rsp
    0x7fff73baa489 <+4>: push r15
    0x7fff73baa48b <+6>: push r14
    Target 0: (MyDemoApp) stopped.

otool -L MyDemoApp.app/Contents/MacOS/MyDemoApp

MyDemoApp.app/Contents/MacOS/MyDemoApp:
/System/Library/Frameworks/SystemConfiguration.framework/SystemConfiguration (compatibility version 1.0.0, current version 1061.0.0)
/System/Library/Frameworks/CoreServices.framework/CoreServices (compatibility version 1.0.0, current version 1061.3.0)
/System/iOSSupport/System/Library/Frameworks/MobileCoreServices.framework/MobileCoreServices (compatibility version 1.0.0, current version 1061.3.0)
/System/Library/Frameworks/Foundation.framework/Foundation (compatibility version 300.0.0, current version 1665.15.0)
/usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 228.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1281.0.0)
/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation (compatibility version 150.0.0, current version 1665.15.0)
/System/iOSSupport/System/Library/Frameworks/UIKit.framework/UIKit (compatibility version 1.0.0, current version 61000.0.0)

I don't know wherelibMobileGestalt comes from, and how to get rid of it?
Xcode 11 & catalina

Resolved