InjectionApp icon indicating copy to clipboard operation
InjectionApp copied to clipboard

Runs fine for the first time

Open schmitzoide opened this issue 9 years ago • 8 comments

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?

schmitzoide avatar Jan 09 '17 14:01 schmitzoide

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.

johnno1962 avatar Jan 10 '17 12:01 johnno1962

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

schmitzoide avatar Jan 10 '17 16:01 schmitzoide

Guess that didn't work :(

schmitzoide avatar Jan 11 '17 11:01 schmitzoide

Can you delete the injection project

How do I do that?

schmitzoide avatar Jan 13 '17 09:01 schmitzoide

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

johnno1962 avatar Jan 13 '17 13:01 johnno1962

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.

sibljon avatar Jan 13 '17 13:01 sibljon

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?

schmitzoide avatar Jan 13 '17 14:01 schmitzoide

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 < [email protected]> 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 .

sibljon avatar Jan 15 '17 13:01 sibljon