Skip to content

Commit

Permalink
version 5.4.6
Browse files Browse the repository at this point in the history
  • Loading branch information
apotocki committed Oct 1, 2023
1 parent 87dbdfc commit 5518ea7
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 67 deletions.
92 changes: 46 additions & 46 deletions README.md
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!
40 changes: 20 additions & 20 deletions lua-iosx.podspec
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
2 changes: 1 addition & 1 deletion scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e
THREAD_COUNT=$(sysctl hw.ncpu | awk '{print $2}')
HOST_ARC=$( uname -m )
XCODE_ROOT=$( xcode-select -print-path )
LUA_VER=5.4.5
LUA_VER=5.4.6
################## SETUP END
DEVSYSROOT=$XCODE_ROOT/Platforms/iPhoneOS.platform/Developer
SIMSYSROOT=$XCODE_ROOT/Platforms/iPhoneSimulator.platform/Developer
Expand Down

0 comments on commit 5518ea7

Please sign in to comment.