flutter-mapbox-gl / maps

A Mapbox GL flutter package for creating custom maps
Other
1.04k stars 503 forks source link

iOS: Unable to build plugin frameworks for simulator #1258

Closed ChannelYu closed 1 year ago

ChannelYu commented 1 year ago

I trying to add Flutter to existing app:

  1. cd som_path
  2. execute flutter create --template module my_flutter
  3. cd my_flutter
  4. open pubspec.yaml
  5. add mapbox_gl: 0.16.0 to dependencies
  6. execute flutter build ios-framework

then throws:

Unable to build plugin frameworks for simulator: 2023-01-03 14:54:13.405 xcodebuild[4912:5203438] DVTAssertions: Warning in /System/Volumes/Data/SWE/Apps/DT/BuildRoots/BuildRoot2/ActiveBuildRoot/Library/C aches/com.apple.xbs/Sources/DVTiOSFrameworks/DVTiOSFrameworks-21506/DTDeviceKitB ase/DTDKRemoteDeviceData.m:382 Details: (null) deviceType from 00008101-001118381EE9003A was NULL when -platform called. Object: <DTDKMobileDeviceToken: 0x7fda26e0f1e0> Method: -platform Thread: <NSThread: 0x60000134ffc0>{number = 2, name = (null)} Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide. 2023-01-03 14:54:13.608 xcodebuild[4912:5203470] DVTAssertions: Warning in /System/Volumes/Data/SWE/Apps/DT/BuildRoots/BuildRoot2/ActiveBuildRoot/Library/C aches/com.apple.xbs/Sources/DVTiOSFrameworks/DVTiOSFrameworks-21506/DTDeviceKitB ase/DTDKRemoteDeviceData.m:382 Details: (null) deviceType from 00008101-001118381EE9003A was NULL when -platform called. Object: <DTDKMobileDeviceToken: 0x7fda26e0f1e0> Method: -platform Thread: <NSThread: 0x600001359a00>{number = 8, name = (null)} Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide. 2023-01-03 14:54:13.679 xcodebuild[4912:5203470] DVTAssertions: Warning in /System/Volumes/Data/SWE/Apps/DT/BuildRoots/BuildRoot2/ActiveBuildRoot/Library/C aches/com.apple.xbs/Sources/DVTiOSFrameworks/DVTiOSFrameworks-21506/DTDeviceKitB ase/DTDKRemoteDeviceData.m:382 Details: (null) deviceType from 00008101-001118381EE9003A was NULL when -platform called. Object: <DTDKMobileDeviceToken: 0x7fda26e0f1e0> Method: -platform Thread: <NSThread: 0x600001359a00>{number = 8, name = (null)} Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide. BUILD FAILED

The following build commands failed: Ld /xxxx/build/i os/framework/Debug/iphonesimulator/Pods.build/Debug-iphonesimulator/MapboxAnnot ationExtension.build/Objects-normal/arm64/Binary/MapboxAnnotationExtension normal arm64 (in target 'MapboxAnnotationExtension' from project 'Pods') (1 failure)

Flutter doctor -v:

[✓] Flutter (Channel stable, 3.3.4, on macOS 12.6.1 21G217 darwin-x64, locale zh-Hans-CN) • Flutter version 3.3.4 on channel stable at /Users/sven/fvm/versions/stable • Upstream repository https://github.com/flutter/flutter.git • Framework revision eb6d86ee27 (3 months ago), 2022-10-04 22:31:45 -0700 • Engine revision c08d7d5efc • Dart version 2.18.2 • DevTools version 2.15.0 • Pub download mirror https://pub.flutter-io.cn • Flutter download mirror https://storage.flutter-io.cn

[✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1) • Android SDK at /Users/sven/Library/Android/sdk • Platform android-33, build-tools 32.1.0-rc1 • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840) • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.2) • Xcode at /Applications/Xcode.app/Contents/Developer • Build 14C18 • CocoaPods version 1.11.3

[✓] Android Studio (version 2021.2) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)

[✓] Connected device (1 available) • iPhone 14 Pro (mobile) • 280F797D-2FFD-4EE5-B1F3-886EFA8C4C6E • ios • com.apple.CoreSimulator.SimRuntime.iOS-16-2 (simulator)

[✓] HTTP Host Availability • All required HTTP hosts are available

• No issues found!

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.