johnno1962 / injectionforxcode

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

Could not open "iOSInjectionProject/InjectionBundle.xcodeproj/project.pbxproj" as: No such file or directory #99

Closed chatwyn closed 8 years ago

chatwyn commented 8 years ago

Copying iOSBundleTemplate into project.

 * Could not open "iOSInjectionProject/InjectionBundle.xcodeproj/project.pbxproj" as: No such file or directory 

 at /Users/caowenbo/Library/Application Support/Developer/Shared/Xcode/Plug-ins/InjectionPlugin.xcplugin/Contents/Resources/common.pm line 57.
 main::error('Could not open "iOSInjectionProject/InjectionBundle.xcodeproj...') called at /Users/caowenbo/Library/Application Support/Developer/Shared/Xcode/Plug-ins/InjectionPlugin.xcplugin/Contents/Resources/common.pm line 77
 main::loadFile('iOSInjectionProject/InjectionBundle.xcodeproj/project.pbxproj') called at /Users/caowenbo/Library/Application Support/Developer/Shared/Xcode/Plug-ins/InjectionPlugin.xcplugin/Contents/Resources/injectSource.pl line 80 
** Bundle build failed ***

johnno1962 commented 8 years ago

Hi, try downloading the plugin from the github source and rebuilding it. This shouldn’t happen!

castus commented 8 years ago

Same issue here. I removed plugin from Plug-ins directory, than downloaded from GitHub source, then built the project, but no luck :(

johnno1962 commented 8 years ago

Can you delete the iOSInjectionProject and try again?

castus commented 8 years ago

I deleted whole project, downloaded Github repo as zip file, than unzip and run. Same error. Is there some way I can help you resolve this issue? Some logs, code modifications, just tell me.

johnno1962 commented 8 years ago

Something is wrong with the plugin build. Sorry to keep trying the obvious but can you delete ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins/InjectionPlugin.xcplugin, and rebuild it using the zipped project. If you want I can TeamView to try to work out the problem.

johnno1962 commented 8 years ago

BTW, is you project’s .xcodeproj or .xcworkspace in the main directory?

liweiBingo commented 8 years ago

I also met this problem

castus commented 8 years ago

@johnno1962 I deleted whole project, still have this issue.

johnno1962 commented 8 years ago

Hi @castus, I appreciate your presistence! The only way to track this down is if I “TeamViewer” onto your machine at some point. If you’re amenable send your coordinates to injection @ johnholdsworth.com.

chatwyn commented 8 years ago

😂

dusi commented 8 years ago

Same issue here..for some projects it works, for the one I'd love to use it for it doesn't :) (yes .xcodeproj not workspaces).

I get exactly the same log as above

johnno1962 commented 8 years ago

The only way to track this down is if I “TeamViewer” onto someone’s machine at some point. If you’re amenable send your coordinates to injection @ johnholdsworth.com.

xareelee commented 8 years ago

Same issue here. I think the problem is the file path. There are two InjectionBundle.xcodeproj in the iOSInjectionProject/:

johnno1962 commented 8 years ago

Hi, Thanks for this. Sheds a little more light on the problem. I’ve made a minor change if you want to try it.

dusi commented 8 years ago

It seems like it's fixed the issue for our project...I don't know how to thank you but donate! Thanks John!

johnno1962 commented 8 years ago

Great news, Donations gratefully accepted on PayPal at: injectionforxcode at johnholdsworth.com 👍

xareelee commented 8 years ago

@johnno1962 Thank you. The problem is fixed.

castus commented 8 years ago

Fixed, thank you very much 👏