johnno1962 / InjectionApp

Issue Tracking Repo for Injection as an App
MIT License
111 stars 7 forks source link

Runs fine for the first time #2

Open schmitzoide opened 7 years ago

schmitzoide commented 7 years ago

The first time I run this (InjectedCount = 1), all runs well, all other consequent attempts fail with the sign code issue.

Error loading /Users/marcelschmitz/Library/Developer/Xcode/DerivedData/winespots-agamduxrctmuerhhpopnmsqgxyta/Logs/iOSInjectionProject/build/Debug-iphonesimulator/InjectionBundle7.bundle/InjectionBundle:  dlopen(/Users/marcelschmitz/Library/Developer/Xcode/DerivedData/winespots-agamduxrctmuerhhpopnmsqgxyta/Logs/iOSInjectionProject/build/Debug-iphonesimulator/InjectionBundle7.bundle/InjectionBundle, 265): no suitable image found.  Did find:
    /Users/marcelschmitz/Library/Developer/Xcode/DerivedData/winespots-agamduxrctmuerhhpopnmsqgxyta/Logs/iOSInjectionProject/build/Debug-iphonesimulator/InjectionBundle7.bundle/InjectionBundle: required code signature missing for '/Users/marcelschmitz/Library/Developer/Xcode/DerivedData/winespots-agamduxrctmuerhhpopnmsqgxyta/Logs/iOSInjectionProject/build/Debug-iphonesimulator/InjectionBundle7.bundle/InjectionBundle'

I've code sign the bundle project, hence working for the first time. Don't know how to sign the consequent bundles.

Any thoughts?

johnno1962 commented 7 years ago

Stange problem. Can you delete the injection project and try again without changing the codesigning. It should be fine ad-hoc. I can TeamView if you want me to take a look.

schmitzoide commented 7 years ago

Let me try that and come back to you. Really, teamviewer? You're awesome!

schmitzoide commented 7 years ago

Guess that didn't work :(

schmitzoide commented 7 years ago

Can you delete the injection project

How do I do that?

johnno1962 commented 7 years ago

If you send your TeamViewer co-ord to injectionapp at johnholdsworth.com I can take a look

sibljon commented 7 years ago

I'm experiencing the same issue (first injection works, subsequent fail with a no suitable image found error), but I'm able to resolve it by rm -rf ./iOSInjectionProject within the .../DerivedData/.../Logs/Build/... directory that is printed in the Injection Console. @johnno1962 this is what you were asking @schmitzoide to try, right?

However, I'm not sure that this is a complete solution, as I am not able to get injection fully working as I subsequently experience an issue which I've detailed in #10 after the swizzling stage.

schmitzoide commented 7 years ago

That was it yes @sibljon, I'll try to do what you've done. But do you do it all the time that you inject?

sibljon commented 7 years ago

Yes, unfortunately I have to manually delete the directory every time I inject :-/ El El vie, ene. 13, 2017 a las 3:41 PM, Marcel Schmitz < notifications@github.com> escribió:

That was it yes @sibljon https://github.com/sibljon, I'll try to do what you've done. But do you do it all the time that you inject?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/johnno1962/InjectionApp/issues/2#issuecomment-272458447, or mute the thread https://github.com/notifications/unsubscribe-auth/AAa_wwR9sxtG1yuUuuNAXZs8qRZM0y-oks5rR40ngaJpZM4LeUMc .