我添加firebase_analytics到我的 Flutter 应用程序中,它在 Android 上运行良好。当我去构建一个 iOS 版本时,当我使用 Codemagic 构建应用程序时,我得到一个模糊的错误。它似乎在本地构建OK。
Fetching external sources
-> Fetching podspec for `Flutter` from `.symlinks/flutter/ios`
-> Fetching podspec for `firebase_analytics` from `.symlinks/plugins/firebase_analytics/ios`
-> Fetching podspec for `firebase_core` from `.symlinks/plugins/firebase_core/ios`
-> Fetching podspec for `shared_preferences` from `.symlinks/plugins/shared_preferences/ios`
Resolving dependencies of `Podfile`
[!] CocoaPods could not find compatible versions for pod "Firebase/Core":
In snapshot (Podfile.lock):
Firebase/Core (= 6.5.0)
In Podfile:
firebase_analytics (from `.symlinks/plugins/firebase_analytics/ios`) was resolved to 0.0.1, which depends on
Firebase/Core
It seems like you've changed …Run Code Online (Sandbox Code Playgroud) 当我尝试在 Codemagic 上测试构建时,测试失败。我尝试更改 widget_test.dart 代码,问题仍未解决。如何解决这个问题?
这是codemagic抛出的错误。
== QA ==
== flutter test --machine ==
{"protocolVersion":"0.1.1","runnerVersion":null,"pid":949,"type":"start","time":0}
{"suite":{"id":0,"platform":"vm","path":"/Users/builder/clone/test/widget_test.dart"},"type":"suite","time":1}
{"test":{"id":1,"name":"loading /Users/builder/clone/test/widget_test.dart","suiteID":0,"groupIDs":[],"metadata":{"skip":false,"skipReason":null},"line":null,"column":null,"url":null},"type":"testStart","time":3}
{"count":1,"type":"allSuites","time":7}
{"testID":1,"result":"success","skipped":false,"hidden":true,"type":"testDone","time":15317}
{"group":{"id":2,"suiteID":0,"parentID":null,"name":null,"metadata":{"skip":false,"skipReason":null},"testCount":1,"line":null,"column":null,"url":null},"type":"group","time":15341}
{"test":{"id":3,"name":"Counter increments smoke test","suiteID":0,"groupIDs":[2],"metadata":{"skip":false,"skipReason":null},"line":107,"column":3,"url":"package:flutter_test/src/widget_tester.dart","root_line":14,"root_column":3,"root_url":"file:///Users/builder/clone/test/widget_test.dart"},"type":"testStart","time":15343}
{"testID":3,"messageType":"print","message":"??? EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ?????????????????????????????????????????????????????\nThe following TestFailure object was thrown running a test:\n Expected: exactly one matching node in the widget tree\n Actual: ?:<zero widgets with text \"0\" (ignoring offstage widgets)>\n Which: means none were found but one was expected\n\nWhen the exception was thrown, this was the stack:\n#4 main.<anonymous closure> (file:///Users/builder/clone/test/widget_test.dart:19:5)\n<asynchronous suspension>\n#5 …Run Code Online (Sandbox Code Playgroud) 我按照/sf/answers/3904179751/中的帖子执行了步骤但在构建应用程序时收到“无法为 iOS 构建”错误。我不明白为什么我会得到这个。我也附上了下面的屏幕截图。请看一下。还附上了日志的屏幕截图
\n任何其他提供在 Windows 上轻松构建和测试 IOS 应用程序的方法的答案也很容易受到欢迎
\n\n\n日志输出:
\nWarning: Building for device with codesigning disabled. You will have to manually codesign before deploying to device.\nRun Code Online (Sandbox Code Playgroud)\n为设备 (ios) 构建 instagram.photo.video.downloader.repost.insta...\n检测到项目基本配置,正在删除。\n正在运行 pod install...7.0s\nCocoaPods\' 输出:\n\xe2\x86\ xb3\n准备中
\nAnalyzing dependencies\n\nInspecting targets to integrate\n Using `ARCHS` setting to build architectures of target `Pods-Runner`: (``)\n\nFinding Podfile changes\n A admob_flutter\n A firebase_analytics_web\n A firebase_messaging\n A flutter_inappwebview\n A flutter_local_notifications\n A path_provider_linux\n A shared_preferences_linux\n A url_launcher_linux\n R firebase_admob\n R flutter_native_admob\n …Run Code Online (Sandbox Code Playgroud) 我正在尝试使用 Codemagic 在 Windows 中构建 iOS Flutter 应用程序。我在 android studio 中创建了 flutter 项目并将其上传到 github 以便在 Codemagic 中使用它...但是当我尝试构建 iOS 应用程序时,Codemagic 向我抛出此错误:
\nWarning: Building for device with codesigning disabled. You will have to manually codesign before deploying to device.\nBuilding com.jmmago.saltApp for device (ios-release)...\nRunning pod install... 16.0s\nRunning Xcode build... \nXcode build done. 124.3s\nFailed to build iOS app\nError output from Xcode build:\n\xe2\x86\xb3\n ** BUILD FAILED **\n\n\nXcode\'s output:\n\xe2\x86\xb3\n /Users/builder/programs/flutter/.pub-cache/hosted/pub.dartlang.org/barcode_scan-3.0.1/ios/Classes/protos/protos.pb.swift:14:8: error: compiling for iOS 8.0, but module \'SwiftProtobuf\' has a minimum deployment target of iOS …Run Code Online (Sandbox Code Playgroud) 我觉得我错过了一些东西,但不能确定。我正在尝试将 codemagic 的自动代码签名功能用于 IOS 应用商店发布。
但是在构建过程中它会打印;
> /usr/local/bin/flutter build ios --release --no-codesign
Warning: Building for device with codesigning disabled. You will have to manually codesign before deploying to device.
Run Code Online (Sandbox Code Playgroud)
并在出版期间打印;
"Error Domain=ITunesSoftwareServiceErrorDomain Code=-22020 \"We are unable to create an authentication session.\" UserInfo={NSLocalizedDescription=We are unable to create an authentication session., NSLocalizedFailureReason=Unable to validate your application.}"
Run Code Online (Sandbox Code Playgroud)
我正在启用应用商店连接,选择自动代码签名并选择应用商店来配置配置文件类型。而且我确定我的 ID 和其他字段是正确的。
任何帮助,将不胜感激。
我正在尝试在 Codemagic 上构建一个 Flutter 应用程序。该应用程序使用多个 firebase 项目,因此我已对其进行了相应配置。我能够在本地为 android 和 iOS 运行所有风格。android 构建在 Codemagic 上也很成功,但 iOS 构建失败了。
在下面的屏幕截图中,您可以在到达 Firebase 设置运行脚本文件后看到 iOS 构建失败
我的 Firebase 设置文件的代码是
environment="default"
# Regex to extract the scheme name from the Build Configuration
# We have named our Build Configurations as Debug-dev, Debug-prod etc.
# Here, dev and prod are the scheme names. This kind of naming is required by Flutter for flavors to work.
# We are using the $CONFIGURATION variable available in the XCode build …Run Code Online (Sandbox Code Playgroud) 我正在尝试在 Codemagic 上设置我的 flutter 应用程序,但为 IOS 构建大约需要 40~50 分钟,日志显示是compiling文件,.c并且.cc有很多文件正在编译。有没有办法让构建速度更快?我是否缺少某些配置?
我在 Windows 上开发了一个 Flutter 应用程序。现在我正在尝试通过 codemagic 进行构建。但是我需要更改IOS的最低部署版本。使用 codemagic 构建应用程序时出现此错误
找到了满足
stripe_payment (from.symlinks/plugins/stripe_payment/ios)依赖项的规范,但它们需要更高的最低部署目标。
我正在使用适用于 iOS 的 codemagic 构建我的 flutter 项目。android构建按expexted工作。iOS 构建错误:
Xcode build done. 1520.2s
Failed to build iOS app
Error output from Xcode build:
?
** BUILD FAILED **
Xcode's output:
[...]
error: Build input file cannot be found: '/Users/Downloads/GoogleService-Info.plist' (in target 'Runner' from project 'Runner')
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
Encountered error while building for device.
Build failed :|
Failed to build for iOS
Run Code Online (Sandbox Code Playgroud)
但是我的 ios/Runner 包含 GoogleService-Info.plist 文件。 …