首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >如何解决这些问题?错误(Xcode):框架未找到颤振

如何解决这些问题?错误(Xcode):框架未找到颤振
EN

Stack Overflow用户
提问于 2022-05-17 00:48:47
回答 2查看 3.1K关注 0票数 3

如何解决这些问题?Error (Xcode): Framework not found Flutter

我尝试了更多的方法,

尝试删除ios然后安装pod ..。

试着扑过去..。

试图创建新项目等。

但仍然无法解决。

代码语言:javascript
运行
复制
Launching lib/main.dart on iPhone 13 Pro Max in debug mode...
/Users/pin-chientseng/Desktop/yomate/ios/Runner/Info.plist: Property List error: Found non-key inside <dict> at line 56 / JSON error:
JSON text did not start with array or object and option to allow fragments not set. around line 1, column 0.
Xcode build done.                                           221.1s
Failed to build iOS app
Error output from Xcode build:
↳
    ** BUILD FAILED **


Xcode's output:
↳
    Writing result bundle at path:
        /var/folders/rg/v6d4v6m545949bhd3pv5555r0000gn/T/flutter_tools.hhxYin/flutter_ios_build_temp_dirsANWae/temporary_xcresult_bundle

    ld: framework not found Flutter
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    note: Using new build system
    note: Planning
    note: Build preparation complete
    note: Building targets in dependency order
    warning: Stale file '/Users/pin-chientseng/Desktop/yomate/build/ios/Debug-iphonesimulator/Runner.app/GoogleService-Info.plist' is
    located outside of the allowed root paths.

    note: Removed stale file
    '/Users/pin-chientseng/Library/Developer/Xcode/DerivedData/Runner-bfllcubjuppngacurzilkdnplylp/Build/Intermediates.noindex/Runner
    .build/Debug-iphonesimulator/Runner.build/InputFileList-5F0225AF943341352A9BA345-Pods-Runner-resources-Debug-input-files-37e3c74e
    61b246db180ac6f1b6f5519a-resolved.xcfilelist'

    note: Removed stale file
    '/Users/pin-chientseng/Library/Developer/Xcode/DerivedData/Runner-bfllcubjuppngacurzilkdnplylp/Build/Intermediates.noindex/Runner
    .build/Debug-iphonesimulator/Runner.build/InputFileList-678E497CE5823DAA4909D0F3-Pods-Runner-frameworks-Debug-input-files-6f17fb4
    132a6c963427e5fd8c0f46475-resolved.xcfilelist'

    note: Removed stale file
    '/Users/pin-chientseng/Library/Developer/Xcode/DerivedData/Runner-bfllcubjuppngacurzilkdnplylp/Build/Intermediates.noindex/Runner
    .build/Debug-iphonesimulator/Runner.build/OutputFileList-5F0225AF943341352A9BA345-Pods-Runner-resources-Debug-output-files-2b94b0
    84fd7edee03f689887bc427bd3-resolved.xcfilelist'

    note: Removed stale file
    '/Users/pin-chientseng/Library/Developer/Xcode/DerivedData/Runner-bfllcubjuppngacurzilkdnplylp/Build/Intermediates.noindex/Runner
    .build/Debug-iphonesimulator/Runner.build/OutputFileList-678E497CE5823DAA4909D0F3-Pods-Runner-frameworks-Debug-output-files-3dbe4
    531b144e8e556eea6741f7e46e6-resolved.xcfilelist'

    note: Removed stale file
    '/Users/pin-chientseng/Library/Developer/Xcode/DerivedData/Runner-bfllcubjuppngacurzilkdnplylp/Build/Intermediates.noindex/Runner
    .build/Debug-iphonesimulator/Runner.build/Script-5F0225AF943341352A9BA345.sh'

    note: Removed stale file
    '/Users/pin-chientseng/Library/Developer/Xcode/DerivedData/Runner-bfllcubjuppngacurzilkdnplylp/Build/Intermediates.noindex/Runner
    .build/Debug-iphonesimulator/Runner.build/Script-678E497CE5823DAA4909D0F3.sh'

    note: Removed stale file
    '/Users/pin-chientseng/Library/Developer/Xcode/DerivedData/Runner-bfllcubjuppngacurzilkdnplylp/Build/Intermediates.noindex/Runner
    .build/Debug-iphonesimulator/Runner.build/Script-69D48C77EE5D169DAA62588C.sh'

    /Users/pin-chientseng/Desktop/yomate/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target
    'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.2.99. (in target
    'FMDB' from project 'Pods')
    /Users/pin-chientseng/Desktop/yomate/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target
    'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.2.99. (in target
    'leveldb-library' from project 'Pods')

    Result bundle written to path:
        /var/folders/rg/v6d4v6m545949bhd3pv5555r0000gn/T/flutter_tools.hhxYin/flutter_ios_build_temp_dirsANWae/temporary_xcresult_bundle


Error (Xcode): Framework not found Flutter


Could not build the application for the simulator.
Error launching application on iPhone 13 Pro Max.

如果我用这种方法,

代码语言:javascript
运行
复制
post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      if Gem::Version.new('8.0') > Gem::Version.new(config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'])
        config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '8.0'
      end
    end
  end
end

我会得到这个错误..。

代码语言:javascript
运行
复制
Launching lib/main.dart on iPhone 13 Pro Max in debug mode...
Running pod install...                                             38.2s
Running Xcode build...                                                  
Xcode build done.                                           28.7s
Failed to build iOS app
Error output from Xcode build:
↳
    ** BUILD FAILED **


Xcode's output:
↳
    Writing result bundle at path:
        /var/folders/rg/v6d4v6m545949bhd3pv5555r0000gn/T/flutter_tools.gk0YEl/flutter_ios_build_temp_dirWL743Q/temporary_xcresult_bundle

    /Users/pin-chientseng/Development/flutter/.pub-cache/hosted/pub.dartlang.org/video_player_avfoundation-2.3.4/ios/Classes/messages
    .g.m:7:9: fatal error: 'Flutter/Flutter.h' file not found
    #import <Flutter/Flutter.h>
            ^~~~~~~~~~~~~~~~~~~
    1 error generated.
    note: Using new build system
    note: Planning
    note: Build preparation complete
    note: Building targets in dependency order

    Result bundle written to path:
        /var/folders/rg/v6d4v6m545949bhd3pv5555r0000gn/T/flutter_tools.gk0YEl/flutter_ios_build_temp_dirWL743Q/temporary_xcresult_bundle


Lexical or Preprocessor Issue (Xcode): 'Flutter/Flutter.h' file not found
/Users/pin-chientseng/Development/flutter/.pub-cache/hosted/pub.dartlang.org/video_player_avfoundation-2.3.4/ios/Classes/messages.g.m
:6:8


Could not build the application for the simulator.
Error launching application on iPhone 13 Pro Max.
EN

回答 2

Stack Overflow用户

发布于 2022-05-17 00:59:32

我尝试过许多解决这个错误的方法。唯一可能的解决方案是删除颤振路径中的颤振文件夹,并重新复制颤振文件夹。

这解决了我的错误。

票数 2
EN

Stack Overflow用户

发布于 2022-05-18 01:01:04

在我的例子中,当我试图清理我的258 so上的一些存储以更新Xcode :(在这样做的过程中,我可能删除了flutter.framework ),在删除颤振实例之后,我得到了这个错误。

这里给出的解决办法对我没有任何改变。

所以我试着清理舱里的所有东西,包括缓存。pod安装命令失败了,因为它漏掉了ios工具,这些工具可以使用颤振执行部分-ios下载。

所以对我来说,解决这个问题的完整过程是:

代码语言:javascript
运行
复制
cd ios
pod cache clean --all
rm -rf ~/Library/Caches/CocoaPods
rm -rf Pods
rm -rf ~/Library/Developer/Xcode/DerivedData/*
pod deintegrate
flutter precache --ios
pod install

我希望这个解决方案能帮助到一些人,防止他们损失一整天的工作,就像为我做的那样。

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

https://stackoverflow.com/questions/72267071

复制
相关文章

相似问题

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