0

I have a problem with xcode build setting.

I'm trying to add Firebase Analytics to my project by using SPM.

For now on, I'm using "-force_load" option for "Other Linker Flags" because I have to add some external frameworks and libraries in my project.

But when I trying to add Firebase Analytics by SPM, Firebase Docs specifies that I have to set a "-ObjC" option in "Other Linker Flags".

If I follow that description, I'm facing duplicate symbols error.

What I have done for solving this problem is:

  1. "GCC_NO_COMMON_BLOCKS": "NO",
  2. switch "-force_load" to "-all_load"
  3. just set "-ObjC"

all of those doesn't work for me.

Is there any solution for this situation? or Can I use both -ObjC and -force_load options together?

I'm expecting that I don't need to change any code in my external libraries and frameworks, is this possible?

0 Answers0