{"action":"created","issue":{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/4014","labels_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/4014/labels{/name}","comments_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/4014/comments","events_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/4014/events","html_url":"https://github.com/CocoaPods/CocoaPods/issues/4014","id":100511481,"number":4014,"title":"Undefined symbols for architecture xxx with 0.38.2 ","user":{"login":"samurai00","id":685874,"avatar_url":"https://avatars.githubusercontent.com/u/685874?v=3","gravatar_id":"","url":"https://api.github.com/users/samurai00","html_url":"https://github.com/samurai00","followers_url":"https://api.github.com/users/samurai00/followers","following_url":"https://api.github.com/users/samurai00/following{/other_user}","gists_url":"https://api.github.com/users/samurai00/gists{/gist_id}","starred_url":"https://api.github.com/users/samurai00/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samurai00/subscriptions","organizations_url":"https://api.github.com/users/samurai00/orgs","repos_url":"https://api.github.com/users/samurai00/repos","events_url":"https://api.github.com/users/samurai00/events{/privacy}","received_events_url":"https://api.github.com/users/samurai00/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/labels/s2:confirmed","name":"s2:confirmed","color":"E2A72C"},{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/labels/t2:defect","name":"t2:defect","color":"6902E1"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-08-12T10:14:21Z","updated_at":"2015-09-18T04:03:25Z","closed_at":null,"body":"I am building an app which uses cocoapods to handle my external dependencies.\r\nCocoapods version 0.37.2 this works fine.\r\nBut I got error after I upgrade Cocoapods to 0.38.2.\r\nXcode version: 6.4\r\nMy Podfile:\r\n```\r\nplatform :ios, \"7.0\"\r\npod \"Pingpp\", \"~> 2.1.0\"\r\npod \"AFNetworking\"\r\n```\r\nerror:\r\n```\r\nUndefined symbols for architecture arm64:\r\n  \"_OBJC_CLASS_$_PingppInternal\", referenced from:\r\n      l_OBJC_$_CATEGORY_PingppInternal_$_Alipay in libpingpp+alipay.a(PingppInternal+Alipay.o)\r\n      l_OBJC_$_CATEGORY_PingppInternal_$_Bfb in libpingpp+bfb.a(PingppInternal+Bfb.o)\r\n      l_OBJC_$_CATEGORY_PingppInternal_$_Up in libpingpp+up.a(PingppInternal+Up.o)\r\n      l_OBJC_$_CATEGORY_PingppInternal_$_Wx in libpingpp+wx.a(PingppInternal+Wx.o)\r\n  \"_OBJC_CLASS_$_PingppUtil\", referenced from:\r\n      objc-class-ref in libpingpp+alipay.a(PingppInternal+Alipay.o)\r\n      objc-class-ref in libpingpp+bfb.a(PingppViewController.o)\r\n      objc-class-ref in libpingpp+bfb.a(PingppInternal+Bfb.o)\r\n      objc-class-ref in libpingpp+up.a(PingppInternal+Up.o)\r\n      objc-class-ref in libpingpp+wx.a(PingppInternal+Wx.o)\r\n  \"_PingppLocalizedString\", referenced from:\r\n      -[PingppInternal(Alipay) alipayResult:] in libpingpp+alipay.a(PingppInternal+Alipay.o)\r\n      -[PingppInternal(Bfb) channelBfb:withViewController:] in libpingpp+bfb.a(PingppInternal+Bfb.o)\r\n      ___53-[PingppInternal(Bfb) channelBfb:withViewController:]_block_invoke103 in libpingpp+bfb.a(PingppInternal+Bfb.o)\r\n      -[PingppInternal(Up) channelUpmp:withViewController:] in libpingpp+up.a(PingppInternal+Up.o)\r\n      -[PingppInternal(Wx) onResp:] in libpingpp+wx.a(PingppInternal+Wx.o)\r\nld: symbol(s) not found for architecture arm64\r\n```\r\n\r\nAnd it works when using subspecs of [Pingpp](https://github.com/PingPlusPlus/pingpp-ios).\r\nPodfile:\r\n```\r\nplatform :ios, '7.0'\r\npod \"Pingpp/Alipay\", \"~> 2.1.0\"\r\npod \"Pingpp/Wx\", \"~> 2.1.0\"\r\npod \"Pingpp/UnionPay\", \"~> 2.1.0\"\r\npod \"AFNetworking\"\r\n```\r\n\r\nI'm not sure if the podspec file is correct.\r\n"},"comment":{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/comments/141336989","html_url":"https://github.com/CocoaPods/CocoaPods/issues/4014#issuecomment-141336989","issue_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/4014","id":141336989,"user":{"login":"samurai00","id":685874,"avatar_url":"https://avatars.githubusercontent.com/u/685874?v=3","gravatar_id":"","url":"https://api.github.com/users/samurai00","html_url":"https://github.com/samurai00","followers_url":"https://api.github.com/users/samurai00/followers","following_url":"https://api.github.com/users/samurai00/following{/other_user}","gists_url":"https://api.github.com/users/samurai00/gists{/gist_id}","starred_url":"https://api.github.com/users/samurai00/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samurai00/subscriptions","organizations_url":"https://api.github.com/users/samurai00/orgs","repos_url":"https://api.github.com/users/samurai00/repos","events_url":"https://api.github.com/users/samurai00/events{/privacy}","received_events_url":"https://api.github.com/users/samurai00/received_events","type":"User","site_admin":false},"created_at":"2015-09-18T04:03:25Z","updated_at":"2015-09-18T04:03:25Z","body":"I found this subspec caused the error.\r\n```\r\n  s.subspec 'Bfb' do |bfb|\r\n    bfb.frameworks = 'CoreTelephony', 'AddressBook', 'AddressBookUI', 'AudioToolbox', 'CoreAudio', 'CoreGraphics', 'ImageIO', 'MapKit', 'MessageUI', 'MobileCoreServices', 'QuartzCore'\r\n    bfb.source_files = 'lib/Channels/Bfb/Dependencies/**/*.{h,m}'\r\n    bfb.public_header_files = 'lib/Channels/Bfb/Dependencies/**/*.h'\r\n    bfb.resource = 'lib/Channels/Bfb/*.bundle'\r\n    bfb.vendored_libraries = 'lib/Channels/Bfb/**/*.a'\r\n    bfb.dependency 'Pingpp/Core'\r\n  end\r\n```\r\nIt include both `source_files` and `vendored_libraries`.\r\nIf I delete the `bfb.source_files` line and complies the source files manually, the error disappears."}}