Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/apotocki/lua-iosx
Builds Lua static XCFramework for iOS (simulator and device), macOS and Mac Catalyst (Intel & Apple Silicon M1).
https://github.com/apotocki/lua-iosx
ios ios-simulator library lua mac-catalyst macosx xcframework
Last synced: 11 days ago
JSON representation
Builds Lua static XCFramework for iOS (simulator and device), macOS and Mac Catalyst (Intel & Apple Silicon M1).
- Host: GitHub
- URL: https://github.com/apotocki/lua-iosx
- Owner: apotocki
- License: other
- Created: 2022-10-12T20:00:13.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-01T13:32:09.000Z (about 1 year ago)
- Last Synced: 2024-10-04T21:51:47.817Z (about 1 month ago)
- Topics: ios, ios-simulator, library, lua, mac-catalyst, macosx, xcframework
- Language: Shell
- Homepage:
- Size: 16.6 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
## LUA for iOS and macOS (Intel & Apple Silicon M1) & Catalyst - arm64 / x86_64
Supported versions: 5.4.6, 5.4.5, 5.4.4
This repo provides a universal script for building static LUA library for use in iOS and macOS applications.
The latest supported LUA version is taken from: https://www.lua.org/ftp/lua-5.4.6.tar.gz## Prerequisites
1) Xcode must be installed because xcodebuild is used to create xcframeworks
2) ```xcode-select -p``` must point to Xcode app developer directory (by default e.g. /Applications/Xcode.app/Contents/Developer). If it points to CommandLineTools directory you should execute:
```sudo xcode-select --reset``` or ```sudo xcode-select -s /Applications/Xcode.app/Contents/Developer```
## How to build?
- Manually
```
# clone the repo
git clone https://github.com/apotocki/lua-iosx
# build libraries
cd lua-iosx
scripts/build.sh# have fun, the result artifacts will be located in 'frameworks' folder.
```
- Use cocoapods. Add the following lines into your project's Podfile:
```
use_frameworks!
pod 'lua-iosx', '~> 5.4.6'
# or optionally more precisely
# pod 'lua-iosx', :git => 'https://github.com/apotocki/lua-iosx', :tag => '5.4.6.0'
```
install new dependency:
```
pod install --verbose
```## As an advertisement…
The LUA library built by this project is used in my iOS application on the App Store:[PotoHEX
HEX File Viewer & Editor]()This app is designed for viewing and editing files at the byte or character level.
You can support my open-source development by trying the [App](https://apps.apple.com/us/app/potohex/id1620963302).Feedback is welcome!