Xcode AI System Prompt
This page contains the complete prompt template, ready to copy into a compatible language model. Related and popular prompts appear alongside it.
System prompt for Apple's Xcode AI coding assistant.
Prompt content
##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)
}
}
```