Skip to content

[feat] Unify macOS and iOS dev & build #14332

@DeTeam

Description

@DeTeam

Describe the problem

My cross-platform app is growing and now an App Extension as part of the bundle (Network Extension). I would like that extension to potentially share some of the code with the main UI as well as share common native Swift code between ios and mac.

It was fairly straightforward to setup an additional target for ios since it's possible to overwrite xcodegen project.yml, which would make tauri dev and tauri build work smoothly. However it was not an option on mac. It gets even trickier, since for NE to be installable on mac, both app extension and the main bundle must be properly signed and have at least a dev provisioning profile (often times managed automatically by xcode).

Describe the solution you'd like

I feel like being able to customize and play around with the xcode project for mac, the same way it is for ios, would be nice if all of the important cli commands support it.

Alternatives considered

I guess an alternative for me would be having own version of tauri dev for this specific case + shell scripts for resining the bundle when doing tauri build 🤔 .

Having a flag to keep dev (!custom-protocol) feature on would also make things easier, since then it's just running tauri build --debug --dev + bundling with xcodegen & xcodebuild.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions