- SDL2 iOS SDL2.xcframework by Dream Song
- Installation with Swift Package Manager
- Once you have your Swift package set up, adding SDL2 as a dependency is as easy as adding it to the dependencies value of your Package.swift.
dependencies: [
.package(url: "https://github.com/swp-song/SDL2.git", .upToNextMajor(from: "3.2.0"))
]
- Installation CocoaPods :
pod search SDL2
pod 'SDL2'
# 终端, 执行脚本,如果 SLD2 源码失败请删除后在重新执行脚本
./sdl2.framework.sh
- Build Settings -> ENABLE_BITCODE -> NO