johnno1962 / InjectionIII

Re-write of Injection for Xcode in (mostly) Swift
MIT License
3.98k stars 316 forks source link

Inject storyboard: no such file or directory #97

Closed acecilia closed 5 years ago

acecilia commented 5 years ago

I have InjectionIII up and running properly with code. When I edit a storyboard and save it, the injection stops working and the following line appears on the debug terminal:

/bin/bash: line 0: cd: /Users/andres/Library/Developer/Xcode/DerivedData/someRandomStringkiadjsflkasnf/Build/Products/Debug-iphonesimulator/App\ Name.app: No such file or directory

The following command executes without problems:

cd /Users/andres/Library/Developer/Xcode/DerivedData/someRandomStringkiadjsflkasnf/Build/Products/Debug-iphonesimulator/App\ Name.app

Note the app name has a space. Any idea of whats going on? Thanks :)

zenangst commented 5 years ago

@acecilia hey mate, sorry for the delay. Have you tried removing the space from the target name to help out InjectionIII resolve the correct path?

acecilia commented 5 years ago

@zenangst I did not try, and at the moment I am not going to be able to give it a shot. Feel free to close the issue, thanks for the answer!