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
IOS: Compilation of SDL and satellite libraries #5665
Comments
it's difficult to say what's causing the error without seeing full compile output. haven't seen any issues when building static library target, you can check my script here: https://github.com/kambala-decapitator/vcmi-ios-depends/blob/main/build_depends.sh#L171 |
You might just need to clean before running this script? |
@kambala-decapitator Have you tried your script with SDL2_image v2.6.2? Your script references v2.0.5. I believe v2.0.5 still uses Xcode-iOS which does not exist anymore in the latest versions. My own similar xcodebuild command fails when building the simulator version with
And when building for an iOS device:
It's not the same error as @1bsyl, but it seems related in that SDL_image seems to want to build the iOS project as a Mac project, unless we are building it wrong? ApplicationServices is for MacOS, not for iOS. My original xcodebuild command:
And I tried this change based partly on @kambala-decapitator's script:
And when I check what schemes/targets are available, there isn't anything iOS-specific, so I don't know how else to build it as an iOS project unless I specify the SDK, which doesn't seem to impact how the library's Xcode project knows what to depend upon. xcodebuild -version
xcodebuild -list shows:
|
@gbgames if I recall correctly, Xcode project has been changed to multi-platform support, but unfortunately it requires Xcode 13 (you use 12.4 as I see) you can also build with CMake and https://github.com/leetal/ios-cmake |
I fixed my script: It seems I have to "force" the PLATFORM variable so that the HEADER_SEARCH_PATHS is correct. |
I have this very simple script:
ios_build_libs.sh.txt
That helps me to re-build all SDL, SDL_image, SDL_mixer and SDL_ttf libraries in release, debug,device,simulator. for iOS or tvOS. In one command.
Now, it fails with mysterious messages. see below. (it may not be relevant).
I see that the "scheme" a now more homogeneous. For SDL the are "Static Library-iOS" or "-TV". But no differentiation for other libraries. Is this ok ?
Same thing for "framework" scheme: there is a "Framework-iOS" scheme for SDL. And only "Framework"for other libs.
I wonder which scheme should be used to build for ios. Thanks.
It seems this script should be legitimate to run correctly since it only triggers the Xcode build. with some parameter. Any help is appreciated :)
The text was updated successfully, but these errors were encountered: