This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| publish_to_appstore [2022/08/07 21:18] admin | publish_to_appstore [2024/08/17 20:06] (current) admin | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| For testing build a safari extension, just run it in Xcode. It will auto build the app and load it into Safari. | For testing build a safari extension, just run it in Xcode. It will auto build the app and load it into Safari. | ||
| - | For the first time: ref: https://instabug.com/blog/how-to-submit-app-to-app-store/ </br> | + | * For the first time: ref: https://instabug.com/blog/how-to-submit-app-to-app-store/ | 
| - | Routine update: https://help.apple.com/xcode/mac/current/#/dev442d7f2ca | + | * Routine update: https://help.apple.com/xcode/mac/current/#/dev442d7f2ca | 
| Change the version number and build number before upload it to app store | Change the version number and build number before upload it to app store | ||
| + | |||
| + | # Upload and Setup Test Flight | ||
| + | |||
| + | https://www.youtube.com/watch?v=DLvdZtTAJrE&t=1208s | ||
| + | |||
| + | |||
| + | |||
| + | # In App Purchase | ||
| + | |||
| + | 1. Use StoreKit 2 to implement purchasing features in you app. [[https://developer.apple.com/videos/play/wwdc2021/10114/|WWDC tutorial and code]] | ||
| + | |||
| + | 2. Test locally (StoreKit configuration). [[https://developer.apple.com/documentation/xcode/setting-up-storekit-testing-in-xcode?language=objc| StoreKit Testing Setup]] | ||
| + | |||
| + | 3. Configure App Store Connect: [[https://developer.apple.com/help/app-store-connect/configure-in-app-purchase-settings/overview-for-configuring-in-app-purchases/|Overview for configuring in-app purchases]] | ||
| + | |||
| + | 1. Create In-App-Purchase from App Store Connect page [[https://developer.apple.com/help/app-store-connect/manage-in-app-purchases/create-consumable-or-non-consumable-in-app-purchases/|Ref]] {{:pasted:20240814-110226.png}} | ||
| + | |||
| + | 2. Generate In-App-Purchase key [[https://developer.apple.com/help/app-store-connect/configure-in-app-purchase-settings/generate-keys-for-in-app-purchases|Ref]] | ||
| + | |||
| + | 3. Add Capability to my app: [[https://developer.apple.com/documentation/xcode/adding-capabilities-to-your-app|Ref]] | ||
| + | |||
| + | 4. Test with App Store Connect (using Sandbox in Test Flight): [[https://developer.apple.com/documentation/storekit/in-app_purchase/testing_at_all_stages_of_development_with_xcode_and_the_sandbox?language=objc|Ref]] | ||
| + | |||
| + | <file> | ||
| + | Guidelines for Choosing a Product ID | ||
| + | 1. Uniqueness: The Product ID must be unique across all of your in-app purchases for that app. No two in-app purchase items within the same app can have the same Product ID. | ||
| + | 2. Structure: Product IDs are typically structured in a way that makes them easy to identify and manage. A common practice is to use reverse domain name notation, similar to your app’s bundle identifier, but with additional detail to differentiate between different products. For example, if your app’s bundle identifier is com.example.myapp, you might structure your Product IDs like this: | ||
| + | - com.example.myapp.premium_upgrade | ||
| + | - com.example.myapp.remove_ads | ||
| + | - com.example.myapp.gold_coins_100 | ||
| + | </file> | ||
| + | |||