Skip to content

Latest commit

 

History

History
82 lines (65 loc) · 3.81 KB

ios.md

File metadata and controls

82 lines (65 loc) · 3.81 KB

looking for ios publishing

in-app purchases

read https://doc.qt.io/qt-5/qtpurchasing-appstore.html

add new subscription

  • go to: https://appstoreconnect.apple.com > In-App Purchases Manage
  • click +
    • Auto-renewable subscription
    • Reference name: mergin_tier_ (where is 1,2,.. representing are 1GB, 10GB... tiers)
    • Product ID: apple_mergin_tier_ (where is same as reference name)
    • Subscription Group: mergin_1
    • Add and fill subscription duration and prize
  • create the SAME subscription plan in Mergin via Admin interface

to do apple in-app purchases test (without actually paying)

https://itunesconnect.apple.com

  • create InputApp test user in https://itunesconnect.apple.com: Users and Access > Sandbox Testers > New Tester (create your user)
    • You may want to test different location (for QLocale)
    • Create unique email (group/alias) for the new user
  • create the Mergin Account for the user on test.dev.cloudmergin.com and/or dev.dev.cloudmergin.com
  • you need to logout your regular MacOs/Ios Apple User from device before trying to purchase something
  • login as test user and you can simulate purchasing
  • note that this works only for test.dev.cloudmergin.com and dev.dev.cloudmergin.com. It will not be possible to use test user on public/production server.

development certificate

production certificate

  1. Create new iOS distribution certificate
  1. Create/Update provisioning profile
  1. Encrypt the files for GitHub
  • Create IOS_GPG_KEY
  • install gpg brew install gnupg
  • Encrypt p12 file with command (use space in front of command to not end up in history!) gpg --symmetric --batch --passphrase="<IOS_GPG_KEY>" --output ./Certificates_ios_dist.p12.gpg ./Certificates.p12
  • Encrypt mobileprovision file with command gpg --symmetric --batch --passphrase="<IOS_GPG_KEY>" --output ./LutraConsultingLtdInputAppStore.mobileprovision.gpg ./LutraConsultingLtdInputAppStore.mobileprovision
  • Copy both files to .github/secrets/ios
  • Update secret (passports) on github

application icon

see: https://appbus.wordpress.com/2017/10/06/ios-11-and-xcode-9-in-qt-5-9-x-projects/

NOTE: icon must be without transparency!

brew install ImageMagick
git clone https://github.com/smallmuou/ios-icon-generator
chmod 777 ios-icon-generator.sh
cd <repo>/input/app/ios
<path_to_generator>/ios-icon-generator.sh ic_input_no_transparency.png appicon/

launch screen