johnno1962 / injectionforxcode

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

Does it work with Swift 4? #247

Closed dcb6 closed 6 years ago

dcb6 commented 6 years ago

I've downloaded the app as well as performed several extra steps as outlined in this page to try to get it working:

https://iosdevcenters.blogspot.com/2015/12/how-to-delete-derived-data-and-clean.html

Should this work with Swift 4? For me, when I press "ctrl + =" and xcode is in focus, nothing happens and I get the noise suggesting that this command does not do anything. I have made sure that Injection is running.

johnno1962 commented 6 years ago

I’m not sure version you are using? Can you try the version in the Mac App Store please. It should work fine with Swift 4. http://johnholdsworth.com/injection.html

dcb6 commented 6 years ago

Thanks for the reply, I got it working. I was following the instructions from the Github Readme rather than the link that you sent so I was missing the line of code that goes in AppDelegate.