Native linking failed, duplicate symbol

646 views Asked by At

When I tried to debug the iOS to the Simulator, This happens after I include the Xamarin.InAppPurchase-Unified components in Xamarin.I have these errors shown in the screenshots. How will I fix this one.

Thanks in advance for the help.

enter image description hereom/nDRKs.png

enter image description here

2

There are 2 answers

3
wg_hjl On

are you project has two crach_report pb.c.m file?

1
wg_hjl On

maybe you can ask for help to who offer you .a file ,They may Know how to solve it .fellow step give you thought may help you

1.look lipo -info libSBJSON.a

you will see has armv7 arm64 construct

2.first separate armv7 construct

Lipo -thin armv7 libSBJSON.a -output libSBJSON_armv7

the seperated armv7 pacgage place current dictionary

3. open armv7 pacgage

Ar -t libSBJSON_armv7 | grep SBJson

when open pacgage ,you will see .o

4. delete the conflict .o file

Ar -dv libSBJSON_armv7 SBJsonStreamParserState-4FEA9E115CD0E45C.o

5. repeat 2,3,4 use to arm64

6. after deletae the confict .o ,merge arm64 and armv7 package

Lipo -create libSBJSON_armv7 libSBJSON_arm64 -output libSBJSON.a