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

0.3.0报错'UMShare/UMShare.h' file not found #1

Open
CoderDuht opened this issue Sep 2, 2023 · 3 comments
Open

0.3.0报错'UMShare/UMShare.h' file not found #1

CoderDuht opened this issue Sep 2, 2023 · 3 comments

Comments

@CoderDuht
Copy link

flutter版本3.7.12

下面是运行报错内容:
Swift Compiler Error (Xcode): Include of non-modular header inside framework module 'umshare.UmsharePlugin': '/Users/du/Documents/GitPerson/flutter_mpen/ios/Pods/UMCommon/UMCommon_7.4.1/UMCommon.framework/Headers/UMCommon.h'
/Users/du/fvm/versions/3.7.12/.pub-cache/hosted/pub.flutter-io.cn/umshare-0.3.0/ios/Classes/UmsharePlugin.h:1:8

Swift Compiler Error (Xcode): 'UMShare/UMShare.h' file not found
/Users/du/fvm/versions/3.7.12/.pub-cache/hosted/pub.flutter-io.cn/umshare-0.3.0/ios/Classes/UmsharePlugin.h:2:8

Swift Compiler Error (Xcode): Could not build Objective-C module 'umshare'

@312236232
Copy link

解决了吗? 我的也是!

@312236232
Copy link

我用的是 0.4.0

@312236232
Copy link

target 'Runner' do

use_frameworks!

use_modular_headers!

flutter_install_all_ios_pods File.dirname(File.realpath(FILE))
end

注释了 use_frameworks! , 好了。

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

2 participants