Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

App extension name can't be identical to app name?

Tags:

xcode

ios

I have an app called "name", and I go to File > New Target in Xcode, and chose a sharing extension, but when I try to give it a name which is identical to the app(container) name, I get an error message :

The project “name” already contains a target named “name”. Please choose a different name.

But obviously I want your app name and extension name to be the same, (like other app extensions such as Pocket).

The extension name that I chose is the name that actually appears on the extension menu, and not the container app name .

How would I give them the same name?

like image 571
Curnelious Avatar asked Sep 24 '15 12:09

Curnelious


People also ask

Can two apps have same name on App Store?

With Android everything is simpler! You cannot reserve a name but you can have multiple apps with the same name. So no need to reserve the name – you can definitely use it. Whether or not you want to have the same name as other apps is another question…

What is a .app extension?

An app extension lets you extend custom functionality and content beyond your app and make it available to users while they're interacting with other apps or the system. You create an app extension to enable a specific task.

What is iOS app extension?

An . ipa file is an iOS and iPadOS application archive file which stores an iOS/iPadOS app. Each . ipa file includes a binary and can only be installed on an iOS, iPadOS, or ARM-based macOS device.


2 Answers

create a share extension with different name , in info.plistof share extension change the bundle display name to your app name.

like image 107
Mahanthesh Kumbar Avatar answered Oct 08 '22 05:10

Mahanthesh Kumbar


It's not saying that you can't have an extension of the same name. It says you can't have a target with the same name.

Create the target with a sensible name. How about "App Extension"?

Then in the Info.plist for the extension, you can give it the display name that you want.

like image 42
Stephen Darlington Avatar answered Oct 08 '22 06:10

Stephen Darlington