can i use below one ?
let app = UIApplication.value(forKeyPath: #keyPath(UIApplication.shared)) as? UIApplication
for app store build instead of
let app = UIApplication.shared
in my application i was using let app = UIApplication.value(forKeyPath: #keyPath(UIApplication.shared)) as? UIApplication at some places inside my SDK but after integrating my SDK in notification extension i found compilation issue due UIApplication.shared is unavailable for extension. i replaced UIApplication.shared with UIApplication.value(forKeyPath: #keyPath(UIApplication.shared)) as? UIApplication. Now i can build my application successfully.