wolfcw / libfaketime

libfaketime modifies the system time for a single application
https://github.com/wolfcw/libfaketime
GNU General Public License v2.0
2.71k stars 325 forks source link

M1 MBP (mach-o file, but is an incompatible architecture (have 'arm64', need '')) error #423

Closed Spritzerland closed 1 year ago

Spritzerland commented 1 year ago

Do I have to compile for my architecture or do something else entirely?

Here's the full error: dyld[2174]: terminating because inserted dylib '/opt/homebrew/Cellar/libfaketime/0.9.10/lib/faketime/libfaketime.1.dylib' could not be loaded: tried: '/opt/homebrew/Cellar/libfaketime/0.9.10/lib/faketime/libfaketime.1.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need '')), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/libfaketime/0.9.10/lib/faketime/libfaketime.1.dylib' (no such file), '/opt/homebrew/Cellar/libfaketime/0.9.10/lib/faketime/libfaketime.1.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need '')) dyld[2174]: tried: '/opt/homebrew/Cellar/libfaketime/0.9.10/lib/faketime/libfaketime.1.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need '')), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/libfaketime/0.9.10/lib/faketime/libfaketime.1.dylib' (no such file), '/opt/homebrew/Cellar/libfaketime/0.9.10/lib/faketime/libfaketime.1.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need '')) Caught Abort trap: 6

pinguo-renliang commented 1 year ago

I also encountered the same problem, how did you finally solve it?