Skip to content

Should error during install when there are duplicate library names #4014

@samurai00

Description

@samurai00

I am building an app which uses cocoapods to handle my external dependencies.
Cocoapods version 0.37.2 this works fine.
But I got error after I upgrade Cocoapods to 0.38.2.
Xcode version: 6.4
My Podfile:

platform :ios, "7.0"
pod "Pingpp", "~> 2.1.0"
pod "AFNetworking"

error:

Undefined symbols for architecture arm64:
  "_OBJC_CLASS_$_PingppInternal", referenced from:
      l_OBJC_$_CATEGORY_PingppInternal_$_Alipay in libpingpp+alipay.a(PingppInternal+Alipay.o)
      l_OBJC_$_CATEGORY_PingppInternal_$_Bfb in libpingpp+bfb.a(PingppInternal+Bfb.o)
      l_OBJC_$_CATEGORY_PingppInternal_$_Up in libpingpp+up.a(PingppInternal+Up.o)
      l_OBJC_$_CATEGORY_PingppInternal_$_Wx in libpingpp+wx.a(PingppInternal+Wx.o)
  "_OBJC_CLASS_$_PingppUtil", referenced from:
      objc-class-ref in libpingpp+alipay.a(PingppInternal+Alipay.o)
      objc-class-ref in libpingpp+bfb.a(PingppViewController.o)
      objc-class-ref in libpingpp+bfb.a(PingppInternal+Bfb.o)
      objc-class-ref in libpingpp+up.a(PingppInternal+Up.o)
      objc-class-ref in libpingpp+wx.a(PingppInternal+Wx.o)
  "_PingppLocalizedString", referenced from:
      -[PingppInternal(Alipay) alipayResult:] in libpingpp+alipay.a(PingppInternal+Alipay.o)
      -[PingppInternal(Bfb) channelBfb:withViewController:] in libpingpp+bfb.a(PingppInternal+Bfb.o)
      ___53-[PingppInternal(Bfb) channelBfb:withViewController:]_block_invoke103 in libpingpp+bfb.a(PingppInternal+Bfb.o)
      -[PingppInternal(Up) channelUpmp:withViewController:] in libpingpp+up.a(PingppInternal+Up.o)
      -[PingppInternal(Wx) onResp:] in libpingpp+wx.a(PingppInternal+Wx.o)
ld: symbol(s) not found for architecture arm64

And it works when using subspecs of Pingpp.
Podfile:

platform :ios, '7.0'
pod "Pingpp/Alipay", "~> 2.1.0"
pod "Pingpp/Wx", "~> 2.1.0"
pod "Pingpp/UnionPay", "~> 2.1.0"
pod "AFNetworking"

I'm not sure if the podspec file is correct.

Metadata

Metadata

Assignees

No one assigned

    Labels

    d1:easyAn easy ticket that is a good start for first-time contributorss3:detailedIssues with in-depth explanations and examples that make it easier to troubleshoott2:defectThese are known bugs. The issue should also contain steps to reproduce. PRs welcome!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions