johnno1962 / injectionforxcode

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

** Could not locate project's main.(m|mm) to patch.
 #124

Closed JackGuoFranklin closed 8 years ago

JackGuoFranklin commented 8 years ago


 at /Users/guojunbing23/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/guojunbing23/Library/Application Support/Developer/Shared/Xcode/Plug-ins/InjectionPlugin.xcplugin/Contents/Resources/patchProject.pl line 80

* Bundle build failed *

JackGuoFranklin commented 8 years ago
  1. create a mian.m file 2 .product->injection plugin ->path project for injection