Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-13890] SPM: module.modulemap file does not support including headers in parent folder #4472

Open
NSExceptional opened this issue Nov 23, 2020 · 1 comment
Labels

Comments

@NSExceptional
Copy link

Previous ID SR-13890
Radar rdar://problem/71712729
Original Reporter @NSExceptional
Type Bug
Additional Detail from JIRA
Votes 0
Component/s Package Manager
Labels Bug
Assignee None
Priority Medium

md5: bca7ae7269dfc328e873f62d4ac9b374

Issue Description:

Given the following folder structure, Package.swift, and module.modulemap, my package contains no symbols when added to a project via Xcode:

// swift-tools-version:5.0
import PackageDescription

let package = Package(
    name: "TBAlertController",
    platforms: [
        .iOS(.v8)
    ],
    products: [
        .library(name: "TBAlertController", targets: ["TBAlertController"])
    ],
    targets: [
        .target(
            name: "TBAlertController",
            path: "Classes"
        )
    ]
)
.
├── Classes/
│   ├── TBAlertAction.h
│   ├── TBAlertAction.m
│   ├── TBAlertController.h
│   ├── TBAlertController.m
│   └── include/
│       └── module.modulemap
├── Package.swift
└── TBAlertController.podspec
module TBAlertController [library] {
  header "../TBAlertController.h"
  header "../TBAlertAction.h"
  export *
}

The package in question can be found here: https://github.com/NSExceptional/TBAlertController

I don't actually know if this is a bug or not, but I was unable to find much more documentation on the topic than this, and my question on the Forums did not receive much attention.

@typesanitizer
Copy link

@swift-ci create

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants