How to add the WeChat API to a Swift project?

前端 未结 3 1076
囚心锁ツ
囚心锁ツ 2020-11-30 11:56

I\'m trying to add WeChat sharing functionality to my project. However the SDK files, documentation, development guides, and sample project are all in Objective-C. I am writ

3条回答
  •  再見小時候
    2020-11-30 12:22

    Expected a type --> for this error , check once the Apple Documentation for UIImage it's in UIKit, not Foundation. The docs are now all targeted at Swift.

    @import UIKit;
    

    In objective-c.

    #import  
    

    which you need at the top of your file (no need for the Foundation import either).

    failed to import bridging header --> you were made the small Mistake see this link, it helps you

提交回复
热议问题