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

Operation not permitted error #177

Closed
andermoran opened this issue Sep 24, 2019 · 5 comments
Closed

Operation not permitted error #177

andermoran opened this issue Sep 24, 2019 · 5 comments

Comments

@andermoran
Copy link

This is the error I'm getting with my macOS Objective-C project

2019-09-24 09:24:55.507432-0500 temp[60188:51434206] Could not connect: Operation not permitted
💉 Injection loaded but could not connect. Is InjectionIII.app running?

My App Delegate has

- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
    // Insert code here to initialize your application
    NSBundle *bundle = [NSBundle bundleWithPath:@"/Applications/InjectionIII.app/Contents/Resources/macOSInjection.bundle"];
    [bundle load];
}

I'm running this on Xcode 10.3 on macOS Mojave 10.14.5. I have Injectioniii running (I see it in the toolbar) and I have selected my project directory as well. Am I missing something?

@johnno1962
Copy link
Owner

Hi, I have to ask "Is InjectionIII.app running?” and are you using the simulator?

@zenangst
Copy link
Collaborator

@andermoran do you have sandboxing/hardened runtime enabled for the target? If so, try disabling it to see if the bundle can load properly.

@andermoran
Copy link
Author

Hi, I have to ask "Is InjectionIII.app running?” and are you using the simulator?

"I have Injectioniii running" so yes
"macOS Objective-C project" and no because this is a Mac program which runs natively on my own system. No simulator needed

@johnno1962
Copy link
Owner

Ah, I should have mentioned that for a mac App you need to have the sandbox turned off or outgoing socket connections in your capabilities, otherwise the bundle running in the App can’t talk to the InjectionIII app.

@johnno1962
Copy link
Owner

I’ve added a slightly more helpful message for when the connect fails on a macOS app.37f090e

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

3 participants