Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.
This repository was archived by the owner on May 20, 2025. It is now read-only.

[iOS] duplicate symbols for architecture (libSSZipArchive.a and libJWT.a) #1597

@mistikk

Description

@mistikk

When I try to get build for iOS project, it is getting error about duplicate symbols. It is about libSSZipArchive.a and libJWT.a libraries.

I investigated all issues about that. Before v5.2.2, we could ignore jwt and SSZipArchive libraries with subspecs. But this feature removed with this pr #1210. I think we can find a solution for that or add again to subspecs.

Same issues before v5.2.2;
#1378
#1123
#1114
#241

Steps to Reproduce

  1. react-native link react-native-code-push
  2. react-native run-ios

Expected Behavior

Successful build

Actual Behavior

What actually happens?

image

/Users/XXX/Library/Developer/Xcode/DerivedData/eSteem-ecgmyvokxqytbxcykhiowcvasalg/Build/Products/Debug-iphonesimulator/libCodePush.a(SSZipArchive.o)
/Users/XXX/Library/Developer/Xcode/DerivedData/eSteem-ecgmyvokxqytbxcykhiowcvasalg/Build/Products/Debug-iphonesimulator/SSZipArchive/libSSZipArchive.a(SSZipArchive.o)
ld: 271 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Reproducible Demo

Environment

  • react-native-code-push version: 5.6.0
  • react-native version: 0.59.8
  • iOS/Android/Windows version: iOS 12
  • Does this reproduce on a debug build or release build? Both of them
  • Does this reproduce on a simulator, or only on a physical device? All of them

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions