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

install:failed,Error:Bad CPU type in executable #24

Open
ccp10841054 opened this issue Oct 25, 2022 · 4 comments
Open

install:failed,Error:Bad CPU type in executable #24

ccp10841054 opened this issue Oct 25, 2022 · 4 comments

Comments

@ccp10841054
Copy link

ccp10841054 commented Oct 25, 2022

1、Mach Info
CPU:Intel Core i7 (2017)
Version:Macos Montery 12.6

ps: SIP already disable

2、Install Message

➜  MIP sudo make install
if [ -d /usr/lib/mip ]; then \
		sudo rm /Users/*/Library/MIP ;\
		sudo mkdir -p /Library/Apple/System/Library/Frameworks/ ;\
		sudo mv /usr/lib/mip /Library/Apple/System/Library/Frameworks/ ;\
		sudo ln -s /Library/Apple/System/Library/Frameworks/mip /usr/lib/mip ;\
	fi
sudo mkdir -p /Library/Apple/System/Library/Frameworks/mip/user_data
sudo mkdir -p /Library/Apple/System/Library/Frameworks/mip/Bundles
sudo mkdir -p /usr/local/include/mip
sudo cp build/lsdinjector.dylib build/loader.dylib /Library/Apple/System/Library/Frameworks/mip/
sudo cp build/inject /usr/local/bin/
sudo cp loader/loader_public.h /usr/local/include/mip/loader.h
sudo cp local.lsdinjector.plist /Library/LaunchDaemons/
sudo defaults write /Library/Preferences/com.apple.security.libraryvalidation.plist DisableLibraryValidation -bool true
(read -p "Inject MIP to launchservicesd without a restart? [y/N] " -n 1 -r; echo ; if [[ $REPLY =~ ^[Yy]$ ]]; then sudo inject launchservicesd /Library/Apple/System/Library/Frameworks/mip/lsdinjector.dylib; fi;)
Inject MIP to launchservicesd without a restart? [y/N] y
sudo: unable to execute /usr/local/bin/inject: Bad CPU type in executable
make: *** [install] Error 1
@LIJI32
Copy link
Owner

LIJI32 commented Oct 25, 2022

What does file /usr/local/bin/inject say?

@ccp10841054
Copy link
Author

Bad CPU type in executable

@ccp10841054
Copy link
Author

ccp10841054 commented Oct 26, 2022

in addition,There is no libdyld.dylib in the /usr/lib/system path

➜  system pwd
/usr/lib/system
➜  system ls
introspection            libsystem_platform.dylib wordexp-helper
libsystem_kernel.dylib   libsystem_pthread.dylib
➜  system

@ccp10841054
Copy link
Author

Hi @LIJI32
Can you help me? thx

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

No branches or pull requests

2 participants