That’s it, we use Google Maps sdk in our APP, but Google Maps sdk supports iOS7 at least. Now after integration, it runs well on iOS7 and above, but it crashes when running on iOS7 and below. I put the project with Google I commented out all the map-related places, leaving only a Google Maps framework, but it still crashed as soon as it was run. I was wondering if there is a way to determine whether to link this package based on the iOS version of the mobile system? At what stage did this crash occur?
There are generally several methods for solving this problem:
Continue to use this version of the SDK
Set the framework of your sdk to option
In the loading place, including the import and execution place, add judgment (
if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7)
). For those below 7, use the system map SDK.Upgrade your App version to 7.0 (as far as the current situation is concerned, support from iOS7 is already OK).
Use a lower version of the Google Maps SDK that supports iOS6 (this method is not good, lower versions are prone to various problems.)
Use other map SDKs.