AdServices.framework missing crash on iOS 16 and Below

I have a project, when compiled with Xcode 14 works fine on devices iOS17 and below.

If I compile the exact same project with Xcode 15, it will run fine on iOS17 but it will crash on launch for any earlier iOS version with the following message:

Termination Description: DYLD, dependent dylib '/System/Library/Frameworks/AdServices.framework/AdServices' not found for [...] tried but didn't find: '/System/Library/Frameworks/AdServices.framework/AdServices'

As far as I am aware iOS 14+ should have adservices framework.

I see this thread: https://developer.apple.com/forums/thread/673708 , where the solution was to set Adservices.framework to optional, but given the compile works fine in Xcode 14 and ios14+ has the framework, I am dubious about this being the answer.

AdServices.framework missing crash on iOS 16 and Below
 
 
Q