使用google_maps_flutter-0.5.28+1 app后,在ios中不工作。

问题描述 投票:-1回答:1

我使用google_maps_flutter-0.5.27+1和后,我更新了我的macos到macos catalina 10.15.5和xcode到xcode 11.5和现在我使用flutter 1.17.2i更新了我所有的包和更新google_maps_flutter到0.5.28+1和当我运行我的应用程序在真正的ios ipad我得到这个错误。

      Launching lib/main.dart on iPad in debug mode...
Automatically signing iOS for device deployment using specified development team in Xcode project: 83YNLV6KMA
Running pod install...                                             36.8s
Xcode build done.                                           50.6s
Failed to build iOS app
Error output from Xcode build:
↳
    2020-06-02 11:25:57.501 xcodebuild[33948:249015]  DTDeviceKit: deviceType from 4a5c1dc1e2024c618604a3b9f8f9d55e73592c5c was NULL
    2020-06-02 11:25:57.576 xcodebuild[33948:249009]  DTDeviceKit: deviceType from 4a5c1dc1e2024c618604a3b9f8f9d55e73592c5c was NULL
    ** BUILD FAILED **
Xcode's output:
↳
    Command CompileSwift failed with a nonzero exit code
    /users/dell/desktop/flutter/.pub-cache/hosted/pub.dartlang.org/google_maps_flutter-0.5.28+1/ios/Classes/FLTGoogleMapsPlugin.m:17:14: error: no visible @interface for 'NSObject<FlutterPluginRegistrar>' declares the selector 'registerViewFactory:withId:gestureRecognizersBlockingPolicy:'
      [registrar registerViewFactory:googleMapFactory
       ~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    1 error generated.
    note: Using new build system
    note: Building targets in parallel
    note: Planning build
    note: Constructing build description
Could not build the precompiled application for the device.

Error launching application on iPad.
Exited (sigterm)

如何解决这个错误?

flutter dart
1个回答
-2
投票

它的工作原理后,我创建新的flutter项目,并移动所有文件到新的项目。

© www.soinside.com 2019 - 2024. All rights reserved.