johnno1962 / injectionforxcode

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

Injection doesn't work for project with a space in the name #29

Closed johnvuko closed 10 years ago

johnvuko commented 10 years ago

When i click on inject code have this:

real    0m0.098s
user 0m0.075s
sys  0m0.020s

cp: /Users/jonathan/Library/Developer/Xcode/DerivedData/Les_joies_du_code-dteaychuguzfhibcrcmfltklihrf/Build/Intermediates/Lesjoiesducode.build/Debug-iphonesimulator/Lesjoiesducode.build/Objects-normal/x86_64/main.o: No such file or directory

Could not copy object at /Users/jonathan/Library/Application Support/Developer/Shared/Xcode/Plug-ins/InjectionPlugin.xcplugin/Contents/Resources/common.pm line 42.
   main::error(‘Could not copy object’) called at /Users/jonathan/Library/Application Support/Developer/Shared/Xcode/Plug-ins/InjectionPlugin.xcplugin/Contents/Resources/injectSource.pl line 282

*** Bundle build failed ***

Check Bundle project.


It seems you try to do something in this folder:

~/Library/Developer/Xcode/DerivedData/Les_joies_du_code-dteaychuguzfhibcrcmfltklihrf/Build/Intermediates/Lesjoiesducode.build/Debug-iphonesimulator/Lesjoiesducode.build/Objects-normal/

whereas you sould do in this folder:

~/Library/Developer/Xcode/DerivedData/Les_joies_du_code-dteaychuguzfhibcrcmfltklihrf/Build/Intermediates/Les joies du code.build/Debug-iphonesimulator/Les joies du code.build

johnno1962 commented 10 years ago

Thanks for the bug report. I’ve pushed an update to fix this. Can you try it out?

johnvuko commented 10 years ago

Yes it works. Thank you.