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编译错误duplicate symbols for architecture arm64 #5

Closed
bigtotorouk opened this issue Jul 15, 2020 · 9 comments
Closed

ios编译错误duplicate symbols for architecture arm64 #5

bigtotorouk opened this issue Jul 15, 2020 · 9 comments

Comments

@bigtotorouk
Copy link

/Users/xxx/workspace-flutter/xx_flutter/ios/Pods/UMCAnalytics/UMAnalytics.framework/UMAnalytics(UMComCheckEvent.o)
/Users/xxx/workspace-flutter/xx_flutter/ios/Pods/UMCCommon/UMCommon.framework/UMCommon(UMComCheckEvent.o)
ld: 164 duplicate symbols for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description

@zileyuan
Copy link
Owner

flutter clean 试一试

@bigtotorouk
Copy link
Author

@zileyuan 试过了还是不行

@zileyuan
Copy link
Owner

你的Xcode是什么版本的,还有就是你之前pod 安装过友盟的组件么?

@bigtotorouk
Copy link
Author

xcode 是11.5, pod的chache都clean 了 。 我看ios目录下podfile.lock文件 是这个 , 你看对吗
image

@bigtotorouk
Copy link
Author

@zileyuan

@zileyuan
Copy link
Owner

zileyuan commented Jul 17, 2020

xcode 是11.5, pod的chache都clean 了 。 我看ios目录下podfile.lock文件 是这个 , 你看对吗
image

友盟 6.1.0版本的分析是有问题的,我之前这个版本是不能编译,我的版本

  • UMCAnalytics (6.0.5):
    • UMCCommon
  • UMCCommon (2.1.1)
  • UMCCommonLog (1.0.0)
  • UMCPush (3.2.4):
    • UMCCommon
  • umeng_analytics_push (0.0.1):
    • Flutter
    • UMCAnalytics
    • UMCCommon
    • UMCCommonLog
    • UMCPush

@zileyuan
Copy link
Owner

你使用
s.dependency 'UMCCommon','6.0.5'
s.dependency 'UMCAnalytics','2.1.1'
s.dependency 'UMCPush','3.2.4'
s.dependency 'UMCCommonLog','1.0.0' 试试

@bigtotorouk
Copy link
Author

恩,改完之后好了。多谢 @zileyuan

@woodymoo
Copy link

@zileyuan 要写到哪个 podspec文件? UMCCommon.podspec 和 UMCAnalytics.podspec ?

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

3 participants