Skip to content

eamonn-webster/TestMotionSQLite3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minimum Requirements

The minimum requirements to use this template are XCode 9 and RubyMotion 5.0.

Keep in mind that if you've recently upgraded from a previous versions of XCode or RubyMotion, you'll want to run rake clean:all as opposed to just rake clean.

Build

To build using the default simulator, run: rake (alias rake simulator).

To run on a specific type of simulator. You can run rake simulator device_name="SIMULATOR". Here is a list of simulators available:

  • `rake simulator device_name='iPhone 5s'
  • `rake simulator device_name='iPhone 8 Plus'
  • `rake simulator device_name='iPhone 8 Plus'
  • `rake simulator device_name='iPhone X'
  • `rake simulator device_name='iPad Pro (9.7-inch)'
  • `rake simulator device_name='iPad Pro (10.5-inch)'
  • `rake simulator device_name='iPad Pro (12.9-inch)'

Consider using https://github.com/KrauseFx/xcode-install (and other parts of FastLane) to streamline management of simulators, certificates, and pretty much everything else.

So, for example, you can run rake simulator device_name='iPhone X' to see what your app would look like on iPhone X.

Deploying to the App Store

To deploy to the App Store, you'll want to use rake clean archive:distribution. With a valid distribution certificate.

In your Rakefile, set the following values:

#This is only an example, the location where you store your provisioning profiles is at your discretion.
app.codesign_certificate = "iPhone Distribution: xxxxx" #This is only an example, you certificate name may be different.

#This is only an example, the location where you store your provisioning profiles is at your discretion.
app.provisioning_profile = './profiles/distribution.mobileprovision'

For TestFlight builds, you'll need to include the following line (still using the distribution certificates):

app.entitlements['beta-reports-active'] = true

Icons

As of iOS 11, Apple requires the use of Asset Catalogs for defining icons and launch screens. You'll find icon and launch screen templates under ./resources/Assets.xcassets. You can run the following script to generate all the icon sizes (once you've specified 1024x1024.png). Keep in mind that your .png files cannot contain alpha channels.

Save this following script to ./gen-icons.sh and run it:

set -x

brew install imagemagick

pushd resources/Assets.xcassets/AppIcon.appiconset/

cp 1024x1024.png "[email protected]"
cp 1024x1024.png "[email protected]"
cp 1024x1024.png "[email protected]"
cp 1024x1024.png "[email protected]"
cp 1024x1024.png "[email protected]"
cp 1024x1024.png "[email protected]"
cp 1024x1024.png "[email protected]"
cp 1024x1024.png "[email protected]"
cp 1024x1024.png "20x20~ipad.png"
cp 1024x1024.png "[email protected]"
cp 1024x1024.png "29x29~ipad.png"
cp 1024x1024.png "[email protected]"
cp 1024x1024.png "40x40~ipad.png"
cp 1024x1024.png "[email protected]"
cp 1024x1024.png "76x76~ipad.png"
cp 1024x1024.png "[email protected]"
cp 1024x1024.png "[email protected]"

mogrify -resize 40x40 "[email protected]"
mogrify -resize 60x60 "[email protected]"
mogrify -resize 58x58 "[email protected]"
mogrify -resize 87x87 "[email protected]"
mogrify -resize 80x80 "[email protected]"
mogrify -resize 120x120 "[email protected]"
mogrify -resize 120x120 "[email protected]"
mogrify -resize 180x180 "[email protected]"
mogrify -resize 20x20 "20x20~ipad.png"
mogrify -resize 40x40 "[email protected]"
mogrify -resize 29x29 "29x29~ipad.png"
mogrify -resize 58x58 "[email protected]"
mogrify -resize 40x40 "40x40~ipad.png"
mogrify -resize 80x80 "[email protected]"
mogrify -resize 76x76 "76x76~ipad.png"
mogrify -resize 152x152 "[email protected]"
mogrify -resize 167x167 "[email protected]"

popd

For more information about Asset Catalogs, refer to this link: https://developer.apple.com/library/content/documentation/Xcode/Reference/xcode_ref-Asset_Catalog_Format/

TestMotionSQLite3

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages