Jelajahi Sumber

fix:优化高德地图一些配置。

“HeShaoZe” 5 bulan lalu
induk
melakukan
5d6b5f4cdd

+ 1 - 1
ios/Podfile

@@ -28,7 +28,7 @@ require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelpe
 flutter_ios_podfile_setup
 
 target 'Runner' do
-  use_frameworks!  :linkage => :static  # 强制使用静态链接
+  use_frameworks!  #:linkage => :static  # 强制使用静态链接
 
   flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
   target 'RunnerTests' do

+ 3 - 3
ios/Podfile.lock

@@ -36,7 +36,7 @@ PODS:
   - in_app_review (2.0.0):
     - Flutter
   - map_amap_ios (0.0.1):
-    - AMap3DMap (~> 10.1.200)
+    - AMap3DMap
     - Flutter
   - MMKV (2.2.2):
     - MMKVCore (~> 2.2.2)
@@ -186,7 +186,7 @@ SPEC CHECKSUMS:
   gravity_engine: 9075091c4adcd0169506f97688ebac7f5454c4ac
   in_app_purchase_storekit: d1a48cb0f8b29dbf5f85f782f5dd79b21b90a5e6
   in_app_review: 5596fe56fab799e8edb3561c03d053363ab13457
-  map_amap_ios: 15cdf8a7c32fc8f366792c37a5200e540677d44f
+  map_amap_ios: 93341b0b454053f7595cef3eb9a36a054f2e3099
   MMKV: b4802ebd5a7c68fc0c4a5ccb4926fbdfb62d68e0
   mmkv_ios: b1c2c12115c0ff971534015f61aea8de18d8d126
   MMKVCore: a255341a3746955f50da2ad9121b18cb2b346e61
@@ -204,6 +204,6 @@ SPEC CHECKSUMS:
   video_player_avfoundation: 2cef49524dd1f16c5300b9cd6efd9611ce03639b
   wechat_kit: b50b40a52ad88cb9e378a32e300a2d8bdc0e4726
 
-PODFILE CHECKSUM: e42887bf55eb1b10a4f85715faa4a6e144da59fc
+PODFILE CHECKSUM: 12c0008afa30a644ebeff6ac21a84ac894054dab
 
 COCOAPODS: 1.16.2

+ 18 - 0
ios/Runner.xcodeproj/project.pbxproj

@@ -200,6 +200,7 @@
 				9705A1C41CF9048500538489 /* Embed Frameworks */,
 				3B06AD1E1E4923F5004D2608 /* Thin Binary */,
 				3E12B8E13B54137B6B4F7603 /* [CP] Copy Pods Resources */,
+				180583FFEACAD8F6AF66EAB5 /* [CP] Embed Pods Frameworks */,
 			);
 			buildRules = (
 			);
@@ -271,6 +272,23 @@
 /* End PBXResourcesBuildPhase section */
 
 /* Begin PBXShellScriptBuildPhase section */
+		180583FFEACAD8F6AF66EAB5 /* [CP] Embed Pods Frameworks */ = {
+			isa = PBXShellScriptBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+			);
+			inputFileListPaths = (
+				"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
+			);
+			name = "[CP] Embed Pods Frameworks";
+			outputFileListPaths = (
+				"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+			shellPath = /bin/sh;
+			shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
+			showEnvVarsInLog = 0;
+		};
 		3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
 			isa = PBXShellScriptBuildPhase;
 			alwaysOutOfDate = 1;

+ 4 - 5
plugins/map_amap_ios/ios/map_amap_ios.podspec

@@ -1,7 +1,5 @@
-#
-# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html.
-# Run `pod lib lint map_amap_ios.podspec` to validate before publishing.
-#
+# map_amap_ios.podspec
+
 Pod::Spec.new do |s|
   s.name             = 'map_amap_ios'
   s.version          = '0.0.1'
@@ -15,7 +13,8 @@ A new Flutter plugin project.
   s.source           = { :path => '.' }
   s.source_files = 'Classes/**/*'
   s.dependency 'Flutter'
-  s.dependency 'AMap3DMap', '~> 10.1.200'  # 3D地图SDK
+  s.dependency 'AMap3DMap'#, '~> 10.1.200'  # 3D地图SDK
+  s.static_framework = true  # 官方推荐方式[4](@ref)
   s.platform = :ios, '12.0'
 
   # Flutter.framework does not contain a i386 slice.