Hello,
I have a workspace with a framework project from before Xcode 14. It links to four external frameworks(no cocoa pods or SPM).
When I compile, I get the following error:
Dependency for P0:target-MyTarget-98b0bea19fac02a3306518d8bebb7db7e90b4d78a49724033552d3dffd5a3b44-:Release:SwiftDriver Compilation MyTarget normal arm64 com.apple.xcode.tools.swift.compiler is not absolute (Frameworks/Mapbox.framework/Headers/MGLMapCamera.h).
And I get one of these for every single header in the framework. I don't get this if I use a new project created in Xcode 14.
What gives? I've been searching high and low for any information on what that even means to no avail. I even searched the SwiftDriver source on GitHub.
For that matter, why is the swift compiler doing anything with an Objective C SDK?
Any insights are appreciated.
So I don't know if this will help anyone else but I was able to fix this in my project as follows -
- Remove the reference to the frameworks.
- If your frameworks are in a folder, get them out of the folder and into the same folder that contains your project file.
- Deleted derived data content.
- Re-add your frameworks.
That fixed it. I don't understand why that would fix it beyond a toolchain bug affecting upgraded projects.