issue using FBSDK in swift iOS application

后端 未结 3 361
刺人心
刺人心 2020-12-17 20:06

I am coding an iOS 8 app in swift using the FBSDK to allow users to log in to my app. So far I have successfully implemented the login feature using the FBSDK v3.25 in swift

相关标签:
3条回答
  • 2020-12-17 20:18

    Try with build settings. Set Allow Non-modular Includes in Framework modules to YES.

    0 讨论(0)
  • 2020-12-17 20:26

    For those of you trying to compile a swift project with FB cocoaPods.

    *BTW, it worked once, only in xCode 7.1 it stopped

    Only after playing with everything, I did 2 things:

    1. Added the following code at the end of the pod:

      post_install do |installer|
      installer.pods_project.build_configuration_list.build_configurations.each do |configuration|
          configuration.build_settings['CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES'] = 'YES'
      end
      

      end

    2. Remove the 'new and improved' swift imports, and add FB into the obj-C bridging header: A small screenshot of my bridging header

    0 讨论(0)
  • 2020-12-17 20:39

    This is a bug and Facebook is currently "assigning this to the appropriate team".

    To get updates to this issue follow this link:

    https://developers.facebook.com/bugs/362995353893156/

    and hit subscribe.

    Some people have found success using the answers on this link (none have worked for me):

    Facebook iOS8 SDK build module error for FBSDKCoreKit

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