square / cocoapods-pack

A CocoaPods plugin for producing xcframeworks from podspecs.
Apache License 2.0
115 stars 7 forks source link

Can we specify which subspecs includes? #8

Open muukii opened 2 years ago

muukii commented 2 years ago

For instance, in the case of creating Moya pod. which contains some subspecs. however, pack command does not have the option to specify which subspecs include. https://raw.githubusercontent.com/Moya/Moya/14.0.0/Moya.podspec

muukii commented 2 years ago

also looks like, generated podspec should have a dependency on Alamofire.

muukii commented 2 years ago

result json does not contain Alamofire

{
  "name": "Moya",
  "version": "14.0.0",
  "summary": "Network abstraction layer written in Swift",
  "license": {
    "type": "MIT",
    "file": "License.md"
  },
  "authors": {
    "Ash Furrow": "ash@ashfurrow.com"
  },
  "homepage": "https://github.com/Moya/Moya",
  "description": "Moya abstracts network commands using Swift Generics to provide developers\\nwith more compile-time confidence.\\n\\nReactiveSwift and RxSwift extensions exist as well. Instructions for installation\\nare in [the README](https://github.com/Moya/Moya).",
  "social_media_url": "http://twitter.com/ashfurrow",
  "source": {
    "http": "https://tmp.com",
    "sha256": "eb66b12a4e0e18c37da1fc59bc2551716a224189128b5ed5381b1c5c23ad80b5"
  },
  "cocoapods_version": ">= 1.4.0",
  "swift_versions": "5.0",
  "platforms": {
    "ios": "10.0"
  },
  "ios": {
    "vendored_frameworks": "ios/Moya.xcframework"
  },
  "swift_version": "5.0"
}
dnkoutso commented 2 years ago

I do not think subspecs are supported at this time.