Does the latest swift5.3 SPM support binary libraries for complex dependencies?

At present, I know that SPM supports binary as follows

  • SPM supports binary libraries in the latest beta version of swift5.3
  • Support binary libraries currently only support xcframework
  • I know how to convert OC framework and. A's library into xcframework

But some complex binary libraries I have been trying to support SPM

![image-20200901101011069](upload://clJJkF9sZDC0KR0wc5xqd5ywjb1.png)

The above is the dependency graph that I need to support libraries. There are common dependency libraries and system libraries

Take a practical example of how to use cocoapods to support SPM

pod 'mob_secverify'

mob_secverify

{
  "name": "mob_secverify",
  "version": "2.1.2",
  "summary": "秒验,一键登录",
  "license": "Copyright © 2019-2029 mob.com",
  "authors": {
    "mob": "mobproducts@163.com"
  },
  "homepage": "http://www.mob.com",
  "source": {
    "http": "http://dev.ios.mob.com/files/download/secverify/SecVerify_For_iOS_v2.1.2.zip"
  },
  "platforms": {
    "ios": "8.0"
  },
  "libraries": "c++",
  "vendored_frameworks": [
    "SecVerify/SecVerify.framework",
    "SecVerify/PlatformSDK/Mobile/TYRZSDK.framework",
    "SecVerify/PlatformSDK/Telecom/EAccountHYSDK.framework",
    "SecVerify/PlatformSDK/Union/OAuth.framework"
  ],
  "resources": [
    "SecVerify/SecVerify.bundle",
    "SecVerify/PlatformSDK/Mobile/TYRZResource.bundle",
    "SecVerify/PlatformSDK/Telecom/EAccountOpenPageResource.bundle"
  ],
  "xcconfig": {
    "OTHER_LDFLAGS": "-ObjC"
  },
  "dependencies": {
    "MOBFoundation": [
]

}
}

 

MOBFoundation

{
  "name": "MOBFoundation",
  "version": "3.2.17",
  "summary": "mob.com的公共库",
  "license": "Copyright © 2012-2018 mob.com",
  "authors": {
    "Jinghuang Liu": "liujinghuang@icloud.com"
  },
  "homepage": "http://www.mob.com",
  "source": {
    "http": "http://dev.ios.mob.com/files/download/mobfoundation/MOBFoundation_For_iOS_v3.2.17.zip"
  },
  "platforms": {
    "ios": "8.0"
  },
  "frameworks": "JavaScriptCore",
  "libraries": [
    "z",
    "c++"
  ],
  "vendored_frameworks": [
    "MOBFoundation/MOBFoundation.framework",
    "MOBFoundation/MOBFoundationEx.framework"
  ]
}

 

Terms of Service

Privacy Policy

Cookie Policy