-
Notifications
You must be signed in to change notification settings - Fork 135
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
Duplicate symbols when including runtime via cocoapods #10
Comments
This seems relevant, and probably points to your Cocoapods configuration as not being the issue. |
Do you mean this?
|
For the most part... yes. Except there's no v1.2.1 available via cocoa pods, and using the echo command overwrites our existing Podfile. We simply add
to the existing Podfile file in the root of our project. |
I'm not very knowledgeable about cocoapods spec files, but the problem seems to be your non-arc sub spec. I don't think it's doing what you want: when I include your cocoapod as
I don't get duplicate .m files in the Compile Sources, and I simply get the normal arc versions of the files (so, for the time being this is a work around for getting the ARC version of the runtime vie cocoa pod). I suspect the
of the root podspec and of the non-arc subspec are aggregating and including all of the source files twice. |
version 1.2.2 is available now
|
Confirming: v 1.2.2 does not have the duplicate symbol issue. Thanks Alexey! |
When I add
to an existing Podfile, all of the ProtocolBuffers runtime's .m files end up being included multiple times in Pods.xcodeproj's Build Phases->Compile Sources section. Deleting the duplicate .m files from this list fixes the issue.
An possible explanation is this Podfile uses the "link_with" directive with a list of two targets (one the main app target, and one is the test target).
E.g. we have something like:
The text was updated successfully, but these errors were encountered: