johnno1962 / injectionforxcode

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

error: this mode requires at least one input file #187

Closed haashem closed 7 years ago

haashem commented 7 years ago

when I inject source, I see this error and injection fails:

`Connected to "Injection" plugin, ready to load x86_64 code. Compiling /Users/hashem/Desktop/MyApp 2/MyApp/Tabs/Menu/View/Cell/MenuItemCell.swift

:0: error: cannot open file '/Users/hashem/Desktop/MyApp' (Is a directory) :0: error: this mode requires at least one input file` it seems injection plugin has some problem with spacing in folder name. do you have any idea to solve this?
johnno1962 commented 7 years ago

I’m afraid injection does not support spaces in the path to the project.

haashem commented 7 years ago

if possible add a hint in error message to clearly specify error origin.

thanks