Swift bridging header file won't work with use_frameworks

前端 未结 6 2207
春和景丽
春和景丽 2020-12-30 01:51

I\'m trying to use GoogleidentityToolkit library to handle login an things. I enable use_frameworks! on my pod file, but the module GITkit can\'t be found. I\'m trying to fi

6条回答
  •  被撕碎了的回忆
    2020-12-30 02:13

    The easiest way I've found is to create a fake .swift file within XCode. This should bring up the prompt to automatically create a bridging header.

    1. File > New > File...
    2. For the filetype, choose Swift.
    3. Allow Xcode to manually create the Swift Bridging Header.
    4. Delete the .swift file you originally created.

提交回复
热议问题