Xcode project templates with diagrams

I would like to create a project template for Xcode 9 that has predefined assembly schemes and configurations?

I would like to have a template with the following diagrams and corresponding assembly configurations:

  • Dev Schema with Dev Debug and Dev Release Configuration Configuration
  • Integration Diagram with Integration Debug and Integration Release Assembly Configuration
  • Production Scheme with Production Debug and Production Release Assembly Configuration

Is something like this possible? Has anyone had success with this? There is a good article on creating Xcode templates, but it does not describe how to create templates with predefined schemes: https://www.telerik.com/blogs/how-to-create-custom-project-templates-in-xcode-7

Any help would be appreciated, thanks :)

+4
source share
2 answers

Why do not you create different schemes and do not have separate configuration files,

Get your xcode -> your project -> information tab, as shown in the following screenshot

enter image description here

Click the plus button as shown in the image you will receive a popup asking

enter image description here

select "Duplicate Debug Configuration" and name it as "Stage".

Now go to your “TARGETS” → Select your application (DemoApp) → BuildSettings click the little plus sign in the upper right corner, as shown below.

enter image description here

and click "ADD OPERATING USER"

, : BASE_URL,

enter image description here

"Staging" "Run → Info → Build Configuration", .

enter image description here

, .

+1

:

<key>Targets</key>
<array>
    <dict>
        <key>Name</key>
        <string>Dev</string>
        <key>Configurations</key>
        <dict>
            <key>Debug</key>
            <dict/>
            <key>Release</key>
            <dict/>
        </dict>
    </dict>
    <dict>
        <key>Name</key>
        <string>Integration</string>
        <key>Configurations</key>
        <dict>
            <key>Debug</key>
            <dict/>
            <key>Release</key>
            <dict/>
        </dict>
    </dict>
    <dict>
        <key>Name</key>
        <string>Production</string>
        <key>Configurations</key>
        <dict>
            <key>Debug</key>
            <dict/>
            <key>Release</key>
            <dict/>
        </dict>
    </dict>
</array>

. .

0

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


All Articles