Is it possible to have both an iOS app and Mac app in the same project?

后端 未结 2 2187
一生所求
一生所求 2021-02-20 05:54

As the title says, I\'m wondering if it\'s possible and reasonable to have both an iOS app and Mac app in the same project. That is, an Xcode project that has a Mac app target,

2条回答
  •  不思量自难忘°
    2021-02-20 06:08

    It's quite straightforward to do this. Make sure you have the build setting "Base SDK" set appropriately for each target.

    You can also add SDK-specific build settings by clicking the little (+) symbol next to a build setting: per-SDK build setting

    and then you can create appropriate Xcode schemes to build everything at once.

提交回复
热议问题