Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

运行 ios 模拟器报错 'MOBFoundation/MOBFDataModel.h' file not found,真机不会报错 #102

Open
giantss opened this issue May 16, 2024 · 3 comments

Comments

@giantss
Copy link

giantss commented May 16, 2024

13881715844840_ pic
13891715846369_ pic
13901715846377_ pic

环境:

[✓] Flutter (Channel stable, 3.19.5, on macOS 14.4.1 23E224 darwin-x64, locale zh-Hans-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.2)
[✓] Connected device (4 available)
[✓] Network resources

• No issues found!

@JamesGZM
Copy link

请问下您解决了么 我也是模拟器报这个错 手头没有真机 没试过真机 安卓正常

@mazhongyi
Copy link

同样的问题,真机能跑,模拟器不行

@xujiaji
Copy link

xujiaji commented Jan 8, 2025

找到个处理方式,在Podfile中添加配置:

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      # 设置Framework Module允许导入非modular的头文件
      config.build_settings['CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES'] = 'YES'
    end
  end
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants