Redefinition of module 'AppleTextureEncoder'

I have been working on a project before this year's new OSX and Xcode update and I was able to build the project with little trouble. But since updating to any of the beta software, including the latest version of Tahoe 26.0 and Xcode26-beta4 I have not been able to build this same project. I have tried reseting package cache and updating to the latest package versions. As well I have deleted the derived data and cleaning the build folder. The following error output is one of 55 errors I am getting. It seems like the modules for the XRSimulator are redefinitions from those for MacOSX. I don't know how to limit or redirect the definition of the modules to just those for the XRSimulator (this is a VisionOS project). I also tried all of this on different betas of Xcode with all the same result. This bug is causing a problem with the 16.4 version of Xcode as well. I would really really appreciate anybody's help on this.

in file included from /Applications/Xcode.app/Contents/Developer/Platforms/XRSimulator.platform/Developer/SDKs/XRSimulator26.0.sdk/usr/include/module.modulemap:2:

Previously defined here : CommandLineTools/SDKs/MacOSX26.0.sdk/usr/include/AppleTextureEncoder.modulemap
Answered by JMGSalinas in 854775022

Ok I downloaded the latest version of macOS Tahoe beta and after breaking Xcode I reinstalled the latest beta version of that. And now I get a bug pertinent to the work Im doing now the development environment. I don't understand why we have to work under unstable beta environments. I really do want AR applications to flourish but they won't ever if this is the type of conditions developers have to be under to make software. This bug has held me up for over a month.

I tried a few different things on top of what I mentioned before. I went through the build settings and removed any reference to macosx or macos26 but that didn't really do much. I also tried the classic boot down and back up but that also has not worked. As a last ditch effort I also deleted the macosx sdk via terminal but I now end up with a different failure stating that this is a necessary dependency for Xcode. Im at my wits end sadly. I would appreciate a much more stable platform to build AR apps but this is pretty ridiculous.

Accepted Answer

Ok I downloaded the latest version of macOS Tahoe beta and after breaking Xcode I reinstalled the latest beta version of that. And now I get a bug pertinent to the work Im doing now the development environment. I don't understand why we have to work under unstable beta environments. I really do want AR applications to flourish but they won't ever if this is the type of conditions developers have to be under to make software. This bug has held me up for over a month.

Redefinition of module 'AppleTextureEncoder'
 
 
Q