Randall
Randall

Reputation: 14849

Duplicate symbols when running in release mode

I am including two libraries in my app via cocoa pods. We'll call them XMLParser and StoreService. The StoreService library already uses XMLParser though, so it causes duplicate symbol errors.

I followed these instructions and was able to remove XMLParser from the StoreService library.

This worked fine for Debug mode, but when I run in Release mode, I still get the duplicate symbols.

Upvotes: 0

Views: 121

Answers (1)

matt
matt

Reputation: 535546

I'm going to guess that you didn't completely follow those instructions. Libraries can have multiple architecture slices. If you stripped only the active architecture, that will take care of Debug, but it won't take care of Release because it adds architectures (because Build Active Architecture Only is No). So that would explain your differing results in Debug and Release.

Upvotes: 1

Related Questions