Xcode 7 can't find header files from framework

后端 未结 8 1335
伪装坚强ぢ
伪装坚强ぢ 2021-02-03 19:03

I\'m trying to add PassSlot into my project, but it says it can\'t find the .h file. I\'m following everything correctly from here: https://github.com/passslot/passslot-ios-sdk<

8条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-03 19:12

    I ran into this error when trying to link to my own custom framework. The problem was that I hadn't set up my framework to export the needed headers. To do so:

    1. Select each header file you want to make available, go to the File Inspector > Target Membership, and make sure the target is checked and set to "Public".
    2. In the MyFrameworkName.h top-level file, import each header file you want to make available: e.g. #import

提交回复
热议问题