---
title: invalidPlatform
framework: pushtotalk
role: symbol
role_heading: Type Property
path: pushtotalk/ptinstantiationerror-swift.struct/invalidplatform
---

# invalidPlatform

An instantiation error that indicates the API isn’t available on the simulator or macOS devices.

## Declaration

```swift
static var invalidPlatform: PTInstantiationError.Code { get }
```

## See Also

### Constants

- [unknown](pushtotalk/ptinstantiationerror-swift.struct/unknown.md)
- [missingBackgroundMode](pushtotalk/ptinstantiationerror-swift.struct/missingbackgroundmode.md)
- [missingPushServerEnvironment](pushtotalk/ptinstantiationerror-swift.struct/missingpushserverenvironment.md)
- [missingEntitlement](pushtotalk/ptinstantiationerror-swift.struct/missingentitlement.md)
- [instantiationAlreadyInProgress](pushtotalk/ptinstantiationerror-swift.struct/instantiationalreadyinprogress.md)
