ScummVM logo Forum Index - ScummVM website - Contact us - Buy Supported Games: GOG.com Rules - Search - Register - Login curved edge
Folder Forum Index > iPhone Port > error compiling with xcode 9 and iOS 11 device Goto page 1, 2  Next
error compiling with xcode 9 and iOS 11 device
  Author    Thread Reply to topic
juamps



Joined: 01 Oct 2017
Posts: 5
error compiling with xcode 9 and iOS 11 device 

I'm getting this error

ld: warning: directory not found for option '-F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.0.sdk/System/Library/PrivateFrameworks'
ld: library not found for -lvorbisfile
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I'm trying to build on an iPad with iOS 11 using xcode 9.

I've been reading that privateframeworks have been removed by apple

Any thoughts?

thanks

 Reply with quote  
Post Sun Oct 01, 2017 5:16 pm 
 View user's profile Send private message
Foxic



Joined: 02 Oct 2017
Posts: 2
 

I've just got ScummVM running on iOS11. I had to fix the dependancies and set the build settings but it compiled fairly easily.
I can put my xcodeproj on GitHub if it helps

 Reply with quote  
Post Mon Oct 02, 2017 9:47 pm 
 View user's profile Send private message
juamps



Joined: 01 Oct 2017
Posts: 5
 

If you could post your project that would be great.
Or a quick step by step on the dependencies you had to fix? How did you resolve the privateframeworks one?

 Reply with quote  
Post Mon Oct 02, 2017 11:19 pm 
 View user's profile Send private message
Foxic



Joined: 02 Oct 2017
Posts: 2
 

Here's a complete project on mega --> "https://mega.nz/#!gSISERrS!1BN3M--AvNpEgR6y_CKF2la_eXNnfDHZtyZvIEdnpmY"

The frameworks dir has changed to F/Applications/Xcode/.../Frameworks so it was just a case of re-linking the necessary frameworks, finding the missing 'included' files and then editing the xcodeproj where necessary.

I've edited the xcodeproj so it only compiles for iPhone so you may want to re-enable iPads.

I started Sam&Max Hit the Road and it seemed to all be working but this is my first foray into ScummVM so I'm probably not the best test subject.

Portrait mode brings up the keyboard which I may be able to get rid of.

One thing I'm struggling with is getting out of the game and back to ScummVM. Any ideas?

 Reply with quote  
Post Tue Oct 03, 2017 8:48 am 
 View user's profile Send private message
juamps



Joined: 01 Oct 2017
Posts: 5
 

Thanks for the help.

I had trouble with your project but it gave ideas on what was wrong on mine.
I updated the path of privateframeworks to frameworks
i also had to remove and add some frameworks:



And to answer your question, to exit a game, swipe down using 2 fingers

Here is a list of the in-game gestures:

Gesture Description
Two fingers swipe down
Display the ScummVM menu for loading, saving, etc.

Two fingers swipe right
Enable / disable the touchpad mode

Two fingers swipe up
Enable / disable the mouse-click-and-drag mode
Two fingers tap
Simulate a right click. You should tap with one finger, and then tap with another while keeping your first finger on the screen.

Two fingers double-tap
Skip the cinematic / video

The iOS keyboard is visible when the device is in portrait mode, and hidden in landscape mode.

 Reply with quote  
Post Wed Oct 04, 2017 4:55 am 
 View user's profile Send private message
criezy
ScummVM Developer


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

The error with vorbisfile is due to the package from the blog post we were previously pointing to using non-standard library names.

In september we sanitised our tool that creates the Xcode project and as a result those non-standard names no longer work. For example in that package the libvorbisfile.a file is included in the libvorbis.a file and does not exist on its own, but our tool now expect it to exist as a separate file.

The changes in september also introduced a bug with the libffi.a, but I fixed this today. I also prepared a package with correct libraries and new instructions that will work with the latest source code. You can find those on our wiki and they should work with the latest ScummVM source code.

 Reply with quote  
Post Thu Oct 12, 2017 10:25 pm 
 View user's profile Send private message
juamps



Joined: 01 Oct 2017
Posts: 5
 

Thanks for the update.

I tried to build using the updated code but not being able to run it on my devices.

The build completes, links, copies but at the end I get an alert pop-up sayin there was an internal api error.

(I'm able to build other projects using the same device I'm trying to build scummvm to)

any ideas?

 Reply with quote  
Post Sun Oct 15, 2017 12:07 am 
 View user's profile Send private message
criezy
ScummVM Developer


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

I don't really have an idea. I never saw that error myself, but googling it seems to indicate there are possible causes for this error. You can for example have a look at https://stackoverflow.com/questions/3564392/there-was-an-internal-api-error-while-running-an-app-on-any-iphone-ipod-touch and see if one of those could be your issue.

Maybe it is also related to some of the libraries in the new package. You can try to disable some of those that are optional to see if this solves the issue, and if it does I would be interested in knowing which one is the culprit. Disabling libraries is done by passing options to the create_project call. For example our current instruction have a --disable-theora as there is no theory library in the package we provide. You can try to also add --disable-jpeg to not use the jpeg library. This means some games will not be playable though (those that use jpeg, such as Myst ME). To see all options run create_project with --help (and no other option).

It might also help us identify the problem if you indicate which Xcode version you are using and what is your device (which model of iPhone or iPad).

 Reply with quote  
Post Sun Oct 15, 2017 7:27 am 
 View user's profile Send private message
juamps



Joined: 01 Oct 2017
Posts: 5
 

well, this is strange.

I tried building on another machine (a MacBook Pro) using the same iPad 2 Air that previously had the issue and it worked...

The machine where I tried building and it didn't work is a MacBook Air if that makes any sense..

 Reply with quote  
Post Sun Oct 15, 2017 8:42 pm 
 View user's profile Send private message
criezy
ScummVM Developer


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

Not really. Unless the two machines have a different macOS X and/or Xcode version.

 Reply with quote  
Post Sun Oct 15, 2017 9:51 pm 
 View user's profile Send private message
alanshutko



Joined: 15 Oct 2017
Posts: 1
 

There seems to be a case sensitivity problem (perhaps only on certain versions of Xcode or iOS).

I needed to make sure that the case of ScummVM in the project (Build Settings -> Packaging -> Product Name) matched the one in Info.plist (Executable File). The Info.plist one was "ScummVM" and the one in the project was "scummvm".

I haven't sorted out yet where the difference originates, but fixing the project to match the plist fixed installation.

 Reply with quote  
Post Mon Oct 16, 2017 1:53 am 
 View user's profile Send private message
darthcircuit



Joined: 11 Feb 2016
Posts: 2
 

can someone post a working ipa? I don't have a mac and am trying to install via cydia impactor. I tried the official build, but it gave me a 32 bit error when trying to install haha.

 Reply with quote  
Post Wed Oct 18, 2017 3:42 pm 
 View user's profile Send private message
Zagreba



Joined: 24 Oct 2017
Posts: 3
 

it would be very helpful if you could post an ipa Smile

 Reply with quote  
Post Sun Oct 29, 2017 1:40 pm 
 View user's profile Send private message
blackpat



Joined: 09 Nov 2017
Posts: 4
 

An IPA wont do any good, because of the new signing. One could setup a Testflight group and add your Apple IDs.

 Reply with quote  
Post Mon Nov 13, 2017 10:16 am 
 View user's profile Send private message
Zagreba



Joined: 24 Oct 2017
Posts: 3
 

Im signing ipas with the ipastore app so an ipa would be amazing
They even had a scummvm for download there but it was 32 bit Sad

 Reply with quote  
Post Mon Nov 13, 2017 10:30 am 
 View user's profile Send private message
  Display posts from previous:      
Reply to topic

Forum Jump:
 
Goto page 1, 2  Next


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