johnno1962/injectionforxcode

πŸ’‰ *** Re-compilation failed. (When multiple projects exist in workspace.)

1357594445 opened this issue Β· 7 comments

πŸ’‰ *** Re-compilation failed (/Users/administrator/Library/Containers/com.johnholdsworth.InjectionIII/Data/command.sh)
In file included from /Users/administrator/Desktop/xxx/VVMeAccountViewController.m:11: fatal error: 'BaseViewController.h' file not found
#import "BaseViewController.h"

VVMeAccountViewController.m is in xxx.project.
BaseViewController.h is in RootLib.project.

Hi, I’m sorry but this isn’t supported.

I got this error:

πŸ’‰ *** Compiling /Users/hashem/Documents/Xcode Projects/MyApp/SlideMenu/Profile/UpdateProfile/UpdateProfileViewController.swift ***

πŸ’‰ *** Re-compilation failed (/Users/hashem/Library/Containers/com.johnholdsworth.InjectionIII/Data/command.sh)
<unknown>:0: error: error opening input file '/Users/hashem/Documents/Xcode Projects/MyApp/SlideMenu/Settings/SettingsInteractor.swift' (No such file or directory)
 ***

any idea? I checked, file exists at that directory.

This is probably sue to a difference between cpp/lower case in the project and the actual file. Check the file /Users/hashem/Library/Containers/com.johnholdsworth.InjectionIII/Data/command.sh

Thanks for quick answer, may you explain more or what should I do to solve this?
I opened the command.sh file, it's a verbose file!

You need to check the name of the file on the disk is exactly the same as the path in the command.sh. Viewcontroller.swift and ViewController.swift are not the same for injection.

the same issue:
error opening input file '/Users/mac/Desktop/iOS_PRJ/GitCode/Photo/LittleMan/LIttleMan/Classes/Main/Friends/Views/LMHTMLCell.swift' (No such file or directory)

Hi, If this is the App Store version of InjectionIII this is probably to do with case sensitivity. Please try one of the GitHub releases if you haven't already.