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-1641] Products API doesn't work for C Modules #5369

Closed
swift-ci opened this issue May 29, 2016 · 0 comments
Closed

[SR-1641] Products API doesn't work for C Modules #5369

swift-ci opened this issue May 29, 2016 · 0 comments
Labels

Comments

@swift-ci
Copy link
Contributor

Previous ID SR-1641
Radar None
Original Reporter bhargavg (JIRA User)
Type Bug
Status Resolved
Resolution Duplicate
Additional Detail from JIRA
Votes 0
Component/s Package Manager
Labels Bug
Assignee bhargavg (JIRA)
Priority Medium

md5: 8f13d1e446181938eef07c2925f0750a

duplicates:

  • SR-3606 [SE-0146] Implement Package Manager Product Definitions

Issue Description:

When trying to create a custom .dylib product through Products API for C modules, swift build fails with error:

warning: No module FooCLib found for product CustomProduct
warning: No module BarCLib found for product CustomProduct
error: noModules("FooBarProduct")

Contents of Package.swift file:

import PackageDescription

let package = Package(
    name: "TestSPM",
    targets: [
        Target(name: "FooCLib"),
        Target(name: "BarCLib"),
    ]
)

let dylib = Product(name: "FooBarProduct", type: .Library(.Dynamic), modules: "FooCLib", "BarCLib")
products.append(dylib)
@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
This issue was closed.
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

1 participant