Single Target for iOS & VisionPro App

Hi, I have an iOS app minimum iOS target 15.0 and trying to make compatible for visionPro. I have single target and using more then 10 third party frameoworks in iOS app like (facebook,googlesignin,and few others) which doesn't support visionOS till yet.

  1. My question is how I can strip out all those 3rd party libraries which are not compatible for visionOS but included/imported for iOS? Currently, if I strip out libraries and put conditional checks in swift files based on target, it would create a mess in whole app.

  2. Should I create separate target/project for visionOS and develop app without using those unsupported libraries? Will apple allow me to upload separate apps for iOS & visionPro. This approach would have alot of duplication in code and very difficult to scale.

Any thoughts, best approach to handle this use-case please.

Regards,

Yasir

Single Target for iOS & VisionPro App
 
 
Q