Last active
April 18, 2019 13:46
-
-
Save sebastianrothe/7d1f4f2455b0b72ade8f8e6300e3177e to your computer and use it in GitHub Desktop.
ScummVM Workspace preparations for iOS11 build on macOS Xcode9.1
This file contains hidden or 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
#!/bin/bash | |
LIBS_ZIP_URL="https://www.scummvm.org/frs/build/scummvm-ios7-libs.zip" | |
LIBS_ZIP_FILENAME="scummvm-libs.zip" | |
GIT_REPO_URL="https://github.com/scummvm/scummvm.git" | |
# Clone the repository | |
git clone "$GIT_REPO_URL" | |
# Compile create_project | |
(cd scummvm/devtools/create_project/xcode; xcodebuild) | |
# Create the workspace | |
mkdir build | |
cd build | |
curl -L "$LIBS_ZIP_URL" -o "$LIBS_ZIP_FILENAME" | |
unzip "$LIBS_ZIP_FILENAME" | |
rm "$LIBS_ZIP_FILENAME" | |
../scummvm/devtools/create_project/xcode/build/Release/create_project ../scummvm --xcode --enable-fluidsynth --disable-bink --disable-mt32emu --disable-nasm --disable-opengl --disable-theora --disable-taskbar --disable-libcurl --disable-sdlnet | |
open scummvm.xcodeproj |
EDIT: fixed - simply had to change the Product Name in build settings to ScummVM from scummvm. Cheers.
WoW! I love you! I spent 8 hours trying to figure why it wasn't working ! I always got 'internal api error' or 'cannot write to device' while trying to build on device.
Then i read your message and change product name to "ScummVM" and it magically worked!
Is there a reason for that?? Blame on xCode and Apple and their cryptic error message!!
This post should be sticky on the scummvm website :)
Thanks a lot again!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for this, it's the only one that works with iOS11 and Xcode 9. The older versions of this script generate errors (clank etc). However, once compile succeeds, I get this error when trying to run on my device:
App installation failed - There was an internal API error.
It runs on the simulator, but not on my phone :(
EDIT: fixed - simply had to change the Product Name in build settings to ScummVM from scummvm. Cheers.