the Cocoapods "Hello World" Template using Objective C
This is an opinionated template to fork to easily create pods that have the following:
- Can be installed via the
pod install my-pod-name
template - Pod latest version displayed on the readme page
- Automated tests running TravisCI
- Displaying the build status button:
... or clone it or copy the source code so you can start to modify it
-
Replace
HelloWorld.xcodeproj
and theHelloWorld
&HelloWorld
folders with your own project.Note:
in the current exampleHelloWorld
is a Cocoa Touch Static Library
- Configure
.travis.yml
- Change the
script:
part to point to your project's.xcodeproj
andscheme
. So for example if your project's name and Scheme isMyAwesomeFramework
then change
toxctool test -project HelloWorld.xcodeproj -scheme HelloWorld -sdk iphonesimulator8.1 -destination "platform=iOS Simulator,OS=8.1,name=iPhone 6"
xctool test -project MyAwesomeFramework.xcodeproj -scheme HelloWorld -sdk iphonesimulator8.1 -destination "platform=iOS Simulator,OS=8.1,name=iPhone 6"
- Change the
- Register with / login to TravisCI
- Add your repository and your build should be triggered!
- Once your build is passing you can embed the build status image to your github page. See this tutorial on how.