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

Swift Package Manager support #33

Open
vi4m opened this issue Apr 14, 2019 · 2 comments

Comments

@vi4m
Copy link

@vi4m vi4m commented Apr 14, 2019

Thanks for the awesome tool!
It would be great to have SPM support!

@miguelangel-dev

This comment has been minimized.

Copy link
Member

@miguelangel-dev miguelangel-dev commented Jun 12, 2019

After Apple's announcement, I think we should try to migrate from cocoapods to SPM. This issue will need:

  1. [nef playground] create an initial playground, compatible with third-party libraries from SPM, or unless with an own solution.
  2. [nef compile] SPM will be the default dependency manager.
  3. [nef compile --podfile] we need to keep compatibility with cocoapods: for nef compiler, we can decide use cocoapods with the flat --podfile

After completing this issue, homebrew only will have one dependency, Xcode and macos (the only place where Xcode playgrounds are compatible for now)

@miguelangel-dev

This comment has been minimized.

Copy link
Member

@miguelangel-dev miguelangel-dev commented Aug 7, 2019

We have started the path to add compatibility to other dependency managers:

Swift Package Manager is not as easy as we can expect. Using the new Xcode 11 and SPM integrated does not resolve dependencies for a nested Playground as it does in CocoaPods or Carthage (Apple introduced it in Xcode 9).

We will start to decouple CocoaPods from nef, and integrate Carthage when it solves (or not) we will see how to integrate SPM in nef.

more information
https://developer.apple.com/documentation/xcode_release_notes/xcode_11_beta_5_release_notes

Xcode 11 beta 5
Known Issues
...
Playgrounds in a workspace can’t import targets from a Swift package. (47668990)
...

https://developer.apple.com/documentation/xcode_release_notes/xcode_11_beta_6_release_notes

Xcode 11 beta 6

Playgrounds
Known Issues
...
Playgrounds in a workspace can’t import targets from a Swift package. (47668990)
...

https://developer.apple.com/documentation/xcode_release_notes/xcode_11_release_notes

Xcode 11 GM - bug #47668990 not fixed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.