Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"No such file or directory (2)" for libswiftSecurity.dylib on XCode 7

Tags:

xcode

ios

swift

I am trying to build a project that was running ok on XCode 6 but I get the error

"/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/libswiftSecurity.dylib" failed: No such file or directory (2)

I checked the contents of both XCode 6 & 7 on disk and the file exists in the older version but not on XCode 7. Is this something that someone else has faced?

like image 495
abinop Avatar asked Aug 10 '15 08:08

abinop


2 Answers

I ran into the same problem and was able to solve it by cleaning my build folder. In Xcode Menu do the following:

Product -> (hold Alt key) -> Clean Build Folder

After that step the error went away.

like image 111
Jonas Avatar answered Oct 03 '22 01:10

Jonas


Try to copy the file to that folder:

cp ~/old_path/libswiftSecurity.dylib ~/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator

Maybe this is only a problem of yours. It should be solved.

like image 43
hasan Avatar answered Oct 03 '22 00:10

hasan