OS/IOS
IOS SGPlayer demo Build
Hinos
2020. 5. 15. 16:54
반응형
SG Player
git clone https://github.com/libobjc/SGPlayer.git
cd SGPlayer
git checkout 2.0.1 -B latest\n
./build.sh iOS build
cd SGPlayer
cd /Users/zerosoft/Desktop/workSpace/IOS/SGPlayer2
./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
SGPlayer.framework 클릭 후 Target Membership에서 IOS 선택 후 시작
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. 다시 빌드시작
반응형