akemin-dayo / simject

simject is a command-line tool and iOS dynamic library that allows developers to easily test their tweaks on the iOS Simulator.
BSD 2-Clause "Simplified" License
486 stars 55 forks source link

Issue building and running on arm64 macs #64

Closed 0cyn closed 1 year ago

0cyn commented 3 years ago

Since this may be a result of my PR I'm prioritizing fixing this.

make setup runs fine; resim dies with "killed -9"

0cyn commented 3 years ago

We got past this by disabling SIP (😬 ), however we now get this:

❯ ./bin/resim                                                                   
resim (C) 2016-2020 Karen/あけみ (angelXwind)                                   
Injecting appropriate dynamic libraries from /opt/simject...                    
Respringing a booted device ...                                                 

simject on  master                                                             
❯ Child process terminated with signal 9: Killed                                
Error executing command, exiting.
0cyn commented 3 years ago
❯ lldb \                                                                        
~/.dragonbuild/simulator/resim                                                  
(lldb) target create "/Users/jaidan/.dragonbuild/simulator/resim"               
Current executable set to '/Users/jaidan/.dragonbuild/simulator/resim' (arm64). 
(lldb) proc lau                                                                 
Process 5259 launched: '/Users/jaidan/.dragonbuild/simulator/resim' (arm64)     
resim (C) 2016-2020 Karen/あけみ (angelXwind)                                   
Injecting appropriate dynamic libraries from ~/.dragonbuild/simulator/load...   
Respringing a booted device ...                                                 
2021-02-25 22:52:22.537823-0500 xcrun[5263:42260] Unknown binary with magic 0x62
2f2123 at /Applications/Xcode-beta.app/Contents/Developer/usr/bin/simctl        
Process 5259 exited with status = 0 (0x00000000)                                
(lldb)  
0cyn commented 3 years ago

Not worth filing an issue but error messages in resim don't flush the buffer before exiting apparently

PoomSmart commented 1 year ago

The latest commit, macOS Ventura, SIP enabled, works fine on my Apple Silicon setup. You can open a new issue if it still persists.