Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/jpa/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Flutter 如何解决在Flitter上在Iphone 11上运行pod安装时出现的错误_Flutter_Dart - Fatal编程技术网

Flutter 如何解决在Flitter上在Iphone 11上运行pod安装时出现的错误

Flutter 如何解决在Flitter上在Iphone 11上运行pod安装时出现的错误,flutter,dart,Flutter,Dart,我知道关于这个问题有很多类似的问题,我都试过了,但都没用。 尝试在物理设备上的Xcode上运行代码后,问题开始出现。 当我在命令行上说“flatterrun”时,错误就在下面 正在运行pod安装。。。1234ms 椰子荚的产量: ↳ 准备 分析依赖关系 检查目标以整合 使用'ARCHS'设置构建目标'Pods Runner'的体系结构:(``) 查找播客文件更改 -飘动 -颤振安全存储 -本地授权 -共享的\u首选项 -震动 获取外部源 ->从“颤振”获取“颤振”的podspec` ->正在从“

我知道关于这个问题有很多类似的问题,我都试过了,但都没用。 尝试在物理设备上的Xcode上运行代码后,问题开始出现。 当我在命令行上说“flatterrun”时,错误就在下面

正在运行pod安装。。。1234ms
椰子荚的产量:
↳
准备
分析依赖关系
检查目标以整合
使用'ARCHS'设置构建目标'Pods Runner'的体系结构:(``)
查找播客文件更改
-飘动
-颤振安全存储
-本地授权
-共享的\u首选项
-震动
获取外部源
->从“颤振”获取“颤振”的podspec`
->正在从“.symlinks/plugins/flatter\u secure\u storage/ios”获取“flatter\u secure\u storage”的podspec`
->正在从“.symlinks/plugins/local\u auth/ios”获取“local\u auth”的podspec`
->正在从“.symlinks/plugins/shared\u preferences/ios”获取“shared\u preferences”的podspec`
->正在从“.symlinks/plugins/vibration/ios”获取“振动”的podspec`
解析“Podfile”的依赖项`
CDN:主干相对路径:CocoaPods-version.yml存在!返回本地,因为仅在repo更新中执行检查
将解析的规范与沙盒清单进行比较
一阵骚动
一个安全的仓库
一位当地的作家
共同的偏好
震动
下载依赖项
->安装颤振(1.0.0)
->安装颤振安全存储(3.3.1)
->安装本地身份验证(0.0.1)
->安装共享_首选项(0.0.1)
->安装振动(1.7.2)
-运行预安装挂钩
[!]Pods Runner目标具有可传递的依赖项,其中包括静态链接的二进制文件:
(/Users/ilkerimamoglu/Desktop/flatter_MQTT-master 3 copy/ios/flatter/flatter.framework)
/Library/Ruby/Gems/2.6.0/Gems/cocoapods-1.10.0/lib/cocoapods/installer/xcode/target_validator.rb:84:in`block(2层)in
验证\u无\u静态\u框架\u可传递\u依赖项'
/Library/Ruby/Gems/2.6.0/Gems/cocoapods-1.10.0/lib/cocoapods/installer/xcode/target\u validator.rb:74:in'each\u key'
/Library/Ruby/Gems/2.6.0/Gems/cocoapods-1.10.0/lib/cocoapods/installer/xcode/target_validator.rb:74:in`block in`
验证\u无\u静态\u框架\u可传递\u依赖项'
/Library/Ruby/Gems/2.6.0/Gems/cocoapods-1.10.0/lib/cocoapods/installer/xcode/target_validator.rb:73:in'each'
/Library/Ruby/Gems/2.6.0/Gems/cocoapods-1.10.0/lib/cocoapods/installer/xcode/target\u validator.rb:73:in
`验证\u无\u静态\u框架\u可传递\u依赖项'
/Library/Ruby/Gems/2.6.0/Gems/cocoapods-1.10.0/lib/cocoapods/installer/xcode/target_validator.rb:38:in“validate!”
/Library/Ruby/Gems/2.6.0/Gems/cocoapods-1.10.0/lib/cocoapods/installer.rb:595:in'validate_targets'
/Library/Ruby/Gems/2.6.0/Gems/cocoapods-1.10.0/lib/cocoapods/installer.rb:162:in'install!'
/Library/Ruby/Gems/2.6.0/Gems/cocoapods-1.10.0/lib/cocoapods/command/install.rb:52:in'run'
/Library/Ruby/Gems/2.6.0/Gems/claide-1.0.3/lib/claide/command.rb:334:in'run'
/Library/Ruby/Gems/2.6.0/Gems/cocoapods-1.10.0/lib/cocoapods/command.rb:52:in'run'
/Library/Ruby/Gems/2.6.0/Gems/cocoapods-1.10.0/bin/pod:55:in`'
/usr/local/bin/pod:23:in“装载”
/usr/local/bin/pod:23:in`'
运行pod安装时出错
在iPhone 11上启动应用程序时出错。
即使我没有做其他事情,它也给了我这个错误。我试图删除
flatter.framework
并运行
pod安装
,但它给了我
[!]在项目目录中找不到“Podfile”。

我能做什么?

我遇到了同样的情况。这就是我找到的解决方案。

基本上:

  • 在Finder中找到Terminal.app。(应用程序->终端.app)
  • 右键单击并选择“获取信息”
  • 检查“使用罗塞塔打开”
  • 退出终端应用程序的所有实例并再次运行
  • 运行sudogem安装ffi

完成以上几个步骤后,重新启动IDE并重新运行应用程序。

尝试删除
Podfile.lock
(请确保,Podfile.lock不是Podfile)O是的,对不起,我是指Podfile.lock我这样做的,但它仍然不起作用。是否尝试删除
Pods
文件夹并再次运行?我删除了它,然后在运行时添加它,但仍然不起作用
Running pod install...                                           1,234ms
CocoaPods' output:
↳
      Preparing

    Analyzing dependencies

    Inspecting targets to integrate
      Using `ARCHS` setting to build architectures of target `Pods-Runner`: (``)

    Finding Podfile changes
      - Flutter
      - flutter_secure_storage
      - local_auth
      - shared_preferences
      - vibration

    Fetching external sources
    -> Fetching podspec for `Flutter` from `Flutter`
    -> Fetching podspec for `flutter_secure_storage` from `.symlinks/plugins/flutter_secure_storage/ios`
    -> Fetching podspec for `local_auth` from `.symlinks/plugins/local_auth/ios`
    -> Fetching podspec for `shared_preferences` from `.symlinks/plugins/shared_preferences/ios`
    -> Fetching podspec for `vibration` from `.symlinks/plugins/vibration/ios`

    Resolving dependencies of `Podfile`
      CDN: trunk Relative path: CocoaPods-version.yml exists! Returning local because checking is only perfomed in repo update

    Comparing resolved specification to the sandbox manifest
      A Flutter
      A flutter_secure_storage
      A local_auth
      A shared_preferences
      A vibration

    Downloading dependencies

    -> Installing Flutter (1.0.0)

    -> Installing flutter_secure_storage (3.3.1)

    -> Installing local_auth (0.0.1)

    -> Installing shared_preferences (0.0.1)

    -> Installing vibration (1.7.2)
      - Running pre install hooks
    [!] The 'Pods-Runner' target has transitive dependencies that include statically linked binaries:
    (/Users/ilkerimamoglu/Desktop/Flutter_MQTT-master 3 copy/ios/Flutter/Flutter.framework)

    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/installer/xcode/target_validator.rb:84:in `block (2 levels) in
    verify_no_static_framework_transitive_dependencies'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/installer/xcode/target_validator.rb:74:in `each_key'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/installer/xcode/target_validator.rb:74:in `block in
    verify_no_static_framework_transitive_dependencies'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/installer/xcode/target_validator.rb:73:in `each'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/installer/xcode/target_validator.rb:73:in
    `verify_no_static_framework_transitive_dependencies'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/installer/xcode/target_validator.rb:38:in `validate!'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/installer.rb:595:in `validate_targets'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/installer.rb:162:in `install!'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/command/install.rb:52:in `run'
    /Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/command.rb:52:in `run'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/bin/pod:55:in `<top (required)>'
    /usr/local/bin/pod:23:in `load'
    /usr/local/bin/pod:23:in `<main>'

Error running pod install
Error launching application on iPhone 11.