Skip to content

Conversation

@markst
Copy link

@markst markst commented Jun 25, 2024

🚀 Description

Since generate-xcodeproj is now deprecated, we need a means to build a XCFramework packaged binary from a Package.swift

There is limitation with using xcodebuild with 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 BuildFrameworksTask to build and package XCFramework.

PaGr0m#3

https://youtrack.jetbrains.com/issue/KT-53877/Support-Swift-Package-Manager-in-Kotlin-Multiplatform

version = "4.0.1",
name = "AFNetworking"
)
/* TODO: Support building target dependencies? i.e `FirebaseCore` & `FirebaseSharedSwift`
Copy link
Author

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.

Copy link
Author

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

@markst
Copy link
Author

markst commented Jul 10, 2024

Closing in favour of PaGr0m#7

@markst markst closed this Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant