반응형
git clone https://github.com/libobjc/SGPlayer.git
cd SGPlayer
git checkout 2.0.1 -B latest
cd Desktop/workSpace/Lib/SGPlayer_Lib2/SGPlayer/scripts/
vim module.sh
수정전
#export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-protocol=mmsh"
#export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-protocol=mmst"
수정후
export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-protocol=mmsh"
export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-protocol=mmst"
cd ..
./build.sh iOS build
demo/demo.xcworkspace Xcode로 open
Frameworks, Libraries, and Embedded Content에 Dependency 추가
- SGPlayer.framework
- AVFoundation.framework
- AudioToolBox.framework
- VideoToolBox.framework
- libiconv.tbd
- libbz2.tbd
- libz.tbd
Error Msg
- Xcrun: error: unable to lookup item 'Path' in SDK iphoneos -> : sudo xcode-select --switch /Applications/Xcode.app
- libavformat/avformat.h' file not found -> 1. SGPlayer를 삭제 2. : brew install sdl2 ffmpeg 3. 다시 빌드시작
반응형
'OS > IOS' 카테고리의 다른 글
Swift 사용 라이브러리 (0) | 2020.07.27 |
---|---|
IOS 배포 준비 (1) | 2020.07.22 |
IOS SGPlayer demo Build (0) | 2020.05.15 |