Dan
Dan

Reputation: 183

Error when debugging on 7.1 device swift xcode6 beta 3

I have a project that worked fine in beta2 but now it's broken with the following runtime error.

dyld: Symbol not found: __TWPVSs26AutoreleasingUnsafePointerSs8_Pointer
  Referenced from: /var/mobile/Applications/6A8ABF68-4B3D-464A-9322-3B3F61B429E2/MovieLookUp.app/MovieLookUp
  Expected in: /private/var/mobile/Applications/6A8ABF68-4B3D-464A-9322-3B3F61B429E2/MovieLookUp.app/Frameworks/libswift_stdlib_core.dylib
 in /var/mobile/Applications/6A8ABF68-4B3D-464A-9322-3B3F61B429E2/MovieLookUp.app/MovieLookUp

I have changed all arrays etc. to the new standard (got nice warnings and autocorrection boxed for them). I'm pretty new to iOS coding so I need some guidance that might give me a better clue at this matter.

I still have a warning and get the same problem as mentioned in: relocatable dylibs (e.g. embedded frameworks) are only supported on iOS 8.0 and later (@rpath/libswift_stdlib_core.dylib)

Thanks!

Upvotes: 14

Views: 3891

Answers (4)

klinger
klinger

Reputation: 1289

I was getting the same error and I solved it by:

  1. Opening the organizer in XCode 6 Beta3 (Window -> Organizer)

  2. Selecting the "Projects" tab at the top

  3. Selecting my project in the left hand side column

  4. Selecting the "Delete..." button next to the Derived Data location

My swift application now runs on iOS 7.1.2 on my iPhone 4

Upvotes: 18

Akhlaq Rao
Akhlaq Rao

Reputation: 29

cleaning DerivedData folder resolves the issue.

Upvotes: 2

Jiaaro
Jiaaro

Reputation: 76958

I had to add import Foundation to the first line of my AppDelegate.swift file (Xcode 6 Beta 3)

Upvotes: 0

artey
artey

Reputation: 1243

I solved this by deleting the cached files in ../DerivedData/* and ~/Library/Caches/com.apple.dt.Xcode

Upvotes: 5

Related Questions