Skip to content
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

[Question]: How do I go about building an ipa on Linux with theos? #4

Closed
mak448a opened this issue Nov 28, 2023 · 4 comments
Closed

Comments

@mak448a
Copy link

mak448a commented Nov 28, 2023

Theos building was mentioned in the readme, could you help me a bit? Thank you.

@Dadoum
Copy link
Owner

Dadoum commented Nov 28, 2023

You always had multiple way to compile iOS apps on Linux. With theos, you have to set-up an iOS application (in Swift or Objective-C) with nic.pl, then you add to your Makefile the PACKAGE_FORMAT line I given in the readme. Then when you'll run make package, this will build an unsigned ipa.

That ipa, you can install it with sideloader onto your device. You could also download certificates with the upcoming sideloader cli, and sign it yourself and install it if it fits more with your workflow. Finally, you could debug it with idevicedebug, idevicedebugserver and lldb, even if I never tested that part tbh.

By the way, theos isn't your only option. If you prefer some other programming language like Rust or D, you can build the app bundle yourself, or if you want to use the Swift Package Manager, you can use this awesome project that will allow you to make apps for iOS from Linux with SPM.

Dadoum added a commit that referenced this issue Dec 27, 2023
@mak448a mak448a closed this as completed Dec 28, 2023
@mak448a
Copy link
Author

mak448a commented Jun 18, 2024

I know this is a bit out of nowhere, but I just started to check this out. Do you know of any way this could be used to build an XCode project exported from Godot Engine? If not, are there any resources for learning Swift (or whatever can be built) with Theos?

@Dadoum
Copy link
Owner

Dadoum commented Jun 18, 2024

I tried to use https://github.com/facebookarchive/xcbuild with a custom toolchain but I ultimately failed. Another option I tried was to use a swift xcode project parser but I am not knowledgable enough about xcode projects to actually make a correct list of the files to be built here.

Theos can build C, C++, Objective-C, Swift and pretty much anything you would want to build. You could also directly use a swift SDK (since it is a new feature of Swift Package Manager) and target iOS, and it will be able to build objective c files too.

@mak448a
Copy link
Author

mak448a commented Jun 18, 2024

Do you know of any resources to get started with the project that nic.pl spits out? I successfully built an ipa from it. I just used "[3.] iphone/application".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants