feat: 支持模拟器定位与地图 fallback

This commit is contained in:
2026-07-24 10:04:55 +08:00
parent 0e0415eec4
commit f87b13cc05
24 changed files with 4040 additions and 2161 deletions

16
Podfile
View File

@ -1,10 +1,17 @@
platform :ios, '16.0'
project 'suixinkan.xcodeproj',
'Debug' => :debug,
'SimulatorDebug' => :debug,
'Release' => :release
target 'suixinkan' do
use_frameworks!
pod 'AMapLocation-NO-IDFA'
pod 'AMap3DMap-NO-IDFA'
pod 'AMapSearch-NO-IDFA'
# 高德 SDK 未提供 arm64-simulator slice仅在真机配置中接入。
pod 'AMapFoundation-NO-IDFA', :configurations => ['Debug', 'Release']
pod 'AMapLocation-NO-IDFA', :configurations => ['Debug', 'Release']
pod 'AMap3DMap-NO-IDFA', :configurations => ['Debug', 'Release']
pod 'AMapSearch-NO-IDFA', :configurations => ['Debug', 'Release']
pod 'UMCommon'
pod 'UMDevice'
pod 'UMAPM'
@ -24,6 +31,9 @@ post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '16.0'
if target.name == 'Pods-suixinkanTests' && config.name == 'SimulatorDebug'
config.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = ''
end
end
end
end