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

Add guide to codesigning and running on a real device #3

Open
kubkon opened this issue Aug 15, 2021 · 5 comments
Open

Add guide to codesigning and running on a real device #3

kubkon opened this issue Aug 15, 2021 · 5 comments

Comments

@kubkon
Copy link
Owner

kubkon commented Aug 15, 2021

It'd be cool if the README included a guide to codesigning and running the generated app on a real device using codesign and xcrun tools (or otherwise).

@jmrico01 would you be willing to add such a short guide to the README?

@jmrico01
Copy link

For sure! I'll write something and PR it here when I get the chance. Working on my Zig app at the moment :)

@MaxLeiter
Copy link

Is there an update on this? I'm interested in using Zig to build an iOS app.

@jmrico01
Copy link

Hey! Sorry I stopped working on my iOS project for a bit, but this is good timing because I've been meaning to revisit. I'll try to add something to the readme in the next day or two - feel free to ping me if I forget.

@jmrico01
Copy link

Aha, seems like @kubkon made some progress while I was away. I had some very rough setup for code signing and hadn't really figured out programmatic deployment to an iOS device, so I am checking out https://github.com/kubkon/zignature and https://github.com/kubkon/zig-deploy, tweaking some outdated things, and seeing if I can make them work.

@kubkon
Copy link
Owner Author

kubkon commented Jul 13, 2022

Aha, seems like @kubkon made some progress while I was away. I had some very rough setup for code signing and hadn't really figured out programmatic deployment to an iOS device, so I am checking out https://github.com/kubkon/zignature and https://github.com/kubkon/zig-deploy, tweaking some outdated things, and seeing if I can make them work.

Yes I did :-) In order to make this example work fully programmatically with zignature and zig-deploy and with any valid and Apple issued developer certificate, there's quite a bit of work left, and in particular:

  • zignature needs to learn how to parse XML to learn about bundle's metadata
  • zignature needs to learn how to DER encode
  • zig-deploy needs more error handling and testing as currently it mainly handles non-incremental installs and doesn't check if app already exists on the target device or not. It also doesn't install any developer profiles on the device.

Anyhow, here's what the entire workflow should look like in the end and what I am aiming for: iOS DX with Zig: demo at Zig Milan meetup.

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

3 participants