johnno1962 / injectionforxcode

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

My Project => Objective-C xcworkspace #126

Open yilongmd opened 8 years ago

yilongmd commented 8 years ago

Not supported xcworkspace?

* Could not locate project's main.(m|mm) to patch.
To patch a Swift project please create an empty main.m *

 at /Users/syl/Library/Application Support/Developer/Shared/Xcode/Plug-ins/InjectionPlugin.xcplugin/Contents/Resources/common.pm line 57.
 main::error('Could not locate projectÉmain.(m|mm) to patch.aTo patch a ...') called at /Users/syl/Library/Application Support/Developer/Shared/Xcode/Plug-ins/InjectionPlugin.xcplugin/Contents/Resources/patchProject.pl line 80

yilongmd commented 8 years ago

Pods xcworkspace

johnno1962 commented 8 years ago

.xcworkspace should be supported. Problem is you are trying to patch a project that does not have a main.m which is required for device injection even if the project is Swift.

johnno1962 commented 7 years ago

Just in time for Christmas I’ve been able to releaes a new binary version of Injection which makes getting up and running a breeze http://johnholdsworth.com/injection.html. If you have any problems please report them on it’s support repo https://github.com/johnno1962/InjectionApp. Happy Holidays! 🎅🍷🎄☃