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

Use Xcodeproj to generate the example (and framework) project #78

Closed
kylef opened this issue Nov 28, 2014 · 7 comments
Closed

Use Xcodeproj to generate the example (and framework) project #78

kylef opened this issue Nov 28, 2014 · 7 comments

Comments

@kylef
Copy link
Contributor

kylef commented Nov 28, 2014

I think it would be nice to replace the current Example project which is just renamed to some code that can generate framework targets for all selected platforms along with test target and example target depending on the users options.

I'd suggest the new layout would look something like this (using Stencil as the name of this pod).

.
├── LICENSE
├── README.md
├── Stencil.podspec
├── Stencil.xcodeproj

├── Stencil
│   ├── (Shared Code).swift
│   ├── ios
│   │   ├── (iOS only code)
│   ├── osx
│   │   ├── (OSX only code)
├── StencilTests
│   ├── The tests
│   ├── ios
│   │   ├── (iOS only tests)
│   ├── osx
│   │   ├── (OSX only tests)
├── StencilExample
│   ├── Any example code

The project would have the following targets:

  • Stencil-iOS (Framework)
  • Stencil-OSX (Framework)
  • Stencil-iOSTests
  • Stencil-OSXTests
  • Stencil-Example (Example OS X or iOS application?)

Would also have some script (Makefile, Rakefile or .travis.yml) that can build everything and run both platform tests.

@kylef
Copy link
Contributor Author

kylef commented Jan 8, 2015

Adding to this, it could create a universal iOS and OS X framework so we can put them all in one target.

Example: https://github.com/kylef/URITemplate.swift

@kylef kylef mentioned this issue Jan 8, 2015
1 task
@orta orta added this to the Frameworks Support milestone Mar 18, 2015
@kylef
Copy link
Contributor Author

kylef commented Mar 29, 2015

Depends on: CocoaPods/Xcodeproj#227

@fulldecent
Copy link
Collaborator

FWIW, https://github.com/MengTo/Spring works like this proposal recommends.

@orta
Copy link
Member

orta commented Apr 15, 2016

I'd much rather we re-shuffle everything to format how SwiftPM works ( this was mentioned in #152 ) so that people building pods now will get it "for free" as soon as possible

@fulldecent
Copy link
Collaborator

That is a way better idea. Since #78 and #152 are mutually competing and #152 has more future proofing, I recommend to close #78 at this time.

@fulldecent
Copy link
Collaborator

More notes coming at #152.

@orta
Copy link
Member

orta commented Apr 15, 2016

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants