首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >无法在模拟器中运行颤振应用程序(iOS 15)

无法在模拟器中运行颤振应用程序(iOS 15)
EN

Stack Overflow用户
提问于 2022-11-18 07:02:07
回答 1查看 116关注 0票数 0

我已经将颤振版本从1.x更新到了2.8.x,现在我试图在Xcode 13.1和模拟器iOS 15中运行应用程序。我面临这个错误。'mobileffmpeg/LogDelegate.h' file not foundCommand CompileSwiftSources failed with a nonzero exit code我尝试了一些可用的解决方案,但对我来说行不通。

我正在使用最新的可可豆版1.11.3

错误日志(在iOS中执行颤振清除和颤振发布、获取和安装)

代码语言:javascript
运行
复制
Failed to build iOS app
Error output from Xcode build:
↳
    ** BUILD FAILED **
Xcode's output:
↳
    /Users/username/Library/Developer/Xcode/DerivedData/Runner-ewlkrnytkuoiywhfslyuauileapw/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/mobile-ffmpeg-https.build/Script-4C68ADEB2D24F6C2D2249598537085F9.sh: 
line 2: /Users/username/Documents/spieler_coach part 2/ios/Pods/Target Support Files/mobile-ffmpeg-https/mobile-ffmpeg-https-xcframeworks.sh: Permission denied
    Command PhaseScriptExecution failed with a nonzero exit code
    error: the following command failed with exit code 0 but produced no further output
CompileC /Users/username/Library/Developer/Xcode/DerivedData/Runner-ewlkrnytkuoiywhfslyuauileapw/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/webview_flutter_wkwebview.build/Objects-normal/arm64/FlutterWebView.o /Users/username/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter_wkwebview-2.7.1/ios/Classes/FlutterWebView.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'webview_flutter_wkwebview' from project 'Pods')
    note: Building targets in dependency order
    warning: Run script build phase 'Run Script' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Runner' from project 'Runner')
    warning: Run script build phase 'Thin Binary' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Runner' from project 'Runner')
Could not build the application for the simulator.
EN

回答 1

Stack Overflow用户

发布于 2022-11-28 04:48:52

当你升级你的颤振版本时,有些libs就不能再工作了。你知道^的意思吗?例如:您在5.10版中使用lib,就像这个abc: ^5.1.0一样,abc还有其他版本的5.2.0、.5.9.06.0.0。如果您使用^,这意味着版本范围是来自5.1.0 to 5.9.0。也许它在5.9.0中有问题。此外,有时原因不是您的库,而是它的依赖。abc库在内部使用xyz,然后使用与颤振版本冲突的更高版本。

因此,这里的解决方案是:abc: 5.1.0

  • If

  • 尝试修复所有库的硬版本,删除使用^^问题来自于库的依赖性,如xyz。检查来自version.

xyz,然后用兼容的pubspec.lock将更多的包xyz添加到pubspec.yaml中

更新:您似乎遇到了包https://pub.dev/packages/flutter_ffmpeg的问题,请在节标签上查看自述文件:

代码语言:javascript
运行
复制
2.1.2 iOS (Flutter >= 2.x) then replace two lines below:

def flutter_install_ios_plugin_pods(ios_application_path = nil)
↓
def flutter_install_plugin_pods(application_path = nil, relative_symlink_dir, platform)

plugin_pods = flutter_parse_plugins_file(plugins_file)
↓
plugin_pods = flutter_parse_plugins_file(plugins_file, platform)

而且,因为这个包已经停止了。您应该更改为https://pub.dev/packages/ffmpeg_kit_flutter

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/74485975

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档