问题标签 [flutter-ios-build]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
30 回答
87378 浏览

ios - 错误:在 iOS 上运行 Flutter 时找不到“Flutter/Flutter.h”文件

我不知道为什么,但我无法在我的新 Macbook 中构建或运行该应用程序,我在另一台 Mac 或我的 Windows 计算机上运行相同的文件夹并且运行完美。这里当我运行 flutter clean 时,我必须运行 pub get 来解决问题,这正常吗?

如果我创建一个新项目,我可以正常运行flutter run,所以我认为也许那里我认为它可能与插件有关。

你知道我该如何解决这个问题吗?谢谢

0 投票
4 回答
624 浏览

flutter - Flutter Navigator.of(context).pop() in showDialog, close full app in ios

i have a problem in the ios version of my app, this is the code.

the Navigator.of(context).pop() in android works perfect, close the dialog and everything is ok, but in ios, the full app is closed when that code is called 'Navigator.of(context).pop()', someone know what can i do to close only the dialog in ios?

P.D.: i dont have any error or warning in the output console, even when te app get closed P.D.2: i already tried change the .pop to this 'Navigator.of(context, rootNavigator: true).pop('dialog')' but it doesnt work

0 投票
1 回答
130 浏览

flutter - 在 Flutter iOS 上找不到这里的 SDK

我们正在尝试使用 Here Flutter SDK 在 iOS 上进行第一次构建。看来我们遵循了说明,但我们收到“此处未找到 sdk”消息。也许文档不完整或缺少先决条件?我们使用的是最新的 MacOS 和 2.0 版的 Flutter SDK。在同一台机器上构建的其他 iOS 不使用 Here SDK 工作正常。

0 投票
0 回答
561 浏览

flutter - Flutter项目的Ios构建失败




Apple Mach-O 链接器 (ld) 错误组:“absl::lts_2020_02_25::string_view::find(absl::lts_2020_02_25::string_view, unsigned long) const”,引用自::“absl::lts_2020_02_25::AlphaNum: :AlphaNum(absl::lts_2020_02_25::Hex)”,引用自::“leveldb::WriteBatch::WriteBatch()”,引用自::“leveldb::WriteBatch::Delete(leveldb::Slice const&)”,引用自:“leveldb::WriteBatch::Put(leveldb::Slice const&, leveldb::Slice const&)”,引用自:“leveldb::WriteBatch::~WriteBatch()”,引用自:“absl ::lts_2020_02_25::StrAppend(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >, absl::lts_2020_02_25::AlphaNum const&, absl::lts_2020_02_25::AlphaNum const&)”,引用自::“grpc_impl::ChannelArguments::SetInt(std::__1::basic_string<char, std::__1:: char_traits, std::__1::allocator > const&, int)",引用自: : "leveldb::DB::Open(leveldb::Options const&, std::__1::basic_string<char, std::__1: :char_traits, std::__1::allocator > const&, leveldb::DB**)",引用自: : "absl::lts_2020_02_25::StrAppend(std::__1::basic_string<char, std::__1: :char_traits, std::__1::allocator >, absl::lts_2020_02_25::AlphaNum const&, absl::lts_2020_02_25::AlphaNum const&, absl::lts_2020_02_25::AlphaNum const&)”,引用自::“grpc_impl::ChannelArguments::SetSslTargetNameOverride(std::__1::basic_string <char, std::__1::char_traits, std::__1::allocator > const&)”,引用自::“leveldb::Status::Status(leveldb::Status::Code, leveldb::Slice const&, leveldb::Slice const&)",引用自::"grpc_impl::SslCredentials(grpc_impl::SslCredentialsOptions const&)",引用自::"leveldb::Status::ToString() const",引用自::"absl: :lts_2020_02_25::ByChar::Find(absl::lts_2020_02_25::string_view, unsigned long) const",引用自: : "grpc::ByteBuffer::Dump(std::__1::vector<grpc::Slice, std ::__1::allocatorgrpc::Slice >) const",引用自::"grpc_impl::ClientContext::ClientContext()",引用自::"grpc_impl::ChannelArguments::ChannelArguments()",引用自::"absl::lts_2020_02_25::strings_internal:: AppendPieces(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >, std::initializer_listabsl::lts_2020_02_25::string_view)",引用自::"grpc::Status::OK",引用自::"grpc_impl::InsecureChannelCredentials()",引用自::"grpc_impl::ClientContext ::TryCancel()",引用自::"grpc_impl::ChannelArguments::~ChannelArguments()",引用自::"grpc_impl::ClientContext::~ClientContext()",引用自::"grpc::Version ()",引用自::"absl::lts_2020_02_25::numbers_internal::FastIntToBuffer(unsigned long long, char*)",引用自::"leveldb::Options::Options()",引用自::" absl::lts_2020_02_25::numbers_internal::SixDigitsToBuffer(double, char*)”,引用自::“grpc_impl::ClientContext::AddMetadata(std::__1::basic_string<char, std::__1::char_traits,std::__1::allocator > const&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&)”,引用自::“grpc_impl::Channel: :GetState(bool)",引用自::"absl::lts_2020_02_25::BytesToHexString(absl::lts_2020_02_25::string_view)",引用自::"absl::lts_2020_02_25::string_view::find_first_of(absl::lts_2020_02_25 ::string_view, unsigned long) const", 引用自: : "absl::lts_2020_02_25::StrCat(absl::lts_2020_02_25::AlphaNum const&, absl::lts_2020_02_25::AlphaNum const&)", 引用自: : "absl: :lts_2020_02_25::Base64Escape(absl::lts_2020_02_25::string_view, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >std::__1::allocator > const&)”,引用自::“grpc_impl::Channel::GetState(bool)”,引用自::“absl::lts_2020_02_25::BytesToHexString(absl::lts_2020_02_25::string_view) ", 引用自: : "absl::lts_2020_02_25::string_view::find_first_of(absl::lts_2020_02_25::string_view, unsigned long) const", 引用自: : "absl::lts_2020_02_25::StrCat(absl::lts_2020_02_25: :AlphaNum const&, absl::lts_2020_02_25::AlphaNum const&)",引用自: : "absl::lts_2020_02_25::Base64Escape(absl::lts_2020_02_25::string_view, std::__1::basic_string<char, std::__1 ::char_traits, std::__1::allocator >std::__1::allocator > const&)”,引用自::“grpc_impl::Channel::GetState(bool)”,引用自::“absl::lts_2020_02_25::BytesToHexString(absl::lts_2020_02_25::string_view) ", 引用自: : "absl::lts_2020_02_25::string_view::find_first_of(absl::lts_2020_02_25::string_view, unsigned long) const", 引用自: : "absl::lts_2020_02_25::StrCat(absl::lts_2020_02_25: :AlphaNum const&, absl::lts_2020_02_25::AlphaNum const&)",引用自: : "absl::lts_2020_02_25::Base64Escape(absl::lts_2020_02_25::string_view, std::__1::basic_string<char, std::__1 ::char_traits, std::__1::allocator >lts_2020_02_25::string_view)”,引用自::“absl::lts_2020_02_25::string_view::find_first_of(absl::lts_2020_02_25::string_view, unsigned long) const”,引用自::“absl::lts_2020_02_25::StrCat( absl::lts_2020_02_25::AlphaNum const&, absl::lts_2020_02_25::AlphaNum const&)”,引用自::“absl::lts_2020_02_25::Base64Escape(absl::lts_2020_02_25::string_view, std::__1::basic_string<char , std::__1::char_traits, std::__1::allocator >lts_2020_02_25::string_view)”,引用自::“absl::lts_2020_02_25::string_view::find_first_of(absl::lts_2020_02_25::string_view, unsigned long) const”,引用自::“absl::lts_2020_02_25::StrCat( absl::lts_2020_02_25::AlphaNum const&, absl::lts_2020_02_25::AlphaNum const&)”,引用自::“absl::lts_2020_02_25::Base64Escape(absl::lts_2020_02_25::string_view, std::__1::basic_string<char , std::__1::char_traits, std::__1::allocator >Base64Escape(absl::lts_2020_02_25::string_view, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >Base64Escape(absl::lts_2020_02_25::string_view, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >)”,引用自: : "absl::lts_2020_02_25::StrAppend(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >, absl::lts_2020_02_25::AlphaNum const&)”,引用自::“grpc::g_core_codegen_interface”,引用自::“absl::lts_2020_02_25::numbers_internal::FastIntToBuffer(long long, char*)”,引用自: : "absl::lts_2020_02_25::CEscape(absl::lts_2020_02_25::string_view)",引用自: : "absl::lts_2020_02_25::StrReplaceAll(absl::lts_2020_02_25::string_view, std::initializer_list<std::__1 ::pair<absl::lts_2020_02_25::string_view, absl::lts_2020_02_25::string_view> >)”,引用自: : “absl::lts_2020_02_25::numbers_internal::FastIntToBuffer(int, char*)”,引用自: : "grpc_impl::CreateCustomChannelImpl(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::shared_ptr<grpc_impl::ChannelCredentials>const&, grpc_impl::ChannelArguments const&)",引用自::"grpc::g_glip",引用自::"grpc_impl::CompletionQueue::AsyncNextInternal(void**, bool*, gpr_timespec)",引用自::" absl::lts_2020_02_25::optional_internal::throw_bad_optional_access()”,引用自::“absl::lts_2020_02_25::StrAppend(std::__1::basic_string<char, std::__1::char_traits, std::__1: :分配器>char_traits, std::__1::allocator >char_traits, std::__1::allocator >, absl::lts_2020_02_25::AlphaNum const&, absl::lts_2020_02_25::AlphaNum const&, absl::lts_2020_02_25::AlphaNum const&, absl::lts_2020_02_25::AlphaNum const&)”,引用自::“grpc_impl::CompletionQueue:: Shutdown()”,引用自::“absl::lts_2020_02_25::numbers_internal::FastIntToBuffer(unsigned int, char)”,引用自::“absl::lts_2020_02_25::strings_internal::CatPieces(std::initializer_listabsl::lts_2020_02_25::string_view)”,引用自::“absl::lts_2020_02_25::StrCat(absl::lts_2020_02_25: :AlphaNum const&, absl::lts_2020_02_25::AlphaNum const&, absl::lts_2020_02_25::AlphaNum const&)”,引用自::“absl::lts_2020_02_25::base_internal::ThrowStdOutOfRange(char const*)”,引用自:: “absl::lts_2020_02_25::StrCat(absl::lts_2020_02_25::AlphaNum const&, absl::lts_2020_02_25::AlphaNum const&, absl::lts_2020_02_25::AlphaNum const&, absl::lts_2020_02_25::AlphaNum const&, 参考自:链接器命令失败,退出代码为 1(使用 -v 查看调用)

Flutter ios构建失败

0 投票
0 回答
108 浏览

flutter - 无法解析平台“iphoneos”的产品类型“com.apple.pages.product-type.application”

我想为
iphone 和 Android 创建颤振应用程序。

在 Android 项目中工作正常。但我在 xcode 中检查项目得到这个错误请帮忙。

无法解析平台“iphoneos”的产品类型“com.apple.pages.product-type.application”

0 投票
2 回答
197 浏览

ios - Flutter app size huge, how to reduce for ios

#issue: ios app size going big.
We build An app For ios and android with flutter. For android this app size left 32 MB but when we upload the same app to appstore its size increased to 80 MB. Why? Can i get any idea?

0 投票
1 回答
516 浏览

ios - 在 Flutter 2.0.4 上构建 iOS 应用程序错误:找不到“Flutter/Flutter.h”文件

我一直在尝试从 Android Studio 在 iOS 上运行应用程序。我一直在出错

我已经尝试过 Flutter iOS build failed 一个 pod 文件错误:Podfile is out of date

这是我的颤振医生

这里有什么建议吗?

0 投票
1 回答
477 浏览

flutter - Flutter iOS 物理设备错误:Command PhaseScriptExecution failed with a nonzero exit code

我在 Android Studio 上创建了一个新的颤振项目。当我尝试在模拟器上运行它时,它工作正常,但是当我在我的 iPhone 上运行它时,它给出了这个错误:

当我在 Target>Build Phases>Run Scripts 中选中“For install builds only”复选框时,它给出了另一个错误

我曾尝试删除并重新创建 ios 目录,但没有运气。

下面是颤振医生的输出

0 投票
1 回答
58 浏览

flutter - 应用程序在使用 Firebase 的 Flutter (iOS) 上启动时关闭,没有给出任何错误

该应用程序在 android 上运行良好,但是,当我在 iOS 上打开该应用程序时,它会立即崩溃而不会出现任何错误。

0 投票
1 回答
445 浏览

flutter - 颤振:异常:SocketException:仅在iOS模拟器上连接失败

当我尝试使用 dart HTTP 模块调用 REST API 时出现以下错误,这在 iOS 模拟器上发生,尝试在 iOS 设备和 Android 模拟器上运行相同的代码,在两者上都可以正常工作。

这是我在记录异常时得到的,

iOS 开发工具:XCode Version 12.5 (12E262)

颤振医生输出:

尝试在模拟器上使用 Safari 访问我的 API URL,它也工作正常,除了颤振异常,我没有得到任何其他信息/日志。