johnno1962 / injectionforxcode

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

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

Closed 1357594445 closed 3 years ago

1357594445 commented 4 years ago

πŸ’‰ *** 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.

johnno1962 commented 4 years ago

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

hashem-intelligentb commented 4 years ago

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.

johnno1962 commented 4 years ago

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

hashem-intelligentb commented 4 years ago

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!

johnno1962 commented 4 years ago

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.

DaiyiLL commented 2 years ago

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)

johnno1962 commented 2 years ago

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.