mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 22:34:53 +08:00
54 lines
2.2 KiB
Markdown
54 lines
2.2 KiB
Markdown
# spine-ios
|
|
|
|
The spine-ios runtime provides functionality to load, manipulate and render [Spine](http://esotericsoftware.com) skeletal animation data for iOS using Swift or Objective-C.
|
|
|
|
See the [spine-ios documentation](https://esotericsoftware.com/spine-ios) for more information.
|
|
|
|
## Licensing
|
|
|
|
You are welcome to evaluate the Spine Runtimes and the examples we provide in this repository free of charge.
|
|
|
|
You can integrate the Spine Runtimes into your software free of charge, but users of your software must have their own [Spine license](https://esotericsoftware.com/spine-purchase). Please make your users aware of this requirement! This option is often chosen by those making development tools, such as an SDK, game toolkit, or software library.
|
|
|
|
In order to distribute your software containing the Spine Runtimes to others that don't have a Spine license, you need a [Spine license](https://esotericsoftware.com/spine-purchase) at the time of integration. Then you can distribute your software containing the Spine Runtimes however you like, provided others don't modify it or use it to create new software. If others want to do that, they'll need their own Spine license.
|
|
|
|
For the official legal terms governing the Spine Runtimes, please read the [Spine Runtimes License Agreement](http://esotericsoftware.com/spine-runtimes-license) and Section 2 of the [Spine Editor License Agreement](http://esotericsoftware.com/spine-editor-license#s2).
|
|
|
|
## Spine version
|
|
|
|
spine-ios works with data exported from Spine 4.2.xx.
|
|
|
|
spine-ios supports all Spine features except two-color tinting.
|
|
|
|
## Building
|
|
|
|
### SpineC and SpineSwift
|
|
|
|
Build on any platform:
|
|
```bash
|
|
./setup.sh # Copy spine-c and spine-cpp sources
|
|
swift build --product SpineC
|
|
swift build --product SpineSwift
|
|
```
|
|
|
|
### SpineiOS
|
|
|
|
Requires iOS/tvOS. Use Xcode:
|
|
|
|
```bash
|
|
# Open in Xcode (recommended)
|
|
open Example/Spine\ iOS\ Example.xcodeproj
|
|
|
|
# Or build from command line (requires iOS Simulator runtime)
|
|
# Install iOS Simulator: Xcode > Settings > Platforms > iOS Simulator > Download
|
|
xcodebuild -project Example/Spine\ iOS\ Example.xcodeproj -scheme "Spine iOS Example" -sdk iphonesimulator -destination "generic/platform=iOS Simulator" build
|
|
```
|
|
|
|
### Tests
|
|
|
|
```bash
|
|
cd test
|
|
swift build
|
|
swift run SpineTest
|
|
```
|