Skip to content

linker command failed with exit code 1 #1377

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
sidhusubhash opened this issue Aug 13, 2018 · 15 comments
Closed

linker command failed with exit code 1 #1377

sidhusubhash opened this issue Aug 13, 2018 · 15 comments
Assignees
Labels

Comments

@sidhusubhash
Copy link

duplicate symbol _zipOpenNewFileInZip3_64 in:
/Users/commutatus-1/Library/Developer/Xcode/DerivedData/dvdApp-ehmnrlsesyixbihiukjxoiomsalw/Build/Products/Debug-iphonesimulator/libCodePush.a(zip.o)
/Users/commutatus-1/Library/Developer/Xcode/DerivedData/dvdApp-ehmnrlsesyixbihiukjxoiomsalw/Build/Products/Debug-iphonesimulator/SSZipArchive/libSSZipArchive.a(zip.o)
duplicate symbol _zipOpen3_64 in:
/Users/commutatus-1/Library/Developer/Xcode/DerivedData/dvdApp-ehmnrlsesyixbihiukjxoiomsalw/Build/Products/Debug-iphonesimulator/libCodePush.a(zip.o)
/Users/commutatus-1/Library/Developer/Xcode/DerivedData/dvdApp-ehmnrlsesyixbihiukjxoiomsalw/Build/Products/Debug-iphonesimulator/SSZipArchive/libSSZipArchive.a(zip.o)
duplicate symbol _zipOpenNewFileInZip2_64 in:
/Users/commutatus-1/Library/Developer/Xcode/DerivedData/dvdApp-ehmnrlsesyixbihiukjxoiomsalw/Build/Products/Debug-iphonesimulator/libCodePush.a(zip.o)
/Users/commutatus-1/Library/Developer/Xcode/DerivedData/dvdApp-ehmnrlsesyixbihiukjxoiomsalw/Build/Products/Debug-iphonesimulator/SSZipArchive/libSSZipArchive.a(zip.o)
duplicate symbol _zipOpen2_64 in:
/Users/commutatus-1/Library/Developer/Xcode/DerivedData/dvdApp-ehmnrlsesyixbihiukjxoiomsalw/Build/Products/Debug-iphonesimulator/libCodePush.a(zip.o)
/Users/commutatus-1/Library/Developer/Xcode/DerivedData/dvdApp-ehmnrlsesyixbihiukjxoiomsalw/Build/Products/Debug-iphonesimulator/SSZipArchive/libSSZipArchive.a(zip.o)
duplicate symbol _zipOpenNewFileInZip3 in:
/Users/commutatus-1/Library/Developer/Xcode/DerivedData/dvdApp-ehmnrlsesyixbihiukjxoiomsalw/Build/Products/Debug-iphonesimulator/libCodePush.a(zip.o)
/Users/commutatus-1/Library/Developer/Xcode/DerivedData/dvdApp-ehmnrlsesyixbihiukjxoiomsalw/Build/Products/Debug-iphonesimulator/SSZipArchive/libSSZipArchive.a(zip.o)
duplicate symbol _zipOpen3 in:
/Users/commutatus-1/Library/Developer/Xcode/DerivedData/dvdApp-ehmnrlsesyixbihiukjxoiomsalw/Build/Products/Debug-iphonesimulator/libCodePush.a(zip.o)
/Users/commutatus-1/Library/Developer/Xcode/DerivedData/dvdApp-ehmnrlsesyixbihiukjxoiomsalw/Build/Products/Debug-iphonesimulator/SSZipArchive/libSSZipArchive.a(zip.o)
duplicate symbol _zipOpenNewFileInZip2 in:
/Users/commutatus-1/Library/Developer/Xcode/DerivedData/dvdApp-ehmnrlsesyixbihiukjxoiomsalw/Build/Products/Debug-iphonesimulator/libCodePush.a(zip.o)
/Users/commutatus-1/Library/Developer/Xcode/DerivedData/dvdApp-ehmnrlsesyixbihiukjxoiomsalw/Build/Products/Debug-iphonesimulator/SSZipArchive/libSSZipArchive.a(zip.o)
duplicate symbol _zipOpen2 in:
/Users/commutatus-1/Library/Developer/Xcode/DerivedData/dvdApp-ehmnrlsesyixbihiukjxoiomsalw/Build/Products/Debug-iphonesimulator/libCodePush.a(zip.o)
/Users/commutatus-1/Library/Developer/Xcode/DerivedData/dvdApp-ehmnrlsesyixbihiukjxoiomsalw/Build/Products/Debug-iphonesimulator/SSZipArchive/libSSZipArchive.a(zip.o)
ld: 252 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

@sidhusubhash
Copy link
Author

after integrating code push in to my project, I am getting this error while building.

@alexandergoncharov-zz
Copy link
Contributor

Hi @sidhusubhash ,
Thanks for reporting!

Could you please provide your platforms and detailed reporsteps?

Thanks,
Alexander

@sidhusubhash
Copy link
Author

hi @alexandergoncharov
"react-native": "0.49.3",
"react-native-code-push": "^5.3.5",

after pod install, build fails with linker error

@alexandergoncharov-zz
Copy link
Contributor

If you use pod install you don't have to use link command. And in the other side if you use link command you don't have to use cocoaPods. So, you should use only one of this approaches.

Please let me know if it was helpful you have any questions.

@sidhusubhash
Copy link
Author

thank you, anyways its fixed.

@alexandergoncharov-zz
Copy link
Contributor

Good news =)
Thanks for keeping us in touch!

@Balanced02
Copy link

@sidhusubhash Please can you share how you fixed it? I'm having same error here after adding react-native-code-push Thanks.

@Aleksion
Copy link

@abodalevsky -

This happened to me when I had to do a pod update for another dependency. Any ideas as to how to resolve this?

@keung7252
Copy link

still not working after Manual installation

@wygodaPaul
Copy link

We're facing the same issue. We are stuck for 3 days already trying to make codepush work :/

@andrewhartwig
Copy link

Same here, anybody know what's up?

@gustavo-franco-iw
Copy link

+1

@master96
Copy link

+1 any help ??

tried following solution didnt work thought :

#241 (comment)

pod 'CodePush', :path => '../node_modules/react-native-code-push',subspecs: ['Core']

above line throws error

CocoaPods could not find compatible versions for pod "CodePush/Core":

@pedrosimao
Copy link

@master96 Same here! Did you find a solution?

@master96
Copy link

@master96 Same here! Did you find a solution?

Hi @pedrosimao ,
I actually ended up manually removing reference to libSSZipArchive from react-native-code-push folder. That worked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

10 participants