This topic describes how to run the demo source code of Push SDK for iOS Basic Edition. The procedure for running the demo source code of Push SDK for iOS Interactive Edition is similar to that of the Basic Edition.
To use the demo source code package, you must apply for a license. If you want to test the features of Push SDK for iOS, we recommend that you download the latest version of the SDK demo package. For more information, see Use demos.
Environment requirements
Item | Requirement |
iOS | iOS 8.0 or later |
Phone model | iPhone 7 or later |
CPU architecture | ARM64 or ARMv7 |
Integration tool | Xcode 8.0 or later |
Bitcode | Disabled |
Procedure
Download and decompress the demo code package for iOS. For more information, see Download SDKs and Release notes of ApsaraVideo Player SDK for iOS.
For more information about the directory structure of the demo, see the "Directory structure of the demo" section of this topic.
Use Xcode to open the AlivcLivePusherDemo.xcodeproj project.

Run the demo project to test the features.


Enter a valid Real Time Messaging Protocol (RTMP) URL for stream ingest in the field that is marked as 1 in the preceding figure. After the stream is ingested, you can use ApsaraVideo Player SDK, FFplay, or Video Lan Client (VLC) to play the stream.
Directory structure of the demo

The following table describes the files contained in the SDK directory.
File | Description |
| Frameworks of Push SDK for iOS |
| Frameworks of Queen SDK for iOS |
| Frameworks of Player SDK for iOS |