{"id":13794487,"url":"https://github.com/iljaiwas/objc-run","last_synced_at":"2025-10-21T04:52:36.408Z","repository":{"id":12934932,"uuid":"15612746","full_name":"iljaiwas/objc-run","owner":"iljaiwas","description":"A shell script that makes it easy to use Objective-C files for shell script-like tasks.","archived":false,"fork":false,"pushed_at":"2014-02-10T21:26:28.000Z","size":550,"stargazers_count":422,"open_issues_count":4,"forks_count":13,"subscribers_count":19,"default_branch":"master","last_synced_at":"2025-04-15T18:19:35.935Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iljaiwas.png","metadata":{"files":{"readme":"ReadMe.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-01-03T15:38:19.000Z","updated_at":"2024-10-01T03:33:52.000Z","dependencies_parsed_at":"2022-09-06T11:11:27.866Z","dependency_job_id":null,"html_url":"https://github.com/iljaiwas/objc-run","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iljaiwas%2Fobjc-run","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iljaiwas%2Fobjc-run/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iljaiwas%2Fobjc-run/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iljaiwas%2Fobjc-run/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iljaiwas","download_url":"https://codeload.github.com/iljaiwas/objc-run/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253825082,"owners_count":21970128,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T23:00:41.839Z","updated_at":"2025-10-21T04:52:31.358Z","avatar_url":"https://github.com/iljaiwas.png","language":"Shell","readme":"[![Build Status](https://travis-ci.org/iljaiwas/objc-run.png?branch=master)](https://travis-ci.org/iljaiwas/objc-run)\n\n#About objc-run\n\n\nobjc-run is a shell script which compiles and executes Objective-C source code files. It integrates with [CocoaPods](http://cocoapods.org).\n\nIt's perfect for small programming tasks you want to handle in Objective-C, that don't justify setting up a complete Xcode project, e.g. manipulating plist files. Think of it as [CodeRunner](http://krillapps.com/coderunner/) without an user interface. \n\n##Installation\n\nIf you have [homebrew](http://brew.sh) installed, just run\n    \n\tbrew install objc-run\n\nOtherwise, download the objc-run shell script file and install it in a directory that's in your $PATH. Make sure the executable bit is set like this:\n\t\n\tchmod u+x objc-run\n\n## Basic Usage\nInside the Terminal, just enter:\n\n\tobjc-run myfile.m myparam1 myparam2\n\nobjc-run will attempt to compile myfile.m into an application called 'myfile'. If the file was successfully compiled, 'myfile' is launched and all remaining parameters are passed to it.\n\nOnce 'myfile' is done executing, it's removed.\n\n## Advanced usage (#!)\n\nYou can omit the explicit invocation of objc-run on the command line and launch it like this:\n\n\tmyfile.m myparam1 myparam2\n\n\nJust insert this as first line in your .m file:\n\n\t#!/usr/bin/env objc-run\n\t\nMake sure objc-run, or a link to it, is accessible from your $PATH.\n\nPlease note that as long as this line is present, it will produce an error when compiling it directly.\n\n##CocoaPods Integration\n\nYou can use [CocoaPods](http://cocoapods.org) modules with objc-run. Just include the contents of your podfile in a C-comment between 'podfile-start' and 'podfile-end', like this: \n\n\t/*\n\tpodfile-start\n\tplatform :osx, '10.9'\n\tpod 'Barista'\n\tpodfile-end\n\t*/\n\t\n[Here](examples/CocoaPodsTest.m) is an example file from the [Barista](https://github.com/stevestreza/Barista) project modified for usage with objc-run.\n\n# Self check\n\nThere is a little test script that performs some basic checks. \n\nRun:\n\n    $ ./test.bash\n    Done\n    $ echo $?\n    0\n\n","funding_links":[],"categories":["Shell"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filjaiwas%2Fobjc-run","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Filjaiwas%2Fobjc-run","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filjaiwas%2Fobjc-run/lists"}