0
0
iOS Swiftmobile~10 mins

TestFlight beta distribution in iOS Swift - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to start the TestFlight beta testing process by importing the correct framework.

iOS Swift
import [1]
Drag options to blanks, or click blank then click option'
ATestFlight
BUIKit
CFoundation
DSwiftUI
Attempts:
3 left
💡 Hint
Common Mistakes
Importing UIKit or SwiftUI instead of TestFlight.
Forgetting to import any framework.
2fill in blank
medium

Complete the code to present the TestFlight beta feedback interface to users.

iOS Swift
TestFlight.[1]()
Drag options to blanks, or click blank then click option'
AshowFeedback
BopenBetaFeedback
CstartBetaTesting
DlaunchBetaFeedback
Attempts:
3 left
💡 Hint
Common Mistakes
Using a method name that does not exist in TestFlight.
Confusing method names with similar words.
3fill in blank
hard

Fix the error in the code to correctly check if the app is running in TestFlight beta environment.

iOS Swift
let isBeta = Bundle.main.appStoreReceiptURL?.path.[1]("sandboxReceipt") ?? false
Drag options to blanks, or click blank then click option'
Acontains
BendsWith
CstartsWith
DhasSuffix
Attempts:
3 left
💡 Hint
Common Mistakes
Using contains which checks anywhere in the string.
Using non-existent methods like startsWith or endsWith.
4fill in blank
hard

Fill both blanks to create a function that detects if the app is running via TestFlight.

iOS Swift
func isRunningTestFlight() -> Bool {
  guard let url = Bundle.main.appStoreReceiptURL else { return false }
  return url.path.[1]("sandboxReceipt") || url.path.[2]("sandboxReceipt")
}
Drag options to blanks, or click blank then click option'
AhasSuffix
Bcontains
CstartsWith
DendsWith
Attempts:
3 left
💡 Hint
Common Mistakes
Using the same method for both checks.
Using non-existent string methods.
5fill in blank
hard

Fill all three blanks to create a dictionary that maps beta tester emails to their testing status.

iOS Swift
let betaTesters = [
  "alice@example.com": [1],
  "bob@example.com": [2],
  "carol@example.com": [3]
]
Drag options to blanks, or click blank then click option'
Atrue
Bfalse
Cnil
D"active"
Attempts:
3 left
💡 Hint
Common Mistakes
Using string values instead of Booleans.
Using nil which is not allowed in this dictionary.