Installation
CocoaPods
Make sure that your app is set up to use CocoaPods: Guide
Add a new dependency to your Podfile
:
use_frameworks!
target 'YourApp' do
pod 'Chatvisor-LiveView', '~> 1.2.16'
end
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES'
end
end
end
or for TeamViewer-Engage-Video
:
platform :ios, '11.0'
use_frameworks!
target 'YourApp' do
pod 'TeamViewer-Engage-Video', '~> 1.2.16'
end
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES'
end
end
end
Important:
Make sure to add the build setting ['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES'
to your Podfile. This config is needed because the SDK are not working without it during runtime.
Then run pod install
to download and include the library into your project.
Permissions & Background Modes
If you are using the TeamViewer-Engage-Video
SDK to provide the conference (video and audio) feature, do not forget to add NSCameraUsageDescription
and NSMicrophoneUsageDescription
in your Info.plist
file.
Furthermore the conference view shows/hides the statusbar based on the conference state. Therefore you may want to add UIViewControllerBasedStatusBarAppearance
to NO
in your Info.plist
To deliver proper background functionality, add Audio, AirPlay and Picture in Picture
and Voice over IP
to your Background Modes
.
Possible issues
If during compilation of your app the following error occurs, add an empty swift file to your project and agree to generate a bridging header for it. Also make sure to set the option "Always embed swift standard libraries" to YES
. More information
ld: warning: Could not find or use auto-linked library 'swiftFoundation'
ld: warning: Could not find or use auto-linked library 'swiftMetal'
ld: warning: Could not find or use auto-linked library 'swiftDarwin'
...
Platforms
Version 1.0.12 and newer
From Version 1.0.12 on the provided framework is distributed in form of a XCFramework which includes binaries for the iphoneos
and iphonesimulator
platforms.
Older Versions
In order to support multiple platforms (iphoneos
and iphonesimulator
) the provided framework is a universal/fat binary containing code for all platforms. It may be required to remove the iphonesimulator
platform code before submitting an application to the App Store (Operation Error: Unsupported architectures
). More information