How do you create hybrid Xcode projects for Mac & iPhone?

前端 未结 4 754
旧巷少年郎
旧巷少年郎 2020-12-24 08:58

I\'m working on a project which shall contain two targets. One for building a Framework to use in Mac development and another to create a static library to use in iPhone dev

4条回答
  •  有刺的猬
    2020-12-24 09:49

    It's actually not that bad. Just create a second target of the appropriate type and then change the "Base SDK" build setting. Then make sure to add all the necessary files. If you want to build both at the same time, create an aggregate target. For a practical example see my project SSPromise.

提交回复
热议问题