Is it possible to use iOS framework on xrOS?

I see the error below.

but incompatible platform (have 'iOS', need 'xrOS-sim')

The framework needs to be rebuilt for visionOS to be linked/loaded by a visionOS app – both ld and dyld enforce this, and will only allow iOS frameworks to be loaded by compatible iOS apps on visionOS.

Also worth noting: the error indicates you are building for simulator, but trying to link a framework built for an iOS device. You need a framework built for the visionOS simulator, which is different than (and not compatible with) a physical Vision Pro device.

Is it possible to use iOS framework on xrOS?
 
 
Q