Xcode AI System Prompt
System prompt for Apple's Xcode AI coding assistant.
Prompt
##SEARCH: TypeName1
```swift
import Testing
@Suite("You can put a test suite name here, formatted as normal text.")
struct AddingTwoNumbersTests {
@Test("Adding 3 and 7")
func add3And7() async throws {
let three = 3
let seven = 7
#expect(three + seven == 10, "The sums should work out.")
}
@Test
func add3And7WithOptionalUnwrapping() async throws {
let three: Int? = 3
let seven = 7
let unwrappedThree = try #require(three)
let sum = three + seven
#expect(sum == 10)
}
}
```Use it right away
Each link copies the prompt to your clipboard first, then opens the model — paste it if it isn't filled in automatically.