我知道关于这个问题有很多类似的问题,我都尝试了,但没有成功。\n尝试在物理设备上的 Xcode 上运行代码后开始出现问题。\n错误如下我在命令中所说的那样线路“颤振运行”。
\nRunning pod install... 1,234ms\nCocoaPods' output:\n\xe2\x86\xb3\n Preparing\n\n Analyzing dependencies\n\n Inspecting targets to integrate\n Using `ARCHS` setting to build architectures of target `Pods-Runner`: (``)\n\n Finding Podfile changes\n - Flutter\n - flutter_secure_storage\n - local_auth\n - shared_preferences\n - vibration\n\n Fetching external sources\n -> Fetching podspec for `Flutter` from `Flutter`\n -> Fetching podspec for `flutter_secure_storage` from `.symlinks/plugins/flutter_secure_storage/ios`\n -> Fetching podspec for `local_auth` from `.symlinks/plugins/local_auth/ios`\n -> Fetching podspec for `shared_preferences` from `.symlinks/plugins/shared_preferences/ios`\n -> Fetching podspec for `vibration` from `.symlinks/plugins/vibration/ios`\n\n Resolving dependencies of `Podfile`\n CDN: trunk Relative path: CocoaPods-version.yml exists! Returning local because checking is only perfomed in repo update\n\n Comparing resolved specification to the sandbox manifest\n A Flutter\n A flutter_secure_storage\n A local_auth\n A shared_preferences\n A vibration\n\n Downloading dependencies\n\n -> Installing Flutter (1.0.0)\n\n -> Installing flutter_secure_storage (3.3.1)\n\n -> Installing local_auth (0.0.1)\n\n -> Installing shared_preferences (0.0.1)\n\n -> Installing vibration (1.7.2)\n - Running pre install hooks\n [!] The 'Pods-Runner' target has transitive dependencies that include statically linked binaries:\n (/Users/ilkerimamoglu/Desktop/Flutter_MQTT-master 3 copy/ios/Flutter/Flutter.framework)\n\n /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/installer/xcode/target_validator.rb:84:in `block (2 levels) in\n verify_no_static_framework_transitive_dependencies'\n /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/installer/xcode/target_validator.rb:74:in `each_key'\n /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/installer/xcode/target_validator.rb:74:in `block in\n verify_no_static_framework_transitive_dependencies'\n /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/installer/xcode/target_validator.rb:73:in `each'\n /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/installer/xcode/target_validator.rb:73:in\n `verify_no_static_framework_transitive_dependencies'\n /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/installer/xcode/target_validator.rb:38:in `validate!'\n /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/installer.rb:595:in `validate_targets'\n /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/installer.rb:162:in `install!'\n /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/command/install.rb:52:in `run'\n /Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'\n /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/lib/cocoapods/command.rb:52:in `run'\n /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.0/bin/pod:55:in `<top (required)>'\n /usr/local/bin/pod:23:in `load'\n /usr/local/bin/pod:23:in `<main>'\n\nError running pod install\nError launching application on iPhone 11.\nRun Code Online (Sandbox Code Playgroud)\n即使我没有做其他事情,它也会给我这个错误。我尝试删除Flutter.framework并运行pod install,但它给了我[!] No `Podfile' found in the project directory.\n我能做什么?
小智 5
我遇到了同样的情况。这是我找到的解决方案。\n https://armen-mkrtchian.medium.com/run-cocoapods-on-apple-silicon-and-macos-big-sur-developer-transition-kit-b62acffc1387
\n基本上:
\n完成上述几个步骤后,重新启动 IDE 并重新运行应用程序。
\n| 归档时间: |
|
| 查看次数: |
2195 次 |
| 最近记录: |