Closed tlacan closed 8 months ago
Hi, have a look at your build logs. If the file you're trying to inject isn't in the log, Injection doesn't know how to build it.
Seems to be a known limitation
'
The Xcode activity log xcactivitylog
does not automatically track changes in Frameworks. xcactivitylog
is primarily designed to log build and debugging events for the "primary" target of a build - essentially, the main app that is being developed.
'
would need to try with XCode16
That's news to me !
Hello, Thank you for the amazing work. On most of my projects it works spotless,
Unfortunately, on the one I am working one currently, it does not work.
The project is composed of multiple targets and frameworks. On each target the SPM "inject" has been added. There are no optimisation in debug for every target. On every target there are the flags -Xlinker and -interposable.
The SwiftUI files where I make the changes are in the ****SwiftUI target
There no optimisation in debug for every targets On every targets there is the flags -Xlinker and -interposable
In the console I have the following info
💉 InjectionIII connected .xcworkspace 💉 Watching files under the directory /ios
💉 ⚠️ Could not locate compile command for “” in /Library/Developer/Xcode/DerivedData/***/Logs/Build/. This could be due to one of the following:
When I make changes on the main target, there is not the "Could not locate compile command" message
I have tried to delete derived data and rebuilt it changed nothing. Is there a limitation and Injection does not manage changes in other frameworks ? Or should I try something ?