0
votes

After Upgrading to xcode 7 getting below error, I tried adding both libraries also but it couldn't solve my issue. Tried to update pods also.

ld: file is universal (2 slices) but does not contain a(n) x86_64 slice: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.1.sdk/usr/lib/system/libcommonCrypto.dylib file '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.1.sdk/usr/lib/system/libcommonCrypto.dylib' for architecture x86_64

1
Have you add libcommonCrypto.dylib add not? because you said i triend that means you added or not found? - Rushang Prajapati
Yes i have added libcommonCrypto it is there. - Rohit
Why are you directly adding the libcommonCrypto.dylib instead of Security.framework? - zaph
@RushangPrajapati yes i know this i am working on workspace only.anyway thanks to all of you i solved this - Rohit

1 Answers

1
votes

I have solved this problem by removing libCommonCrypto.dylib,libz.dylib from project and adding security.framework, javascript.framework to the project.