Guaranteed To Work Simple Guide For iOS11 & Xcode 9.1

Subforum for discussion and help with ScummVM's iPhone port

Moderator: ScummVM Team

Post Reply
mic773
Posts: 2
Joined: Thu Nov 16, 2017 12:05 am

Guaranteed To Work Simple Guide For iOS11 & Xcode 9.1

Post by mic773 » Thu Nov 16, 2017 5:17 pm

Like you, after updating to the latest xcode and iOS my project refused to compile with various errors. No one wants to mess with installing ipa files, so just follow this simple guide and you will have ScummVM on your device in no time:

1. Using your favorite text editor, copy and paste the following code and save as prepare_workspace.sh (the code below is modified and isn't the one found online. If you have a previous prepare_workspace.sh file delete it and use this!):

Code: Select all

#!/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
2. Make a folder named "ScummVM" anywhere you want. Inside, drop the prepare_workspace.sh script file.

3. Open a new terminal window, nevigate to your ScummVM folder (cd ScummVM) and copy-paste the below line then press enter:

Code: Select all

chmod +x prepare_workspace.sh ; ./prepare_workspace.sh
4. Once Xcode launches, make sure Product Name in build settings is ScummVM (case sensitive!, see example: https://i.imgur.com/WyxBDsQ.png).

One you do that, compile and it will work 100%.

BONUS FIX TO APP ICON

The app icon for ScummVM has been messed up from day one. The creators use a rounded corner image instead of a boxed image which makes it look off in iOS. See comparison here (original on the left): https://i.imgur.com/bLW59O3.jpg.

To fix do the following:

Download my fixed app icon images: https://drive.google.com/open?id=1R0QrN ... _vfHsKDmxi then unpack replacing all older images into:

/ScummVM/scummvm/dists/ios7/Images.xcassets/AppIcon.appiconset/


Enjoy the classics!
Last edited by mic773 on Tue Apr 03, 2018 8:20 pm, edited 1 time in total.

blackpat
Posts: 4
Joined: Thu Nov 09, 2017 12:57 pm

Post by blackpat » Mon Nov 20, 2017 10:50 am

Thats how I did it too :) Lets try to incoporate this onto master in Github.

ptitmoos
Posts: 1
Joined: Fri Jan 26, 2018 8:43 am

Post by ptitmoos » Mon Feb 05, 2018 3:59 am

Thank you for the great tutorial.
I followed exactly what you suggested but I get the following error message in the terminal window:

Code: Select all

benjamins-Mac:ScummVM benjamin$ ls
prepare_workspace.sh
benjamins-Mac:ScummVM benjamin$ chmod +x prepare_workspace.sh ; ./prepare_workspace.sh
./prepare_workspace.sh: line 1: {rtf1ansiansicpg1252cocoartf1561: command not found
./prepare_workspace.sh: line 2: syntax error near unexpected token `}'
./prepare_workspace.sh: line 2: `{\fonttbl\f0\fswiss\fcharset0 Helvetica;}'
benjamins-Mac:ScummVM benjamin$
Do you have any idea why I get this error?

For information I'm using macOS High Sierra & XCode 9.2 (9C40b).

Thank you in advance for your help :)

User avatar
criezy
ScummVM Developer
Posts: 551
Joined: Sat Sep 23, 2006 10:41 am
Location: West Sussex, UK

Post by criezy » Mon Feb 05, 2018 12:30 pm

I am guessing you saved your workspace.sh file as rich text. If that is the case you need to convert it to plain text, which you can do in TextEdit (see for example http://osxdaily.com/2012/05/08/convert- ... -mac-os-x/).

101jtwo
Posts: 1
Joined: Sun Apr 01, 2018 3:03 pm

Post by 101jtwo » Mon Apr 02, 2018 9:46 pm

how to you solve the provision profile requirement?

Weedy Weed Smoker
Posts: 3
Joined: Thu Apr 05, 2018 1:15 pm

Post by Weedy Weed Smoker » Thu Apr 05, 2018 2:20 pm

I made a plain version of the iOS icon for ScummVM, which is ready for the FUTURE ! (Good bye skeuomorphism, sorry Scott...)

I uploaded it here : http://www.mediafire.com/file/irkcqog7n ... 20icon.zip


@101jtwo : just change the first "scummvm" of the Bundle Identifier in General build infos and select your iTunes account for the Signing Team...

Post Reply