sinaweibosdk / weibo_ios_sdk

新浪微博 IOS SDK
http://weibo.com
Other
1.45k stars 565 forks source link

Make WeiboSDK compatible for an Cocoa Touch Framework. #425

Closed wplong11 closed 4 years ago

wplong11 commented 4 years ago

Currently WeiboSDK cannot be built as Cocoa Touch Framework and imported as module into a Swift Xcode Project.

This would have the advantage, that developers who are only familiar with Swift and not with Objective-C can see the header in the automatically generated Swift syntax.

If you try to build WeiboSDK as Cocoa Touch Framework and import it as module in a Swift Xcode Project, you get compiler errors that can easily be fixed:

Include of non-modular header inside framework module 'MyCoreFramework': '/Pods/Headers/Public/WeiboSDK/WeiboSDK.h'

Include of non-modular header inside framework module 'MyCoreFramework': '/Pods/Headers/Public/WeiboSDK/WeiboUser.h'

The problem is that WeiboSDK.h and WeiboUser.h imports some headers.

Please check a related issue:

sinaweibosdk commented 4 years ago

最新版本已去除WeiboUser.h文件,可以参考相关issue