johnno1962 / injectionforxcode

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

could not find file #253

Closed meiyongsheng closed 2 years ago

meiyongsheng commented 6 years ago

Compiling /Users/mys/Desktop//GiftedStudent1/TKApp/modules/finances/Controller/TFSFinancesRootViewController.m Re-compilation failed (/Users/mys/Library/Containers/com.johnholdsworth.InjectionIII/Data/command.sh) fatal error: malformed or corrupted AST file: 'could not find file '/Users/mys/Desktop/***/GiftedStudent1/TKApp/Modules/sso/Model/TFSFundAccountInfo.h' referenced by AST file '/Users/mys/Library/Developer/Xcode/DerivedData/Build/Intermediates.noindex/PrecompiledHeaders/GCS-Prefix-cqmfxvynofpsafafwdhhlfljpkor/GCS-Prefix.pch.pch'' note: after modifying system headers, please delete the module cache at '/Users/mys/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/1CC1MBM3VFV58' 1 error generated.

johnno1962 commented 6 years ago

This can be to do with the fact injected uses a case sensitive file system.

aiewing commented 3 years ago

I also had this problem

johnno1962 commented 3 years ago

What version are you using? Is this InjectionIII? Can you download one of the non-sandboxed releases from https://github.com/johnno1962/InjectionIII/releases and you can eliminate case sensitivity problems.

aiewing commented 3 years ago

What version are you using? Is this InjectionIII? Can you download one of the non-sandboxed releases from https://github.com/johnno1962/InjectionIII/releases and you can eliminate case sensitivity problems.

I tried "2.7.0 for Big Sur & Apple Silicon with integrated unhide" just now. But InjectionIII cant connect to project.

johnno1962 commented 3 years ago

I'll need to know a lot more about your project to be able to help. Are you able to TeamView or Google Hangout?

aiewing commented 3 years ago

I'll need to know a lot more about your project to be able to help. Are you able to TeamView or Google Hangout?

I download it from the Appstore(v2.6.3), run it and commond + S. (I dont add "-Xlinker -interposable", because it will cause an error) 💉 Compiling /Users/aiewing/QKGit/FlagiOS/FLAG/Me/Fans/MeFanVC.m 💉 *** Re-compilation failed (see: /var/folders/p8/3ysnw7ln1q71k26rxxfflh140000gn/T/com.johnholdsworth.InjectionIII/command.sh) fatal error: malformed or corrupted AST file: 'could not find file '/Users/aiewing/QKGit/FlagiOS/FlAG/flag-prefiex.pch' referenced by AST file '/Users/aiewing/Library/Developer/Xcode/DerivedData/FLAG-ggjctuchlposkugvjofgeahzrgdz/Build/Intermediates.noindex/PrecompiledHeaders/SharedPrecompiledHeaders/15835372413573028407/flag-prefiex.pch.gch'' note: after modifying system headers, please delete the module cache at '/Users/aiewing/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/X14N2TCTAXZP' 1 error generated.

aiewing commented 3 years ago

My project is mix of OC and swift, and mainly is Swift. appDelegate is swift.

johnno1962 commented 3 years ago

ObjectC + Swift + InjectionIII is not a good mix. The problem is intermediate files created by swift are deleted and not available when it come to injecting. It works for some people but you may not be able to use injection on your particular project. Without being able to see your project I can't say much more

aiewing commented 3 years ago

I'll need to know a lot more about your project to be able to help. Are you able to TeamView or Google Hangout?

I'll import the project to my computer later and contact you again. The company computer can't install these.