我试图使用xCode为iOS构建我的Flutter应用程序,但得到了错误:
.../ios/Runner/GeneratedPluginRegistrant.m:10:9: Module 'sqflite' not found
当我尝试使用flutter和命令构建应用程序时
flutter build ios
我没有任何问题。应用程序构建成功。
我尝试删除ios文件夹中的Pod目录,然后从头开始安装Pod
flutter pub get
pod install
如何用xCode解决这个问题?
我以前在我的pubspec.yaml文件中有这个sqflite,但是最近我消除了依赖,因为我不会使用它,然后我在我的android设备和模拟器上运行这个应用程序--我发现了一个奇怪的错误,谷歌搜索了解决方案,似乎找不到任何帮助,也没有检查堆栈溢出。
到目前为止做了什么:
作为经验规则,我运行了eitherInvalidate来查看问题是否会得到解决,但是它没有工作,所以重启了Android
,这里是的错误
Launching lib/main.dart on sdk gphone x86 arm in debug mode...
Running Gradle task 'assemb
我有一个颤振应用程序,这是很好的工作与火基核心(版本0.4.0)。我将firebase_core升级为0.5.0版本,并根据迁移进行了所有更改。之后,ios构建将给出以下错误
Launching lib/main.dart on iPhone SE (2nd generation) in debug mode...
Running Xcode build...
Xcode build do
我在Android中开发了一个运行MacBook Pro的macOS Mojave应用程序。该应用程序在Android (模拟器和物理设备)上编译和运行,但无法为iOS (模拟器和物理设备)进行编译。如果在pubspec.yaml中没有引用第3 Dart库,那么这两个平台都可以很好地编译。
颤栗医生没有发现任何错误。
这是我的pubspec.yaml:
name: yr_school_bus_cancellations
description: York Region School Bus Cancellations
# The following defines the version a
我试着在我的ios设备上启动一个flutter应用程序,但一直收到这些错误。 我在网上什么都试过了。我不知道该怎么办。 Xcode的输出:带有配置调试===的项目运行器的↳===构建目标运行器 Code Signing Error: Failed to create provisioning profile. The app ID "io.flutter.plugins.firebaseMlVisionExample" cannot be registered to your development team. Change your bundle identifier to
如何在flutter中添加Sqflite依赖?
dependencies:
flutter:
sdk: flutter
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^0.1.0
sqflite: any
english_words: "^3.1.0"
我想测试iOS的应用程序,然后安装了Xcode。
问题是,我在iOS上只有几个构建时警告和两个bug。首先,相机没有打开,我收到这个错误,没有任何堆栈跟踪,如您在下面的图片中看到的。第二个问题是,当我重新构建项目时,共享首选项中添加的图像不会显示。
我发现有些函数与部署目标不兼容,在我的例子中是12.0。我根本不认识斯威夫特。我在ios/Runner/Info.plist中添加了以下设置:
<key>NSCameraUsageDescription</key>
<string>Allow access to camera to capture photos&
试图在我的两个iOS设备上运行这个应用程序,方法是执行flutter run -d all。但是,我得到了database is locked Possibly there are two concurrent builds running in the same filesystem location.错误。
我试过什么
flutter clean
flutter run分别
在终端的iPad上运行应用程序&在xCode上运行iPhone
因此,在我的两个iOS设备上同时运行颤振应用程序似乎有问题。
有什么解决办法吗?
我的人渣不会被激怒,导致这个问题。我的项目是一个全新的项目,但在我的设备上运行该应用程序时遇到了问题(注::#:我确实在我的部门添加了多重索引,但它没有运行implementation 'com.android.support:multidex:2.0.1')
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
// applicationI
在模拟器上运行项目时,似乎一切正常。一旦我试图部署到一个实际的设备,我得到了以下错误:
iOS版本- 13.0
Xcode版本- 11.3.1
颤动版本- 1.12.13+hotfix.8
Building AOT snapshot in release mode (ios-release)...
Building App.framework for arm64...
Building App.framework for armv7...
Building AOT snapshot in release mode (ios-release)... 30.5s
Buil
我正在编写一个flutter应用程序,并且正在尝试学习使用SQLite,根据文档,我在依赖项中添加了包,并运行命令来获取它。
它在编译时给出错误
dependencies:
flutter:
sdk: flutter
sqflite: ^1.1.5
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^0.1.2
我期望应用程序运行
我正在寻找Broadcast receiver的替代方案,然后我在pubspec.yaml中添加了一个插件notifier 1.0.2,得到了如下的错误消息
Because every version of notifier depends on synchronized ^1.5.3+2 and sqflite 1.2.0 depends on synchronized >=2.0.2 <4.0.0, notifier is incompatible with sqflite 1.2.0.
So, because Bluis depends on both sqflite 1.
我正在使用Flutter实现一个移动应用程序。当我试图在Xcode的iOS真实设备上运行应用程序时,我得到了这个错误:
[VERBOSE-2:FlutterObservatoryPublisher.mm(115)] Failed to register observatory port with mDNS.
只要设备连接到苹果电脑并从Xcode运行,这款应用程序就能正常运行。但当我试图直接从设备主屏幕打开它时,它崩溃了。
此问题发生在iOS 14.0和更高版本上。它在iOS 13.x上运行得很好。
当我试图运行我的颤振项目时,我得到:
运行吊舱安装错误
(我看到了另一个非常类似的,但我不确定我是否有同样的问题。)
我正在macOS Mojave版本10.14.6上用颤振编写Dart代码。
我试过:
flutter clean
flutter doctor
flutter upgrade
颤振前疼痛
flutter run
我已经尝试过所有可能的命令组合中的每个颤振命令,但是仍然会出现相同的错误。
颤振医生
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (C
我正在尝试使用Google将一个iOS应用程序部署到设备上,但我在命令行中得到了以下错误:
Building an iOS app requires a selected Development Team with a Provisioning Profile
Please ensure that a Development Team is selected by:
1- Opening the Flutter project's Xcode target with
open ios/Runner.xcworkspace
2- Select the 'Ru
我遇到了一个非常恼人的问题,我的应用程序在Android设备上运行得很好,但在ios系统中,它被粘在了飞溅的屏幕上。我不知道如何以任何可能的方式解决这个问题?/我正在用VMware MacOs (模拟器)测试我的ios应用程序
,您认为bug是如何来自代码或系统的?或者我如何找出问题的原因,有没有可能的方法?
u flutter doctor -v
[✓] Flutter (Channel stable, 2.0.4, on Mac OS X 10.15.3 19D76 darwin-x64, locale
ru-KZ)
• Flutter version 2.0.4 at /