dyld: Symbol not found: __TMPdCSs12AnyGenerator

…衆ロ難τιáo~ 提交于 2019-12-02 03:49:37

问题


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.


回答1:


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.




回答2:


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

Build Phases Tab

Application Bundle in the Built Products Directory




回答3:


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



来源:https://stackoverflow.com/questions/35789155/dyld-symbol-not-found-tmpdcss12anygenerator

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!