Bird
0
0

You created a new iOS project but forgot to select Swift as the language. What is the easiest way to fix this?

medium📝 Debug Q6 of 15
iOS Swift - iOS Basics and Setup
You created a new iOS project but forgot to select Swift as the language. What is the easiest way to fix this?
AAdd Swift files manually and delete Objective-C files
BCreate a new project and select Swift language
CChange the language in project settings after creation
DRename all Objective-C files to Swift
Step-by-Step Solution
Solution:
  1. Step 1: Understand language choice is fixed at creation

    The language is set when creating the project and cannot be changed later easily.
  2. Step 2: Best practice is to recreate the project selecting Swift

    This ensures all settings and files are correctly configured for Swift.
  3. Final Answer:

    Create a new project and select Swift language. -> Option B
  4. Quick Check:

    Language fix = recreate project with Swift [OK]
Quick Trick: Language choice is fixed; recreate project to switch [OK]
Common Mistakes:
  • Trying to rename files
  • Changing settings post-creation

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More iOS Swift Quizzes