johnno1962 / injectionforxcode

Runtime Code Injection for Objective-C & Swift
MIT License
6.55k stars 566 forks source link

problem when using injection #235

Open Elenionl opened 6 years ago

Elenionl commented 6 years ago

when pressed ctrl+= Injection Console show a failure as follow

buidRoot: /Users/XXX/Library/Developer/Xcode/DerivedData/ProjectName-emsjnuasnezifeancktgoxvtioxd/Build

logDir: /Users/XXX/Library/Developer/Xcode/DerivedData/ProjectName-emsjnuasnezifeancktgoxvtioxd/Logs/Build


Learnt compile: 
...

real    0m0.425s

user   0m0.015s

sys    0m0.262
s
sh: Utility/XXXHelper.m: No such file or directory

*** Learnt compile failed ***

 
at /private/var/folders/lc/2cm1y5vx061cj_q2bx99t_br0000gp/T/AppTranslocation/5BE5DC22-FE07-4FBE-A772-EB1BE2ADD971/d/Injection.app/Contents/Resources/common.pm line 61.
    main::error(‘Learnt compile failed’) called at /var/folders/lc/2cm1y5vx061cj_q2bx99t_br0000gp/T/AppTranslocation/5BE5DC22-FE07-4FBE-A772-EB1BE2ADD971/d/Injection.app/Contents/Resources/injectSource.pl line 389

*** Bundle build failed ***

Expecting you help!

polac24 commented 6 years ago

Can you provide more logs from "Injection Console"? (especially these replaced by "...")

johnno1962 commented 6 years ago

Is this to do with spaces in the path to the file perhaps?