小编blu*_*492的帖子

Flutter 构建 iOS 错误 CocoaPods 未安装。跳过 Pod 安装

我使用Mac并升级到Android studio“Bumblebee”,只有在Mac中当我尝试执行以下操作时:Build -> Flutter -> Build iOS 它显示此警告:

\n

Warning: CocoaPods not installed. Skipping pod install. CocoaPods is used to retrieve the iOS and macOS platform side\'s plugin code that responds to your plugin usage on the Dart side. Without CocoaPods, plugins will not work on iOS or macOS. For more info, see https://flutter.dev/platform-plugins To install see https://guides.cocoapods.org/using/getting-started.html#installation for instructions. CocoaPods not installed or not in valid state. Process finished with exit code 1

\n

但我已经这么做了\ngem install cocoapods Successfully …

xcode cocoapods flutter

7
推荐指数
1
解决办法
8325
查看次数

Flutter ios 中未找到“flutter_keyboard_visibility_web”的 podspec

我在 Mac -> Android studio 中使用 Flutter,当我在终端中编写 pod install 时。它告诉我

Analyzing dependencies
[!] No podspec found for `flutter_keyboard_visibility_web` in .symlinks/plugins/flutter_keyboard_visibility_web/ios`

Run Code Online (Sandbox Code Playgroud)

我从一年前开始使用颤振,这是我第一次发生这种情况。我无法运行该应用程序。我在 pubspec 中没有这个名字的插件 flutter_keyboard_visibility_web

怎么解决,谢谢

ios flutter

6
推荐指数
1
解决办法
5640
查看次数

Xcode Archive 因 flutter 插件失败

我的 flutter 应用程序运行良好,但是当我尝试通过存档将应用程序上传到 App Store 时:Xcode -> Product -> Archive
它失败并出现两个错误 flutter_inappwebview 中的第一个错误消息如下:

CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler (in target 'flutter_inappwebview' from project 'Pods')
    cd /Users/user1/StudioProjects/app/ios/Pods
    export DEVELOPER_DIR\=/Applications/Xcode.app/Contents/Developer
    export SDKROOT\=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.4.sdk
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -incremental -module-name flutter_inappwebview -O -whole-module-optimization -enforce-exclusivity\=checked @/Users/user1/Library/Developer/Xcode/DerivedData/Runner-dmjvwbvrfekhkvanzgfshfxgayly/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/flutter_inappwebview.build/Objects-normal/arm64/flutter_inappwebview.SwiftFileList -D COCOAPODS -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.4.sdk -target arm64-apple-ios12.0 -g -module-cache-path /Users/user1/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -Xfrontend -serialize-debugging-options -embed-bitcode -swift-version 5 -I /Users/user1/Library/Developer/Xcode/DerivedData/Runner-dmjvwbvrfekhkvanzgfshfxgayly/Build/Intermediates.noindex/ArchiveIntermediates/Runner/BuildProductsPath/Release-iphoneos/flutter_inappwebview -F /Users/user1/Library/Developer/Xcode/DerivedData/Runner-dmjvwbvrfekhkvanzgfshfxgayly/Build/Intermediates.noindex/ArchiveIntermediates/Runner/BuildProductsPath/Release-iphoneos/flutter_inappwebview -F /Users/user1/flutter/bin/cache/artifacts/engine/ios-release/Flutter.xcframework/ios-arm64_armv7 -F /Users/osamahhaitham/Library/Developer/Xcode/DerivedData/Runner-dmjvwbvrfekhkvanzgfshfxgayly/Build/Intermediates.noindex/ArchiveIntermediates/Runner/BuildProductsPath/Release-iphoneos/OrderedSet -c -num-threads 4 -output-file-map /Users/user1/Library/Developer/Xcode/DerivedData/Runner-dmjvwbvrfekhkvanzgfshfxgayly/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/flutter_inappwebview.build/Objects-normal/arm64/flutter_inappwebview-OutputFileMap.json -parseable-output -serialize-diagnostics -emit-dependencies -emit-module -emit-module-path /Users/user1/Library/Developer/Xcode/DerivedData/Runner-dmjvwbvrfekhkvanzgfshfxgayly/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/flutter_inappwebview.build/Objects-normal/arm64/flutter_inappwebview.swiftmodule -Xcc -I/Users/user1/Library/Developer/Xcode/DerivedData/Runner-dmjvwbvrfekhkvanzgfshfxgayly/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/flutter_inappwebview.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/user1/Library/Developer/Xcode/DerivedData/Runner-dmjvwbvrfekhkvanzgfshfxgayly/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/flutter_inappwebview.build/flutter_inappwebview-generated-files.hmap -Xcc -I/Users/user1/Library/Developer/Xcode/DerivedData/Runner-dmjvwbvrfekhkvanzgfshfxgayly/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/flutter_inappwebview.build/flutter_inappwebview-own-target-headers.hmap -Xcc -I/Users/user1/Library/Developer/Xcode/DerivedData/Runner-dmjvwbvrfekhkvanzgfshfxgayly/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/flutter_inappwebview.build/flutter_inappwebview-all-non-framework-target-headers.hmap …
Run Code Online (Sandbox Code Playgroud)

xcode flutter

6
推荐指数
2
解决办法
3132
查看次数

计算dart中两次之间的小时/分钟

我想获取/计算 dart 中两次之间的小时和分钟。示例:如果 start_time 为 17:30,end_time 为 09:00(后一天),则应返回总计:15 小时 30 分钟

我的代码:

check_two_times_is_before(String start_time, String end_time){
    var format = DateFormat("HH:mm");
    var start = format.parse(start_time);
    var end = format.parse(end_time);

    if(start.isAfter(end)) {
     // do something here
    }
  }

Run Code Online (Sandbox Code Playgroud)

datetime dart flutter

0
推荐指数
1
解决办法
4671
查看次数

标签 统计

flutter ×4

xcode ×2

cocoapods ×1

dart ×1

datetime ×1

ios ×1