{"id":17283646,"url":"https://github.com/choefele/cocoapods-workshop","last_synced_at":"2025-03-26T16:16:06.449Z","repository":{"id":14942709,"uuid":"17667295","full_name":"choefele/cocoapods-workshop","owner":"choefele","description":"CocoaPods workshop","archived":false,"fork":false,"pushed_at":"2014-03-13T15:44:18.000Z","size":280,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-31T19:06:59.990Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","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/choefele.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-03-12T13:09:48.000Z","updated_at":"2014-03-13T15:44:18.000Z","dependencies_parsed_at":"2022-09-21T10:22:33.050Z","dependency_job_id":null,"html_url":"https://github.com/choefele/cocoapods-workshop","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/choefele%2Fcocoapods-workshop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/choefele%2Fcocoapods-workshop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/choefele%2Fcocoapods-workshop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/choefele%2Fcocoapods-workshop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/choefele","download_url":"https://codeload.github.com/choefele/cocoapods-workshop/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245689509,"owners_count":20656417,"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-10-15T09:51:51.125Z","updated_at":"2025-03-26T16:16:06.432Z","avatar_url":"https://github.com/choefele.png","language":"Objective-C","readme":"# CocoaPods Workshop\n\nHelpful links to get started:\n\n- [http://guides.cocoapods.org/using/getting-started.html](http://guides.cocoapods.org/using/getting-started.html)\n- [http://www.raywenderlich.com/12139/introduction-to-cocoapods](http://www.raywenderlich.com/12139/introduction-to-cocoapods)\n- [http://theonlylars.com/blog/2013/01/20/cocoapods-creating-a-pod-spec/](http://theonlylars.com/blog/2013/01/20/cocoapods-creating-a-pod-spec/)\n\n[Ask me on Twitter](https://twitter.com/claushoefele)\n\n## Example project\n\n1. Install Xcode or command line tools (`xcode-select --install`)\n2. `sudo gem install cocoapods` (if needed: `sudo gem update --system`)\n2. Create new Xcode project\n3. `touch Podfile` \u0026\u0026 `open -e Podfile`\n5. `pod install`\n\n*Sample Podfile*\n\n````\nplatform :ios, '7.0'\n\npod 'AFNetworking'\n````\n\n*Resulting directory layout:*\n\n````\n- Project/\n\t- Project/\n\t\t- *.{h,m}\n\t- Project.xcodeproj\n\t- Project.xcworkspace\n\t- Podfile\n\t- Pods/\n\t\t- Pods.xcodeproj \n````\nDiscussion:\n\n- Xcode workspace, projects, Build Phases, Info settings\n- Podfile.lock, Pods directory\n- Check in Pods directory\n- `pod outdated`, `pod update`\n\n## Tips \u0026 tricks\n\n- Alternative directory layout using `xcodeproj`\n- Version selector: `\u003c, \u003e, =, ~\u003e`, e.g. `AFNetworking ~\u003e 1.3`\n- Head: `pod 'AFNetworking', :head`\n- Fork or specific version: `pod 'AFNetworking', :git =\u003e 'https://github.com/gowalla/AFNetworking.git', :commit =\u003e '082f8319af'`\n- git submodules vs Cocoapods\n\t- `pod 'AFNetworking', :path =\u003e '~/Documents/AFNetworking'`\n- Binary pods\n- Version numbers: 3.0.3a\n- Test target only pod -\u003e [https://github.com/optionu/stolpersteine-ios/blob/master/Podfile](https://github.com/optionu/stolpersteine-ios/blob/master/Podfile)\n- [Reveal](http://revealapp.com/) -\u003e [no configuration based pod](http://support.revealapp.com/kb/getting-started/integrating-reveal-with-your-ios-app#cocoapods-integration)\n- [Version Eye](https://www.versioneye.com/)\n- Private pods: [http://guides.cocoapods.org/making/private-cocoapods.html](http://guides.cocoapods.org/making/private-cocoapods.html)\n\n## Create your own pod\n\n1. `pod spec create AlertViewController` or [copy from existing podspec](https://github.com/choefele/CCHMapClusterController/blob/master/CCHMapClusterController.podspec)\n2. `open -e AlertViewController.podspec`\n3. Add `pod 'AlertViewController', :path =\u003e '..'` to your project for testing\n3. When done testing, tag source code with version\n4. `pod spec lint`\n5. [Fork Specs repo](https://github.com/CocoaPods/Specs)\n6. Add your podspec and create pull request\n\n*Sample podspec*\n\n````\nPod::Spec.new do |s|\n  s.name     = 'AlertViewController'\n  s.version  = '0.0.1'\n  s.license  = 'MIT'\n  s.summary  = 'Cocoapods workshop excercise.'\n  s.homepage = 'https://github.com/choefele/cocapods-workshop'\n  s.authors  = { 'Claus Höfele' =\u003e 'claus@claushoefele.com' }\n  s.social_media_url = 'https://twitter.com/claushoefele'\n  s.source   = { :git =\u003e 'https://github.com/choefele/cocapods-workshop.git', :tag =\u003e s.version.to_s }\n  s.requires_arc = true\n\n  s.ios.deployment_target = '6.0'\n\n  s.source_files = 'Pod/*.{h,m}'\nend\n````\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchoefele%2Fcocoapods-workshop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchoefele%2Fcocoapods-workshop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchoefele%2Fcocoapods-workshop/lists"}