简体   繁体   English

Flutter 使用 jitsi_meet flutter package 在 ZBA3F2ADEA47B86B0D408DE3F7E4D92 上生成错误

[英]Flutter using jitsi_meet flutter package generate error on IOS

I am attempting to create a flutter app and integrate the jitsi_meet flutter package i followed the instructions indicated on documentation.我正在尝试创建一个 flutter 应用程序并集成 jitsi_meet flutter package 我按照文档中指示的说明进行操作。

My flutter version and IOS via flutter doctor我的 flutter 版本和 IOS 通过 flutter 医生

Flutter version 2.8.1
develop for iOS and macOS (Xcode 13.1)

My configuration pubspec.yaml我的配置 pubspec.yaml

dependencies:
  flutter:
    sdk: flutter
  jitsi_meet: ^4.0.0

My Podfile我的播客文件

platform :ios, '11.0'

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['ENABLE_BITCODE'] = 'NO'
    end
  end
end

Added below keys/string on my pslist在我的 pslist 上添加了以下键/字符串

<key>NSCameraUsageDescription</key>
<string>$(PRODUCT_NAME) MyApp needs access to your camera for meetings.</string>
<key>NSMicrophoneUsageDescription</key>
<string>$(PRODUCT_NAME) MyApp needs access to your microphone for meetings.</string>

After this configuration i also change the deployment build to ios 11 as stated from other solutions but after running build using my simulator iPhone 13 below error occur在此配置之后,我还将部署构建更改为 ios 11,如其他解决方案所述,但在使用我的simulator iPhone 13运行构建后,出现以下错误

Failed to build iOS app
Error output from Xcode build:
↳
    ** BUILD FAILED **
Xcode's output:
↳
    <module-includes>:1:9: note: in file included from <module-includes>:1:
    #import "Headers/jitsi_meet-umbrella.h"
            ^
    /Users/kaori/Documents/development/projects/fluttermeet/ios/Pods/Target Support Files/jitsi_meet/jitsi_meet-umbrella.h:13:9: note: in file included from /Users/kaori/Documents/development/projects/fluttermeet/ios/Pods/Target Support Files/jitsi_meet/jitsi_meet-umbrella.h:13:
    #import "JitsiMeetPlugin.h"
            ^

Cannot get it to build on ios.无法让它在 ios 上构建。

I got it to build by adding below lines on my podfile我通过在我的 podfile 上添加以下行来构建它

platform :ios, '11.0'

....


post_install do |installer|
   installer.pods_project.targets.each do |target|
      flutter_additional_ios_build_settings(target)
        # Required by jitsi
      target.build_configurations.each do |config|
      config.build_settings['ENABLE_BITCODE'] = 'NO'
          config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
     end
  end
end

and run flutter clean + flutter pub get and cd ios and run pod install now you will encounter a new problem Xcode 11.2.1 error: Command CompileSwiftSources failed with a nonzero exit code so i followed the solution from this question Xcode 11.2.1 error: Command CompileSwiftSources failed with a nonzero exit code and run flutter clean + flutter pub get and cd ios and run pod install now you will encounter a new problem Xcode 11.2.1 error: Command CompileSwiftSources failed with a nonzero exit code so i followed the solution from this question Xcode 11.2.1 error:命令 CompileSwiftSources 失败,退出代码为非零

After opening ios folder on Xcode and change the Build Options -> Build Libraries for Distribution in the targets Build Settings to No .在 Xcode 上打开 ios 文件夹后,将目标 Build Settings 中的Build Options -> Build Libraries for Distribution in the targets Build Settings to No And then run flutter run inside ios folder and the build was successful, hope this help anyone who encounter the same issue.然后在 ios 文件夹中运行flutter run ,构建成功,希望这对遇到同样问题的人有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Flutter 使用 jitsi_meet 和 stripe_payment 的问题 - Flutter Issue using jitsi_meet with stripe_payment flutter 应用加载 jitsi 在 IOS WKWebviews 中遇到错误 - error when flutter app loads jitsi meet in IOS WKWebviews Jitsi在Flutter见面 - Jitsi Meet in Flutter Flutter jitsi-meet 错误 Could not resolve org.jitsi.react:jitsi-meet-sdk:3.3.0 - Flutter jitsi-meet error Could not resolve org.jitsi.react:jitsi-meet-sdk:3.3.0 Flutter - Jitsi Meet 回调 inAppWebView - Flutter - Jitsi Meet Call backs in inAppWebView Flutter jitsi meet 在发布后无法在 android 上工作 - Flutter jitsi meet not working on android after release Jitsi 在 flutter 开会,不在 android 12 上工作 - Jitsi meet in flutter not working on android 12 "<i>I am using &quot;jitsi meet&quot; in Flutter.<\/i>我在 Flutter 中使用“jitsi meet”。<\/b> <i>I want to get rid of the menu tabs on the call screen<\/i>我想摆脱通话屏幕上的菜单选项卡<\/b>" - I am using "jitsi meet" in Flutter. I want to get rid of the menu tabs on the call screen 当我尝试使用 Jitsi Meet 发起新会议时,Flutter 应用程序在 Android 设备上崩溃 - Flutter app crashes on Android device when I try to launch a new meeting using Jitsi Meet 如何在 Flutter Jitsi Meet 通话屏幕中删除视频按钮? - How to remove video button while in Flutter Jitsi Meet call screen?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM