Reputation: 183
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
Reputation: 1289
I was getting the same error and I solved it by:
Opening the organizer in XCode 6 Beta3 (Window -> Organizer)
Selecting the "Projects" tab at the top
Selecting my project in the left hand side column
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
Reputation: 76958
I had to add import Foundation
to the first line of my AppDelegate.swift
file (Xcode 6 Beta 3)
Upvotes: 0
Reputation: 1243
I solved this by deleting the cached files in ../DerivedData/*
and ~/Library/Caches/com.apple.dt.Xcode
Upvotes: 5