mapbox / ios-sdk-examples

Live example code for the Mapbox iOS SDK
https://www.mapbox.com/ios-sdk/examples/
Other
95 stars 35 forks source link

UIWebview Deprecated API Usage #373

Closed samirMCS closed 4 years ago

samirMCS commented 4 years ago

i had replace UIWebView to WKWebView. but still got warning form apple.

ITMS-90809: Deprecated API Usage - Apple will stop accepting submissions of apps that use UIWebView APIs . See https://developer.apple.com/documentation/uikit/uiwebview for more information.

so i am search using terminal commands: grep -r 'UIWebView' . i found UIWebView in mapbox Binary file ./Pods/Mapbox-iOS-SDK/dynamic/Mapbox.framework.dSYM/Contents/Resources/DWARF/Mapbox matches

captainbarbosa commented 4 years ago

Hi @samirMCS -

.dSYM files don't contain any functional code. This is debugging metadata that’s been stripped from the Mapbox framework. The reason why you've found this mention of UIWebView in our dSYM is because we link to UIKit and the version of iOS that may include UIWebViews.

UIWebViews don't exist in our actual framework though, which can be confirmed by running nm /mapbox-gl-native-ios/build/ios/pkg/dynamic/Mapbox.framework/Mapbox | grep -i UIWebView. This returns no results. Additionally, we ship a variety of internal apps to TestFlight and the App Store and haven't come across this warning ourselves.

If you're using other third-party frameworks within your app, you may want to confirm using nm that there are no other instances of UIWebView in your project.

(See https://github.com/mapbox/mapbox-gl-native/issues/15559#issuecomment-528128516 for a similar discussion).