mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-06-09 04:21:38 +12:00
Fix iOS build script
This commit is contained in:
parent
19473cb82c
commit
3e11bd0bf2
3 changed files with 46 additions and 8 deletions
Binary file not shown.
|
@ -1,15 +1,20 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Settings for the SwiftUI frontend
|
||||
ARCH=arm64
|
||||
CONFIGURATION=Release
|
||||
SDK=iphonesimulator18.2
|
||||
|
||||
runSimulator=false
|
||||
# Settings for the emulator core
|
||||
EMULATOR_BUILD_TYPE=Release
|
||||
|
||||
# Simulator settings
|
||||
RUN_SIMULATOR=false
|
||||
|
||||
# Go to the parent directory and build the emulator core
|
||||
cd ../..
|
||||
cmake -B build -DENABLE_VULKAN=OFF -DBUILD_HYDRA_CORE=ON -DCMAKE_TOOLCHAIN_FILE=third_party/ios_toolchain/ios.toolchain.cmake -DPLATFORM=SIMULATORARM64 -DDEPLOYMENT_TARGET="13.0"
|
||||
cmake --build build
|
||||
cmake -B build -DENABLE_VULKAN=OFF -DBUILD_HYDRA_CORE=ON -DENABLE_USER_BUILD=ON -DCMAKE_TOOLCHAIN_FILE=third_party/ios_toolchain/ios.toolchain.cmake -DPLATFORM=SIMULATORARM64 -DDEPLOYMENT_TARGET="13.0"
|
||||
cmake --build build --config ${EMULATOR_BUILD_TYPE}
|
||||
|
||||
# Copy the bridging header from the emulator source to the Swift interop module folder
|
||||
cp ./include/ios_driver.h ./src/pandios/Alber/Headers/ios_driver.h
|
||||
|
@ -19,11 +24,10 @@ cd src/pandios
|
|||
xcodebuild build -configuration ${CONFIGURATION} -sdk ${SDK} -arch ${ARCH}
|
||||
|
||||
# To run the app in the simulator:
|
||||
|
||||
# Boot the iPhone, install the app on the iphone, then open the sim & launch the app
|
||||
if [ "$runSimulator" = true ] ; then
|
||||
xcrun simctl boot "iPhone 16"
|
||||
xcrun simctl install "iPhone 16" "build/Release-iphonesimulator/Pandios.app"
|
||||
if [ "$RUN_SIMULATOR" = true ] ; then
|
||||
xcrun simctl boot "iPhone 16 Pro"
|
||||
xcrun simctl install "iPhone 16 Pro" "build/Release-iphonesimulator/Pandios.app"
|
||||
open /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app
|
||||
xcrun simctl launch booted "Alber.Pandios"
|
||||
xcrun simctl launch --console booted "Alber.Pandios"
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue