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

Create an example Xcode project file to include in 'hello world' exercise #27

Open
chillpop opened this issue May 21, 2015 · 6 comments

Comments

@chillpop
Copy link
Contributor

Per this comment: exercism/exercism#2401 (comment) and the discussion below, we should create an example Xcode project for running tests.

Also include an empty solution file (HellowWorld.h/m) for 'hello world' that is included in the sample Xcode project.

@chillpop
Copy link
Contributor Author

After this is complete, the relevant section of WORKFLOW.md should be updated too.

@RichardBronosky
Copy link
Contributor

@chillpop How is this for an example? https://dl.dropboxusercontent.com/u/310759/u/ExercismObjectiveCExampleProject.tgz I added a setup.sh script that is pretty self explanatory and gives instructions if you run it incorrectly.

For your second request, http://exercism.io/languages/objective-c#tests has been updated to reflect ae27842 which is clear, though tedious. Would you agree?

@chillpop
Copy link
Contributor Author

chillpop commented Jan 6, 2016

The idea was to include an example Xcode project with the initial "Hello World" test. See how the swift track has done it for an example: https://github.com/exercism/xswift/tree/master/hello-world

@masters3d
Copy link
Contributor

What do you think about adopting Xcode's built in (SPM) Swift Package Manager to build this project file? See the sample formatting here:
https://github.com/masters3d/SwiftPackageManagerSamples/tree/master/ObjC-PackageAcronym

We could introduce the SPM folder structure for each exercise. The objective-c project can be generated by swift package generate-xcodeproj inside each exercise.

This will still help new comers get started faster with objective-c and xcode.

CC @robtimp

@masters3d
Copy link
Contributor

With this PR accepted we can now run tests from the command line
swiftlang/swift-package-manager#850

Adopting SPM folder structure to distribute exercises makes more sence once that stars shipping in xcode.

We will first adopt SPM in Swift then add it to Obj-c. Please let me know if there are any concerns.

@mindejulian
Copy link
Contributor

@masters3d I had not seen this, but I do like the idea. I use the ruby objc gem myself, just so I don't have to set up Xcode projects for every task. However, if it was as simple as it seems here it sounds like a great plan!

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

No branches or pull requests

4 participants