giginet / Scipio

A new build tool to generate XCFramework

Home Page:https://giginet.github.io/Scipio/documentation/scipio

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

where is the `dSYMs` directory in xcframework when use `--embed-debug-symbols` option?

r-plus opened this issue Β· comments

Could not found dSYMs directory in scipio generated xcframework directory even if --embed-debug-symbols option enabled.

using scipio version is 0.16.0

How to reproduce

  1. create the new directory
  2. run swift package init
  3. edit the Package.swift to add Alamofire
// swift-tools-version: 5.8
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
    name: "test",
    defaultLocalization: "ja",
    platforms: [
        .iOS(.v15),
    ],
    products: [
        .library(
            name: "test",
            targets: ["test"]),
    ],
    dependencies: [
        .package(url: "https://github.com/Alamofire/Alamofire", exact: "5.8.0"),
    ],
    targets: [
        .target(
            name: "test",
            dependencies: [
                .product(name: "Alamofire", package: "Alamofire"),
            ]
        ),
    ]
)
  1. run swift package resolve to generate Package.resolved
{
  "pins" : [
    {
      "identity" : "alamofire",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/Alamofire/Alamofire",
      "state" : {
        "revision" : "b2fa556e4e48cbf06cf8c63def138c98f4b811fa",
        "version" : "5.8.0"
      }
    }
  ],
  "version" : 2
}
  1. run scipio --embed-debug-symbols --support-simulators to generate xcframeworks
$ scipio --embed-debug-symbols --support-simulators
πŸ” Resolving Dependencies...
πŸ“¦ Building Alamofire for iOS, iPhone Simulator
πŸš€ Combining into XCFramework...
πŸš€ Cache Alamofire.xcframework to cache storage
❇️ Succeeded.
  1. generated files are...
$ tree XCFrameworks
XCFrameworks
└── Alamofire.xcframework
    β”œβ”€β”€ Info.plist
    β”œβ”€β”€ ios-arm64
    β”‚   └── Alamofire.framework
    β”‚       β”œβ”€β”€ Alamofire
    β”‚       β”œβ”€β”€ Headers
    β”‚       β”‚   └── Alamofire-Swift.h
    β”‚       β”œβ”€β”€ Info.plist
    β”‚       └── Modules
    β”‚           β”œβ”€β”€ Alamofire.swiftmodule
    β”‚           β”‚   β”œβ”€β”€ Project
    β”‚           β”‚   β”‚   └── arm64-apple-ios.swiftsourceinfo
    β”‚           β”‚   β”œβ”€β”€ arm64-apple-ios.abi.json
    β”‚           β”‚   β”œβ”€β”€ arm64-apple-ios.swiftdoc
    β”‚           β”‚   └── arm64-apple-ios.swiftmodule
    β”‚           └── module.modulemap
    └── ios-arm64_x86_64-simulator
        └── Alamofire.framework
            β”œβ”€β”€ Alamofire
            β”œβ”€β”€ Headers
            β”‚   └── Alamofire-Swift.h
            β”œβ”€β”€ Info.plist
            β”œβ”€β”€ Modules
            β”‚   β”œβ”€β”€ Alamofire.swiftmodule
            β”‚   β”‚   β”œβ”€β”€ Project
            β”‚   β”‚   β”‚   β”œβ”€β”€ arm64-apple-ios-simulator.swiftsourceinfo
            β”‚   β”‚   β”‚   └── x86_64-apple-ios-simulator.swiftsourceinfo
            β”‚   β”‚   β”œβ”€β”€ arm64-apple-ios-simulator.abi.json
            β”‚   β”‚   β”œβ”€β”€ arm64-apple-ios-simulator.swiftdoc
            β”‚   β”‚   β”œβ”€β”€ arm64-apple-ios-simulator.swiftmodule
            β”‚   β”‚   β”œβ”€β”€ x86_64-apple-ios-simulator.abi.json
            β”‚   β”‚   β”œβ”€β”€ x86_64-apple-ios-simulator.swiftdoc
            β”‚   β”‚   └── x86_64-apple-ios-simulator.swiftmodule
            β”‚   └── module.modulemap
            └── _CodeSignature
                └── CodeResources

15 directories, 22 files

Could not found dSYMs directory under the ios-arm64 and ios-arm64_x86_64-simulator.

this is carthage output version of alamofire xcframework, that contain the dSYMs directory.

$ tree Carthage/Build/Alamofire.xcframework
Carthage/Build/Alamofire.xcframework
β”œβ”€β”€ Info.plist
β”œβ”€β”€ ios-arm64
β”‚   β”œβ”€β”€ Alamofire.framework
β”‚   β”‚   β”œβ”€β”€ Alamofire
β”‚   β”‚   β”œβ”€β”€ Headers
β”‚   β”‚   β”‚   └── Alamofire-Swift.h
β”‚   β”‚   β”œβ”€β”€ Info.plist
β”‚   β”‚   └── Modules
β”‚   β”‚       └── Alamofire.swiftmodule
β”‚   β”‚           β”œβ”€β”€ arm64-apple-ios.abi.json
β”‚   β”‚           β”œβ”€β”€ arm64-apple-ios.swiftdoc
β”‚   β”‚           └── arm64-apple-ios.swiftmodule
β”‚   └── dSYMs
β”‚       └── Alamofire.framework.dSYM
β”‚           └── Contents
β”‚               β”œβ”€β”€ Info.plist
β”‚               └── Resources
β”‚                   └── DWARF
β”‚                       └── Alamofire
└── ios-arm64_x86_64-simulator
    β”œβ”€β”€ Alamofire.framework
    β”‚   β”œβ”€β”€ Alamofire
    β”‚   β”œβ”€β”€ Headers
    β”‚   β”‚   └── Alamofire-Swift.h
    β”‚   β”œβ”€β”€ Info.plist
    β”‚   β”œβ”€β”€ Modules
    β”‚   β”‚   └── Alamofire.swiftmodule
    β”‚   β”‚       β”œβ”€β”€ Project
    β”‚   β”‚       β”‚   β”œβ”€β”€ arm64-apple-ios-simulator.swiftsourceinfo
    β”‚   β”‚       β”‚   └── x86_64-apple-ios-simulator.swiftsourceinfo
    β”‚   β”‚       β”œβ”€β”€ arm64-apple-ios-simulator.abi.json
    β”‚   β”‚       β”œβ”€β”€ arm64-apple-ios-simulator.swiftdoc
    β”‚   β”‚       β”œβ”€β”€ arm64-apple-ios-simulator.swiftmodule
    β”‚   β”‚       β”œβ”€β”€ x86_64-apple-ios-simulator.abi.json
    β”‚   β”‚       β”œβ”€β”€ x86_64-apple-ios-simulator.swiftdoc
    β”‚   β”‚       └── x86_64-apple-ios-simulator.swiftmodule
    β”‚   └── _CodeSignature
    β”‚       └── CodeResources
    └── dSYMs
        └── Alamofire.framework.dSYM
            └── Contents
                β”œβ”€β”€ Info.plist
                └── Resources
                    └── DWARF
                        └── Alamofire

23 directories, 23 files