-
Notifications
You must be signed in to change notification settings - Fork 752
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build for ios #3612
Build for ios #3612
Conversation
To distribute the iOS version, you could package a .IPA and hand that out. After people install it using something like AltServer, you could simply have the user copy the .MPQ to a folder on their phone. |
@JoBergeron do you know how the app would then locate or gain access to the mpq file? |
Launching the app could create a local folder where it would look for the file. You could inform the user to simply copy the file there. iOS apps can create a local folder on the user's device. |
That sounds perfect. Do you have any references for that? |
I know RetroArch does stuff like that. https://github.com/libretro/RetroArch I found this code from an example somewhere that could help as well do |
In my previous local builds I just embedded .mpq into the Xcode project, as a resource file. This made it much easier to run things, without a need to point to these resources after launch. Should be possible with CMake too, but may not be practical for .ipa re-distribution. |
Distributing an .ipa file would also let people who don't have a Mac "sideload" the game. (Assuming they have a Windows PC) |
@AJenbo |
That's one way to do it I guess. I simply put stuff on icloud or dropbox or even sometimes just on a network share. |
That's another good method we should also support 👍 |
It would be more convenient to be able to read from cloud storage. If you can use this, you can access iCloud. |
@AJenbo
https://cmake.org/cmake/help/latest/generator/Xcode.html#xcode-build-system-selection |
Atm I only have Xcode 10.1 available to me :) |
I tried it with Xcode 13, but if I didn't specify an old build system in the T option, the build failed. |
Can you pick more than 1 file though? What if you want to load the hellfire mpq files as well? |
Could you let me know what error you got, I have to patch 3 files in SDL because of my old Xcode. |
I'm out now, so I'll check it when I get home. |
@AJenbo CMake Error in CMakeLists.txt:
is attached to multiple targets:
but none of these is a common dependency of the other(s). This is not CMake Error in iOS/_deps/fmt-src/CMakeLists.txt:
is attached to multiple targets:
but none of these is a common dependency of the other(s). This is not CMake Error in iOS/_deps/sdl2-src/CMakeLists.txt:
is attached to multiple targets:
but none of these is a common dependency of the other(s). This is not CMake Error in iOS/_deps/sdl_audiolib-src/CMakeLists.txt:
is attached to multiple targets:
but none of these is a common dependency of the other(s). This is not |
I tried to build it in the following environment: ld: building for iOS Simulator, but linking in dylib built for macOS, file '/usr/X11R6/lib/libpng.dylib' for architecture x86_64
|
libpng stuff may be fixed by #3618 |
cd17099
to
1279865
Compare
5a49315
to
a63e8be
Compare
Note: Install instructions will be added along side #3612 as that will change the procedure. |
@AJenbo
|
For testing using the simulator:
For running on a real device:
Open the generated Xcode project.
Add the MPQ files