shahin ali agharia
shahin ali agharia

Reputation: 1639

dyld: Symbol not found: __TMPdCSs12AnyGenerator

enter image description here

when I try to build and Run my project it gives me an error of symbol not found: __TMPdCSs12AnyGenerator

I had installed Xcode 7 beta on my system. When I installed it gives me an error of realm module not found so I just removed realm framework and added again after adding this frameworks again it gives about stated error.

enter image description here

Upvotes: 2

Views: 3851

Answers (3)

klaudas
klaudas

Reputation: 457

there's an update released for these frameworks to support Swift 2.2 (Xcode 7.3):

https://github.com/realm/realm-cocoa/releases/tag/v0.98.6

Upvotes: 0

Albert Liang
Albert Liang

Reputation: 11

I have encountered this problem after I update my XCode from 7.2 to 7.3. I use a framework build from XCode7.2. After I rebuild the framework on XCode7.3, the problem was solved.

Upvotes: 1

marius
marius

Reputation: 7806

You need to add Realm.framework and RealmSwift.framework to the “Embedded Binaries” section of your Xcode target.

You can check, if you have followed these steps correctly by following these steps:

  1. Select your project in the Project Navigator.
  2. Select your application target in the side bar in the section "Targets".
  3. Navigate to the tab "Build Phases"
  4. Expand the phase "Embed Frameworks"
  5. The destination should equal "Frameworks". The list should contain Realm.framework and RealmSwift.framework.

If such phase doesn't exist, please create a Copy Files phase by clicking on the plus in the upper left corner and selecting "New Copy Files Phase". Select as destination "Frameworks" and add the Realm.framework and the ReamSwift.framework there.

I've added two exemplary screenshots below, so you can compare graphically how it should look like.

General Tab

General Tab

Build Phases Tab

Build Phases

Application Bundle in the Built Products Directory

Application Bundle

Upvotes: 0

Related Questions