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-14944] SwiftPM and app extensions (compiles every package with the -application-extension flag) #4402

Open
swift-ci opened this issue Jul 20, 2021 · 0 comments
Labels

Comments

@swift-ci
Copy link
Contributor

Previous ID SR-14944
Radar rdar://80658290
Original Reporter GoffredoMarocchi (JIRA User)
Type Bug

Attachment: Download

Environment

macOS 12.0b3, Xcode 13.0 beta 3

Additional Detail from JIRA
Votes 12
Component/s Package Manager
Labels Bug
Assignee None
Priority Medium

md5: 550d9ae3c833074e9057e9f60b6af4d1

Issue Description:

Hello everyone,

This issue relates to the breaking changes applications are experiencing right now with Xcode 13.0 Beta 3 that was released last week which is being discussed in the following Swift Evolution forum thread: https://forums.swift.org/t/set-application-extension-api-only-on-a-spm-package/39333/28

This is at best requiring a lot of additional annotation to be added by library authors and complicating the experience of using local packages too. It seems like SwiftPM is treating the package as if it were always compiled inside an app extension regardless of the actual Target it is bound to. Could this be changed back to how it was in previous beta's or inferred from the the project's target used (it could be an additional behaviour / override for SwiftPM integration within macOS/iOS/tvOS/... apps built with Xcode perhaps).

Thank you in advance for your help and support 🙂.

Kind Regards,

Goffredo Marocchi

Note(s):

Logged a Feedback Assistant issue: FB9337463

Apple Dev forum reference: https://developer.apple.com/forums/thread/685103

Firebase fix (they could completely exclude the library from being used in an Extension): https://github.com/firebase/firebase-ios-sdk/pull/8405/files

Instructions project issue: ephread/Instructions#256 --> this presents a bit more of a problem as the responsibility is on the user when integrating the package to add the proper define in the application target(s)

@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

2 participants