-
Notifications
You must be signed in to change notification settings - Fork 1
Update BuildFrameworksTask to build Package.swift directly
#1
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
Conversation
…ch-O objects, headers and modules.
| version = "4.0.1", | ||
| name = "AFNetworking" | ||
| ) | ||
| /* TODO: Support building target dependencies? i.e `FirebaseCore` & `FirebaseSharedSwift` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Packages which have dependencies such as FirebaseRemoteConfig we will need to loop through the dependencies defined in the FIrebase Package.swift. Unless there is another way to identify the dependencies.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for instance using tool allows to output detailed information about all the linked frameworks:
otool -l ./FirebaseRemoteConfig
Load command 5
cmd LC_LINKER_OPTION
cmdsize 40
count 2
string #1 -framework
string #2 FirebaseCore
string #2 FirebaseCore
Load command 50
cmd LC_LINKER_OPTION
cmdsize 48
count 2
string #1 -framework
string #2 FirebaseSharedSwift
|
Closing in favour of PaGr0m#7 |
🚀 Description
Since
generate-xcodeprojis now deprecated, we need a means to build aXCFrameworkpackaged binary from aPackage.swiftThere is limitation with using
xcodebuildwith Swift package.https://forums.swift.org/t/how-to-build-swift-package-as-xcframework/41414
Based on script shared with this Apple forum:
https://developer.apple.com/forums/thread/741100
This PR will upgrade
BuildFrameworksTaskto build and package XCFramework.PaGr0m#3
https://youtrack.jetbrains.com/issue/KT-53877/Support-Swift-Package-Manager-in-Kotlin-Multiplatform