Adding In-App Purchases

We will add a very simple in-app purchase in the game so that, if the player wishes, they can pay the minimum amount to remove the ad at the bottom of the screen.

For this, we need a paid developer account to add in-app purchases. The annual fee is 99 USD, and with this you can publish on the iOS / macOS App Store. Once you have paid Apple the amount, signed the contract, and updated your tax and banking information, go to and My Apps:

Adding In-App Purchases

Create a new app by clicking on the + sign in the upper-left corner of the page:

Select the Platform, Name, Primary Language, Bundle ID, and SKU.

If you don't have a

Get Swift Game Development - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.