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

Error loading #527

Open
jacky1002 opened this issue Nov 24, 2024 · 5 comments
Open

Error loading #527

jacky1002 opened this issue Nov 24, 2024 · 5 comments

Comments

@jacky1002
Copy link

I’ve tried many times, but I keep encountering this error, and I haven’t been able to find a way to resolve it.

Error loading /Applications/InjectionIII.app/Contents/Resources/macOSInjection.bundle/Contents/MacOS/macOSInjection (101): dlopen(/Applications/InjectionIII.app/Contents/Resources/macOSInjection.bundle/Contents/MacOS/macOSInjection, 0x0109): tried: '/Users/c30/Library/Developer/Xcode/DerivedData/SuperControl-fxyvpuraafayjcbkqdzinluflddd/Build/Products/Debug/macOSInjection' (no such file), '/usr/lib/system/introspection/macOSInjection' (no such file, not in dyld cache), '/Applications/InjectionIII.app/Contents/Resources/macOSInjection.bundle/Contents/MacOS/macOSInjection' (code signature in <2B520410-B8D4-36F8-9345-BB5D124A8C0D> '/Applications/InjectionIII.app/Contents/Resources/macOSInjection.bundle/Contents/MacOS/macOSInjection' not valid for use in process: mapping process and mapped file (non-platform) have different Team IDs), '/System/Volumes/Preboot/Cryptexes/OS/Applications/InjectionIII.app/Contents/Resources/macOSInjection.bundle/Contents/MacOS/macOSInjection' (no such file), '/Applications/InjectionIII.app/Contents/Resources/macOSInjection.bundle/Contents/MacOS/macOSInjection' (code signature in <2B520410-B8D4-36F8-9345-BB5D124A8C0D> '/Applications/InjectionIII.app/Contents/Resources/macOSInjection.bundle/Contents/MacOS/macOSInjection' not valid for use in process: mapping process and mapped file (non-platform) have different Team IDs)

@jacky1002
Copy link
Author

my app is mac app

@johnno1962
Copy link
Owner

johnno1962 commented Nov 24, 2024

You might have more luck using https://github.com/johnno1962/InjectionNext as this is a code signing error. With InjectionIII, try the instructions below, otherwise you have to code sign /Applications/InjectionIII.app/Contents/Resources/macOSInjection.bundle :

Injection on macOS

It works but you need to temporarily turn off the "app sandbox" and "library validation" under the "hardened runtime" during development so it can dynamically load code. In order to avoid codesigning problems, use the new copy_bundle.sh script as detailed in the instructions for injection on real devices above.

Or there was more detail in the old README
https://github.com/johnno1962/InjectionIII/blob/main/OLDME.md#macos-injection

@h4acda
Copy link

h4acda commented Dec 5, 2024

如果是真机报错的话 ios手动删除/tmp/iOS_builds.plist试试 如果是mac应用删除/tmp/*_builds.plist试试

@yaoyaochil
Copy link

me too how to fixed???

@johnno1962
Copy link
Owner

Signing on macOS is difficult, have you tried the build phase it suggests here

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

4 participants