Demo project of DIM Client, just for study purpose.
Dependencies:
cd GitHub/
mkdir dimchat; cd dimchat/
# demo source codes
git clone https://github.com/dimchat/demo-ios.git
# requirements
git clone https://github.com/dimchat/client-objc.git
git clone https://github.com/dimchat/core-objc.git
git clone https://github.com/dimchat/dkd-objc.git
git clone https://github.com/dimchat/mkm-objc.git
cd ..; mkdir moky; cd moky/
git clone https://github.com/moky/StarGate.git
git clone https://github.com/moky/FiniteStateMachine.git
Just open dimchat/demo-ios/Sechat/Sechat.xcodeproj
- Download source codes of
Tencent/mars
:
cd GitHub/
mkdir Tencent; cd Tencent/
git clone https://github.com/Tencent/mars.git
- Edit building script
build_ios.py
to enable bitcode for iOS devices:
cd GitHub/
cd Tencent/mars/mars
vi build_ios.py
#
# search 'ENABLE_BITCODE=0', modify it to 'ENABLE_BITCODE=1'
#
python build_ios.py
#
# choose '1. Clean && build mars.'
# after building mars successfully,
# copy 'Tencent/mars/mars/cmake_build/iOS/Darwin.out/mars.framework'
# to replace 'moky/StarGate/MarsGate/mars.framework'
#
then open dimchat/demo-ios/Sechat/Sechat.xcodeproj