Undefined symbols for architecture arm64: “_OBJC_CLASS_$_PayTabCardReaderViewController”, referenced from: objc-class-ref in ViewController.o

前端 未结 3 1423
难免孤独
难免孤独 2021-01-06 04:26

I am getting this weird error when importing a library called pay tabs

Undefined symbols for architecture arm64:
\"_OBJC_CLASS_$_PayTabCardReaderViewControl         


        
相关标签:
3条回答
  • 2021-01-06 04:56

    Have you added the library path to Build Settings -> Libraries Search Path? Check at Build Settings -> Link Binary With Libraries that your library is added also.

    0 讨论(0)
  • 2021-01-06 05:17

    Go to Build Phases -> Link Binary with Libraries Add your third party library to this. If you could not find your library, click Add other.

    0 讨论(0)
  • 2021-01-06 05:18

    Ahh, isn't Xcode great ?

    What I would recommend is this: Click on your project in the left panel, then check your architecture settings in both the Project and the Targets sections.

    And if you have any third-party projects within your project, do the same for them aswell.

    (I had to do this when building an Xcode project which used the MapBox iOS SDK library. Annoyingly, you do need to check this setting in each of the various Build Settings tabs, otherwise Xcode will complain.)

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