Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to deal with Xcode "Embed App Extension" build phase

Tags:

xcode

When creating a "Share extension" via adding new target Xcode adds build phase named "Embed App Extension" in app "Build Phases" tab of app target settings. It is possible to remove this phase, but if you try to add it by pressing "+" at the left upper corner you'll find "Embed App Extension" is not listed among available options.

Why is it so? How to embed app extension to the target app without adding new target?

like image 293
Paul B Avatar asked Sep 15 '25 09:09

Paul B


1 Answers

The "Embed App Extension" is just a "Copy File Phase" that has been renamed.

So just use the "+" at the left upper corner, select "New Copy Files Phase", expand it and manually set its properties.

You can also double click on the name of the phase to rename it back to "Embed App Extension".

like image 65
Vangaorth Avatar answered Sep 17 '25 20:09

Vangaorth