0

I've been getting this error message as an exception

dyld: Symbol not found: __TWPO6Darwin9MachErrorSs16RawRepresentableS_
Referenced from: /Users/Fiodor/Library/Developer/Xcode/DerivedData/test-buqpcjbiwfvjnadievcgwbgveewn/Build/Products/Debug/test.app/Contents/MacOS/../Frameworks/libswiftFoundation.dylib
Expected in: /Users/Fiodor/Library/Developer/Xcode/DerivedData/test-buqpcjbiwfvjnadievcgwbgveewn/Build/Products/Debug/test.app/Contents/MacOS/../Frameworks/libswiftDarwin.dylib
in /Users/Fiodor/Library/Developer/Xcode/DerivedData/test-buqpcjbiwfvjnadievcgwbgveewn/Build/Products/Debug/test.app/Contents/MacOS/../Frameworks/libswiftFoundation.dylib
(lldb)

At first I thought it was a single occurrence, because this hadn't happened to me before. But I started creating multiple Cocoa Swift projects with just the template code, and it still shows up every time.

I've already tried adding the frameworks manually to my project and changing the deployment target, but it didn't help at all.

I'm running OSX 10.11.4 Beta (15E33e), Xcode Version 7.2 (7C68).

Fiodor
  • 796
  • 2
  • 7
  • 18

1 Answers1

1

I bet that you are including a framework or some files with the ending of .dylib. With some updates from Apple they changed to .tbd

From your error code you are including libswiftFoundation.dylib.

Remove it and change it to

libswiftFoundation.tbd
Tom el Safadi
  • 6,164
  • 5
  • 49
  • 102
  • I'm not very good with Xcode. How do I do it? I don't include libswiftFoundation at all and I can't find it in "Linked frameworks and libraries" -> "Add" at all. I use standard Swift Cocoa Application template for OSX in Xcode. – Fiodor Jan 30 '16 at 15:03
  • Is this a new project? Or when did it produce the error – Tom el Safadi Jan 30 '16 at 15:06
  • I don't remember when exactly it occured for the first time, but I tried creating a few default template projects where I chaned nothing and the same problem is present. – Fiodor Jan 30 '16 at 15:08
  • As I mentioned, I can't add it manually, because it's not listed in frameworks list. – Fiodor Jan 30 '16 at 15:09
  • Did you update to a new Swift version or to a new Xcode version? – Tom el Safadi Jan 30 '16 at 15:11
  • It is not good to use a Xcode beta version, this might cause the error – Tom el Safadi Jan 30 '16 at 15:12
  • No, but, as I couldn't get rid of the exception, I reinstalled Xcode. Still nit working. Maybe I have to try the Xcode 7.3 Beta since I'm using the OSX Beta? – Fiodor Jan 30 '16 at 15:13
  • Try to remove the beta, it is always bad to use betas because there are strange errors sometimes – Tom el Safadi Jan 30 '16 at 15:18
  • I'm nit using the Xcode Beta, I was just wondering if I should start using the Beta. – Fiodor Jan 30 '16 at 15:19
  • Let us [continue this discussion in chat](http://chat.stackoverflow.com/rooms/102103/discussion-between-anokrize-and-fiodor). – Tom el Safadi Jan 30 '16 at 21:19