我有 flutter 项目,我正在尝试运行 iOS 版本,但在将 flutter 和 Xcode 更新到最新版本后出现错误,我使用 firebase core 插件
错误:
Could not build the precompiled application for the device.
Error (Xcode): File not found: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphoneos.a
Error (Xcode): Linker command failed with exit code 1 (use -v to see invocation)
Run Code Online (Sandbox Code Playgroud)
播客文件:
# Uncomment this line to define a global platform for your project
# platform :ios, '12.0'
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
project 'Runner', {
'Debug' => :debug,
'Profile' …Run Code Online (Sandbox Code Playgroud) 我不知道为什么,但我无法在我的新 Macbook 中构建或运行该应用程序,我在另一台 Mac 或我的 Windows 计算机上运行相同的文件夹并完美运行。在这里,当我运行 flutter clean 时,我必须运行 pub get 来解决问题,这正常吗?
如果我新建一个项目,我可以正常运行flutter run,所以我想可能那里我认为可能与插件有关。
你知道我该如何解决这个问题吗?谢谢
Flutter Doctor
[?] Flutter (Channel master, 1.24.0-8.0.pre.343, on macOS 11.0.1 20B29 darwin-x64, locale es-419)
• Flutter version 1.24.0-8.0.pre.343 at /Users/leo/tools/flutter
• Framework revision cf6c33e58a (2 days ago), 2020-11-21 14:04:01 -0800
• Engine revision 23a8e027db
• Dart version 2.12.0 (build 2.12.0-62.0.dev)
[?] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
• Android SDK at /Users/leo/Library/Android/sdk
• Platform android-30, build-tools 30.0.2
• Java …Run Code Online (Sandbox Code Playgroud) 当我在 xCode 中存档我的 iOS 应用程序以上传到 Apple 应用程序商店时,它停止获取正确的版本号和内部版本号:
我的 pubspec.yaml 有正确的数字:
version: 1.0.9+11
Run Code Online (Sandbox Code Playgroud)
它在 xCode 中看起来是正确的,但一旦存档就不行了:
我已经创建了 flutter 应用程序,现在想要创建存档以便在 Xcode 14.3 中分发。
问题
PhaseScriptExecution failed with a nonzero exit code已经尝试过了
注意 转到“钥匙串访问”。从禁用的登录选项中再次选择“锁定和解锁”。如何启用它?
期待您的帮助。
Podfile
# Uncomment this line to define a global platform for your project
platform :ios, '12.0'
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
project 'Runner', {
'Debug' => :debug,
'Profile' => :release,
'Release' => :release,
}
def flutter_root …Run Code Online (Sandbox Code Playgroud) 我有flutter的应用程序。我从 Android Studio(在 Mac 上)在 iPhone 上以调试模式运行它的应用程序。速度非常慢(大约10分钟)。如果我从 xCode 运行我的项目,速度会快得多 - 大约一分钟。
这是一个“中型”项目,它使用一些 firebase 包:
firebase_messaging: ^10.0.3
firebase_analytics: ^8.1.2
firebase_remote_config: ^0.10.0+2
firebase_core: ^1.3.0
Run Code Online (Sandbox Code Playgroud)
但我在网上没有发现任何与这些插件相关的问题,仅针对cloud_firestore。我如何确定长构建的问题是什么?有什么建议吗?
In file included from /Users/shaifdihan/development/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter_wkwebview-2.7.1/ios/Classes/JavaScriptChannelHandler.m:5:\n /Users/shaifdihan/development/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter_wkwebview-2.7.1/ios/Classes/JavaScriptChannelHandler.h:5:9: fatal error: 'Flutter/Flutter.h' file not found\n #import <Flutter/Flutter.h>\n ^~~~~~~~~~~~~~~~~~~\n 1 error generated.\n note: Using new build system\n note: Building targets in parallel\n note: Planning build\n note: Analyzing workspace\n note: Constructing build description\n note: Build preparation complete\n/Users/shaifdihan/StudioProjects/my_match_flutter/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.5.99. (in target 'libPhoneNumber-iOS' from project 'Pods')\n .\n .\n .\nRun Code Online (Sandbox Code Playgroud)\n我可以在互联网上找到解决问题的可行解决方案吗
\n我一直在为使用 的 Flutter 应用程序进行更新Firebase Firestore,一旦我完成更新并开始为 IOS 构建它,我收到以下错误消息,导致构建操作失败:
[!] CocoaPods could not find compatible versions for pod "Firebase/Auth":
In snapshot (Podfile.lock):
Firebase/Auth (= 9.3.0)
In Podfile:
firebase_auth (from `.symlinks/plugins/firebase_auth/ios`) was resolved to 3.3.12, which depends on Firebase/Auth (= 8.14.0)
Run Code Online (Sandbox Code Playgroud)
注意:问题中的错误消息说是Firebase/Authpackage,但其他包也发生过这种情况Firebase。
那么我应该怎么做才能克服这个问题呢?