Cocoapods has multiple subspecs available:
-
release
uses the version of the library that is built for distribution to AppStore that does not use bitcode -
bitcode
uses the version of the libray with bitcode enabled
In order to build the project, Depot tools are required to be exported to PATH.
The repo is using git lfs to store large files so it should be installed prior to fetching the repo.
After checking out repository make sure you run gcclient sync
as described here.
Run the command python build_ios_libs.py
inside the src/tools_webrtc/ios that will generate the FAT framework.
Run the command python build_ios_libs.py --bitcode
inside the src/tools_webrtc/ios that will generate the FAT framework.
Generated library contains slices both for simulator and real device but cannot be submitted to app store
The unwated architecture can be stripped using lipo and script
You can use fastlane to generate the development and production libraries. Make sure to run bundle install
before to get all the required gems.
What to do if the framework is not present after doing pod install
?
If you have run pod install before installing git lsf you will need to clear you cocoapods cache with rm -rf /Users/$USER/Library/Caches/CocoaPods
and your pods and podfile.lock and run podfile install again
CocoaPods/CocoaPods#4801