Questions tagged [duplicate-symbol]

99 questions
1
vote
0 answers

duplicate symbol in Pods (Flipper) and external libraries

I know there are tons of questions regarding this issue, but i didn't come up with solution. We have in my project (react-native) a static library: let's call it externalLib_v1.1r.a that we added manually to my project. It always worked fine. It's a…
1
vote
0 answers

Flutter project fails to build on iOS Simulator (Duplicate symbol error)

I have been getting this error whenever I try to build my flutter project on an iOS Simulator. Sometimes it works just fine after deleting the Podfiles from the ios folder, and also using the "flutter pub cache repair" and "flutter clean" commands…
Talaal_M
  • 125
  • 5
1
vote
1 answer

Why is this not a duplicate symbol error?

I have a iOS framework that contains .c, .mm source files. For convenience let's call these two files A.c and B.mm. In both files, I defined a function with the same function protocol like the following. // A.c uint32_t get_file(const char…
slow
  • 805
  • 3
  • 13
  • 27
1
vote
1 answer

duplicate symbol _OBJC_CLASS_$_PodsDummy_Pods_packager

I encountered a very strange thing. I used the cocoapods-packager to generate two frameworks, each of which depends on an identical third-party library. When I run two frameworks into my project, there is absolutely no problem. However, when I use…
Arthur Liu
  • 21
  • 2
1
vote
2 answers

C++ member function definition outside the class | duplicate symbols

In one of my classes header file Lfo.h, I have a class definition where I put the member function definition out of the class (It might be better to have a separate .cpp file but it should be ok put here?): // Lfo.h class CLfo { public: static…
user8822312
  • 255
  • 4
  • 14
1
vote
0 answers

duplicate symbol main in SDL_uikitappdelegate.o

I am trying to integrate a library into an existing iOS product which requires -ObjC linker flag but this causes duplicate symbol _main error in another library (libSDL2.a). Anyone here knows how to deal with this error ? I tried using…
Alfred J
  • 21
  • 3
1
vote
0 answers

Duplicate symbols when integrating a static library

I'm having a problem when integrating a static library into my project. The problem happens because I have a prior framework inside my project and when I add the static library it makes a duplicate problem. Here is the problem: duplicate symbol…
1
vote
1 answer

How do I access an array from one file in another file?

I am really new to Xcode. I don't quite understand exactly what it means when you initialize variables in certain places, but my code works so this isn't the issue... for now. Anyway, here is a my .h file. Everywhere there is a "----" it just means…
1
vote
2 answers

duplicate symbol _XBAnimationInterpolatorEaseInOut

I've created a single view iOS app. Added pod 'XBPageCurl'. When I add #import "XBPageCurlView.h" to any view controller I get this error duplicate symbol _XBAnimationInterpolatorEaseInOut…
AlexanderZ
  • 2,128
  • 3
  • 20
  • 24
1
vote
1 answer

Duplicate Symbols IOS when sharing static Library on sub projects

I have a problem sharing a static library to my xcode sub projects. Assuming the structure of my project is like this: Main.xcodeproj | |_Cordova.xcodeproj | |_SubProject1.xcodeproj | |_SubProject2.xcodeproj I have create the static library…
Fra8686
  • 11
  • 3
1
vote
1 answer

duplicate symbols for architecture armv7(FMDB)

There are a lot of question about duplicate symbols for architecure XXX, but I didn't got answer of my question. In my scenario,I use Cocoapod,and import FMDB,But when I integrate another third party SDK,And when I build the project,and got the…
HamasN
  • 524
  • 1
  • 5
  • 20
1
vote
2 answers

Makefile duplicate symbol

I want to take a brief moment that I'm aware SO is littered with these questions and I've looked at many: Xcode C++ :: Duplicate Symbols for Architecture x86_64 Duplicate symbols for architecture x86_64 under Xcode ld: 1 duplicate symbol for…
djthoms
  • 3,026
  • 2
  • 31
  • 56
1
vote
2 answers

Strange ld error about duplicate symbol

I have a project consisting of two files, main.c and logoff.c. When I try to compile them I get this error: gcc -c -g -Wall main.c gcc -c -g -Wall logoff.c gcc -o main -g -Wall main.o logoff.o ld: duplicate symbol _logoff in logoff.o and main.o I…
titaniumdecoy
  • 18,900
  • 17
  • 96
  • 133
1
vote
2 answers

Linker error with Duplicated Symbols, SWIG and C++ Vectors

I came across this error trying to compile a shared object from 2 sets of objects. The first set contains one .os object compiled from one cpp file generated by SWIG. The second set is contains all of the .so files from the individual files that…
Ben Jones
  • 919
  • 1
  • 8
  • 22
1
vote
0 answers

duplicate symbols when using same third party library

I created a static library which uses AFNetworking in key role to comunicate with backend.While testing, everything works great but when I tried to use AFNetworking on the test application by importing it again, I'm getting bunch of duplicate…