ScummVM logo Forum Index - ScummVM website - Contact us - Buy Supported Games: GOG.com Rules - Search - Register - Login curved edge
Folder Forum Index > iPhone Port > Guaranteed To Work Simple Guide For iOS11 & Xcode 9.1
Guaranteed To Work Simple Guide For iOS11 & Xcode 9.1
  Author    Thread Reply to topic
mic773



Joined: 16 Nov 2017
Posts: 2
Guaranteed To Work Simple Guide For iOS11 & Xcode 9.1 

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:
#!/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:
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=1R0QrNDh80YPwzvSHYgTG8W_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
 Reply with quote  
Post Thu Nov 16, 2017 5:17 pm 
 View user's profile Send private message
blackpat



Joined: 09 Nov 2017
Posts: 4
 

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

 Reply with quote  
Post Mon Nov 20, 2017 10:50 am 
 View user's profile Send private message
ptitmoos



Joined: 26 Jan 2018
Posts: 1
 

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

code:

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 Smile
 Reply with quote  
Post Mon Feb 05, 2018 3:59 am 
 View user's profile Send private message
criezy
ScummVM Developer


Joined: 23 Sep 2006
Posts: 512
Location: West Sussex, UK
 

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-rich-text-to-plain-text-quickly-in-mac-os-x/).

 Reply with quote  
Post Mon Feb 05, 2018 12:30 pm 
 View user's profile Send private message
101jtwo



Joined: 01 Apr 2018
Posts: 1
 

how to you solve the provision profile requirement?

 Reply with quote  
Post Mon Apr 02, 2018 9:46 pm 
 View user's profile Send private message
Weedy Weed Smoker



Joined: 05 Apr 2018
Posts: 3
 

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/irkcqog7nuurwvi/ScummVM%20iOS%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...

 Reply with quote  
Post Thu Apr 05, 2018 2:20 pm 
 View user's profile Send private message
  Display posts from previous:      
Reply to topic

Forum Jump:
 



Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Powered by phpBB © 2001, 2006 phpBB Group
Forum design by ScummVM team, icons by raina
curved edge   curved edge