首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何解决iPhone11在颤振上运行吊舱时的错误

如何解决iPhone11在颤振上运行吊舱时的错误
EN

Stack Overflow用户
提问于 2020-11-11 09:12:55
回答 1查看 2.1K关注 0票数 0

我知道在这个问题上有很多类似的问题,我都试过了,但都没有成功。该问题是在试图在物理设备上运行Xcode上的代码后开始的。当我在命令行“颤振运行”上说时,错误在下面。

代码语言:javascript
复制
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.

即使我没有做其他的事情,它也给了我这个错误。我尝试删除Flutter.framework并运行pod install,但是它给了我[!] No `Podfile' found in the project directory.,我能做什么呢?

EN

回答 1

Stack Overflow用户

发布于 2021-05-08 07:02:36

我也遇到过同样的情况。这就是我找到的解决办法。https://armen-mkrtchian.medium.com/run-cocoapods-on-apple-silicon-and-macos-big-sur-developer-transition-kit-b62acffc1387

基本上:

  • 在查找器中找到Terminal.app。(Applications->Terminal.app)
  • Right-click并选择Get信息
  • ,检查“Open”
  • 退出终端应用程序的所有实例,并再次运行
  • 运行sudo安装ffi

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

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

https://stackoverflow.com/questions/64783498

复制
相关文章

相似问题

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