In Xcode 7, how can I set the static lib target and the target frame environment with the same name?

I am trying to convert an existing GitHub repository ( RMStore , but it can apply to any repo) for Carthage compatibility . This requires adding the target of the Framework to the Xcode project. I want the resulting structure to be called RMStore.framework, however I cannot create a new target for the Xcode project called RMStore , because there is already a target with this name that creates a static library (and I don’t want to get rid of this target).

I created a new target called RMStoreFramework , but the resulting structure is called RMStoreFramework.frameworkwhat I don't want. So is there a way:

  • create two goals with the same name or, alternatively,
  • to make the name of the resulting structure different from the name of the target?
+4
source share
2 answers

You can change the name of the resulting structure. In the assembly settings → Product name, you can select the desired name.

This pattern can be seen in projects that support Carthage and support both the iOS and Mac platforms.

+4
source

I have not tried myself, but I think that you can change the resulting structure different from another name from the script. enter image description here

0
source

Source: https://habr.com/ru/post/1609633/


All Articles