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-11076] Add comprehensive examples for existed Open Source Objective-C projects. #4855

Open
swift-ci opened this issue Jul 6, 2019 · 0 comments

Comments

@swift-ci
Copy link
Contributor

swift-ci commented Jul 6, 2019

Previous ID SR-11076
Radar None
Original Reporter Lobanov (JIRA User)
Type Improvement
Environment

Xcode 11 beta 3

Build version 11M362v

Apple Swift Package Manager - Swift 5.0.0 (swiftpm-14490.62.2)

Additional Detail from JIRA
Votes 1
Component/s Package Manager
Labels Improvement
Assignee None
Priority Medium

md5: 1dbee19adf0d648d26a655c3c8bacecc

Issue Description:

I would like to have a complex example which covers all corners of Package manager.

Particularly, I would like to know how to lift existed Objective-C project into Swift packages.

I have encountered several errors.

Error Description
Unable to search public headers recursively When you specify path to headers, you should specify path to headers Include directory, no matter what it is.
Unable to exclude headers When you put all headers in one directory, you should consider which headers are public and which are private and sort them appropriately.
Unable to handle framework imports with angle brackets All imports of #import <Library/PublicHeader.h> should be replaced by plain #import "PublicHeader.h" to allow SwiftPM to build library.
Unable to resolve modern module import in command line interface for tests. When you would like to test existed library, you need to change all framework imports by module imports. At this point, library will compile and even tests are executed in Xcode. But when you try to test library from command line ( run `swift test` ), it won't compile with error "unable to find module @import Library;"

Project:

https://github.com/lolgear/CocoaLumberjack

Branch: swift_package

@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
Projects
None yet
Development

No branches or pull requests

2 participants