Reputation: 479
I was trying to inject code into the Finder process using mach_inject . I am currently using given the source given here
The code seems to get the PID of the finder process correctly. There is a bundle mach_inject_bundle
which is to be injected.
The following error comes every time I run the injector.
mach_inject failing.. (os/kern) invalid address
error: (os/kern) invalid address
I am running the build using sudo
from the terminal. I am using Snow Leopard MAC OS X 10.6.8.
I found some similar issues reported by others here . But no solution seems to work. Can someone please help me out ?? Thanks
Upvotes: 0
Views: 1610
Reputation: 22930
In the Architectures setting for the project just set x86_64
.
Upvotes: 2