You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Wanted to test it out in an actual iOS project, but when I tried to import it the usual SPM way from Xcode, I'm getting this:
and that's because to be able to import the library, SPM needs Package.swift and all the Swift package contents to be in the root of the repository. Being this a monorepo, one possible way to solve this is:
define a CI workflow to be started on main branch when you want to perform an iOS release, which clones the ios branch in a separate folder, cleans its content, copies over all the contents from the swift folder and then commits, pushes and tags (.e.g 1.0.0-ios).
In that way it will be possible to import the SPM package in Xcode and other SPM packages by specifying the git repo and the ios tag.
The text was updated successfully, but these errors were encountered:
Hi and thank you for this library!
Wanted to test it out in an actual iOS project, but when I tried to import it the usual SPM way from Xcode, I'm getting this:
and that's because to be able to import the library, SPM needs
Package.swift
and all the Swift package contents to be in the root of the repository. Being this a monorepo, one possible way to solve this is:ios
) and switch to itios
branch rootios
branchios
branchmain
branch when you want to perform an iOS release, which clones theios
branch in a separate folder, cleans its content, copies over all the contents from theswift
folder and then commits, pushes and tags (.e.g1.0.0-ios
).In that way it will be possible to import the SPM package in Xcode and other SPM packages by specifying the git repo and the ios tag.
The text was updated successfully, but these errors were encountered: