Skip to main content
Skip table of contents

Simulator support

The Player SDK is built with simulator support to enable you to build and test against an Xcode simulator. When doing so, create a FAT framework (iOS and simulator in one library). This sometimes means when building, you may need to remove arm64 support when building for a simulator. 

The Player xcframework SDK contains the libraries for different targets; for example, iOS, iOS Simulator, tvOS and tvOS Simulator. The application can directly include the xcframework file and build for the Simulator target. 

Excluding simulator support

To exclude the arm64 libraries when building for a simulator:

  1. Go to Build Settings and locate Excluded Architectures.

  2. Select Any iOS Simulator SDK for both Debug and Release and set them to exclude arm64.

  3. You should also set the build flag Validate workspace to Yes as shown below.

  4. Repeat the process for tvOS but select Any tvOS Simulator SDK for both Debug and Release.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.