johnno1962 / injectionforxcode

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

App name with spaces will not build in InjectionBundle #120

Closed gregpardo closed 8 years ago

gregpardo commented 8 years ago

In the example here the app name would be 'My App.app'

clang: error: no such file or directory: 'App.app/Frameworks'

What's happening is the -F linker flag is getting split some how which results in chunks of the name with spaces getting linked as flags. So you have something like this in Other Linker Flags.

-L'/Applications/Xcode.....
-F/Users/....My
App.app/Frameworks
-framework
Alamofire

So it looks to me like the -F has to do exactly what -L is doing and wrap the string in ' symbol

johnno1962 commented 8 years ago

Hi, I’ve pushed a fix for this. Can you check it works now?

gregpardo commented 8 years ago

The bundle now builds so I think we can close this. I'm having some other issues though which I think are unrelated. I'll try to sort them out.