Swift import statement failing

后端 未结 3 1947
抹茶落季
抹茶落季 2021-02-11 05:15

UPDATED with answer at bottom

I am using the TwitterKit framework as installed with Twitter\'s new Fabric platform. This code in ViewController.sw

3条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-11 05:46

    Here I have tried to add this framework in application and its perfectly working. From this it is clear that issue is related to linking with the module you have added.

    Relink / Reference again with the module will resolve this issue:

    Points need to be highlight:

    1. Copy the framework to project application folder.

    For example:

    Go to finder of its location >> From Xcode right click on project name >> Show in finder will open project location folder. Here you must have to copy TwitterKit.framework bundle.

    enter image description here

    1. Again right click on the project name and click on Add files to "project-name" >> Select TwitterKit.framework bundle and click on Add button will add a reference of that framework to project.

提交回复
热议问题