Xcode 7.3 cannot create __weak reference in file using manual reference counting

后端 未结 7 2008
清酒与你
清酒与你 2020-12-12 12:50

After updating to Xcode 7.3, it throws the error Cannot create __weak reference in file using manual reference counting in pod files. Has anyone solved this iss

7条回答
  •  没有蜡笔的小新
    2020-12-12 13:36

    Workaround for Facebook weak references in FBSettings.m

    To Podfile, it is possible to write a script to run after the pod install / update, describes the following there.

     
    post_install do | installer |
         classy_pods_target = installer.pods_project.targets.find {| target | target.name == 'Facebook-iOS-SDK'}
         classy_pods_target.build_configurations.each do | config |
             config.build_settings['CLANG_ENABLE_OBJC_WEAK'] ||= 'YES'
         end
     end
    

    CLANG_ENABLE_OBJC_WEAK how to find the words of the magic that. Valid XHTML.

提交回复
热议问题