Undefined symbols for architecture i386 “_OBJC_CLASS_$_Appirater”

前端 未结 4 1069
我寻月下人不归
我寻月下人不归 2020-12-30 09:30

After adding Appirater to my iOS project, when I compile, I get the error:

Undefined symbols for architecture i386:
  \"_OBJC_CLASS_$_Appirater\", referenced         


        
相关标签:
4条回答
  • 2020-12-30 09:34

    It seems that you haven't properly added the Appirater code to your project. Both Appirater.h and Appirater.m must be part of your project, and Appirater.m must be compiled like all your other files.

    0 讨论(0)
  • 2020-12-30 09:41

    I just had the same problem, and fixed it.

    The cause of my issue is I had dragged and dropped a file from other project to the current.

    Of course it is working when we remove and recreate the file.

    0 讨论(0)
  • 2020-12-30 09:44

    I think, that you only added files to project, but not to target.
    Click on Appirater.m file in Project Navigator and set checkbox near to your target name in Target membership of File Inspector.

    0 讨论(0)
  • 2020-12-30 09:48

    You'll also get this error if you've neglected to add the CFNetwork and SystemConfiguration frameworks to your project.

    0 讨论(0)
提交回复
热议问题