Skip to content

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

Closed
@bigtotorouk

Description

@bigtotorouk

/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

Activity

zileyuan

zileyuan commented on Jul 16, 2020

@zileyuan
Owner

flutter clean 试一试

bigtotorouk

bigtotorouk commented on Jul 17, 2020

@bigtotorouk
Author

@zileyuan 试过了还是不行

zileyuan

zileyuan commented on Jul 17, 2020

@zileyuan
Owner

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

bigtotorouk

bigtotorouk commented on Jul 17, 2020

@bigtotorouk
Author

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

bigtotorouk

bigtotorouk commented on Jul 17, 2020

@bigtotorouk
Author
zileyuan

zileyuan commented on Jul 17, 2020

@zileyuan
Owner

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

zileyuan commented on Jul 17, 2020

@zileyuan
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

bigtotorouk commented on Jul 17, 2020

@bigtotorouk
Author

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

woodymoo

woodymoo commented on Nov 13, 2020

@woodymoo

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @woodymoo@bigtotorouk@zileyuan

        Issue actions

          ios编译错误duplicate symbols for architecture arm64 · Issue #5 · zileyuan/umeng_analytics_push