-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
67 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,46 @@ | ||
## LUA for iOS and macOS (Intel & Apple Silicon M1) & Catalyst - arm64 / x86_64 | ||
|
||
Supported version: 5.4.5 | ||
|
||
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.5.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 -b 5.4.5 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.5' | ||
# or optionally more precisely | ||
# pod 'lua-iosx', :git => 'https://github.com/apotocki/lua-iosx', :tag => '5.4.5.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: | ||
|
||
[<table align="center" border=0 cellspacing=0 cellpadding=0><tr><td><img src="https://is4-ssl.mzstatic.com/image/thumb/Purple112/v4/78/d6/f8/78d6f802-78f6-267a-8018-751111f52c10/AppIcon-0-1x_U007emarketing-0-10-0-85-220.png/460x0w.webp" width="70"/></td><td><a href="https://apps.apple.com/us/app/potohex/id1620963302">PotoHEX</a><br>HEX File Viewer & Editor</td><tr></table>]() | ||
|
||
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! | ||
## LUA for iOS and macOS (Intel & Apple Silicon M1) & Catalyst - arm64 / x86_64 | ||
|
||
Supported version: 5.4.6 | ||
|
||
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 -b 5.4.6 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: | ||
|
||
[<table align="center" border=0 cellspacing=0 cellpadding=0><tr><td><img src="https://is4-ssl.mzstatic.com/image/thumb/Purple112/v4/78/d6/f8/78d6f802-78f6-267a-8018-751111f52c10/AppIcon-0-1x_U007emarketing-0-10-0-85-220.png/460x0w.webp" width="70"/></td><td><a href="https://apps.apple.com/us/app/potohex/id1620963302">PotoHEX</a><br>HEX File Viewer & Editor</td><tr></table>]() | ||
|
||
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! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
Pod::Spec.new do |s| | ||
s.name = "lua-iosx" | ||
s.version = "5.4.5.0" | ||
s.summary = "LUA XCFramework for macOS and iOS, including both arm64 and x86_64 builds for macOS, Mac Catalyst and Simulator." | ||
s.homepage = "https://github.com/apotocki/lua-iosx" | ||
s.license = "MIT" | ||
s.author = { "Alexander Pototskiy" => "[email protected]" } | ||
s.social_media_url = "https://www.linkedin.com/in/alexander-pototskiy" | ||
s.ios.deployment_target = "13.4" | ||
s.osx.deployment_target = "11.0" | ||
s.osx.pod_target_xcconfig = { 'ONLY_ACTIVE_ARCH' => 'YES' } | ||
s.ios.pod_target_xcconfig = { 'ONLY_ACTIVE_ARCH' => 'YES' } | ||
s.static_framework = true | ||
s.prepare_command = "sh scripts/build.sh" | ||
s.source = { :git => "https://github.com/apotocki/lua-iosx.git", :tag => "#{s.version}", :submodules => "true" } | ||
s.source_files = "frameworks/Headers/*.{h}" | ||
s.header_mappings_dir = "frameworks/Headers" | ||
s.public_header_files = "frameworks/Headers/*.{h,hpp}" | ||
s.vendored_frameworks = "frameworks/lua.xcframework" | ||
end | ||
Pod::Spec.new do |s| | ||
s.name = "lua-iosx" | ||
s.version = "5.4.6.0" | ||
s.summary = "LUA XCFramework for macOS and iOS, including both arm64 and x86_64 builds for macOS, Mac Catalyst and Simulator." | ||
s.homepage = "https://github.com/apotocki/lua-iosx" | ||
s.license = "MIT" | ||
s.author = { "Alexander Pototskiy" => "[email protected]" } | ||
s.social_media_url = "https://www.linkedin.com/in/alexander-pototskiy" | ||
s.ios.deployment_target = "13.4" | ||
s.osx.deployment_target = "11.0" | ||
s.osx.pod_target_xcconfig = { 'ONLY_ACTIVE_ARCH' => 'YES' } | ||
s.ios.pod_target_xcconfig = { 'ONLY_ACTIVE_ARCH' => 'YES' } | ||
s.static_framework = true | ||
s.prepare_command = "sh scripts/build.sh" | ||
s.source = { :git => "https://github.com/apotocki/lua-iosx.git", :tag => "#{s.version}", :submodules => "true" } | ||
s.source_files = "frameworks/Headers/*.{h}" | ||
s.header_mappings_dir = "frameworks/Headers" | ||
s.public_header_files = "frameworks/Headers/*.{h,hpp}" | ||
s.vendored_frameworks = "frameworks/lua.xcframework" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters