Building the Demo Application
One of the first ways to get into StreamLayer and learning to use the StreamLayer SDK is to use the demo application provided for iOS. Demo applications are provided for both Swift and obj-C based applications. You can find out more information here.
Once you have your version of the demo application downloaded, unzip the file to the directory you want to work in. From the terminal change to the directory \sdk-ios-sample-apps\obj-c or \sdk-ios-sample-apps\swift and execute the command xcodegen. This will create the project.
Swift Version Error
During the xcodegen command you may find the following error
"Incompatible Swift version - framework was built with 5.0.1 (swiftlang-1001.0.82.4 clang-1001.0.46.5) and the local version is 5.3.1 (swiftlang-1200.0.41 clang-1200.0.32.8)."This indicates that you have a different version of Swift installed than the version required by the demo app. This likely means you have an earlier version of Xcode installed. Please remember, StreamLayer requires Xcode version 12.5.1 or later.
NOTE: The demo application will not build if the version of Xcode is later than 12.4 as the version of Swift will be a later revision that is currently supported in the demo.
If you are running a version of Xcode other than 12.5.1, you can download and install earlier of versions from the Apple Developer Downloads page. At StreamLayer we use xcversion to manage Xcode installations.
Please note can have multiple versions of Xcode installed on your system. You can manage multiple Xcode installations by following this guide here
Updated 12 months ago
