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

前端 未结 4 752
旧巷少年郎
旧巷少年郎 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:57

    Just to let you know:

    I ended up having one project with different targets for the different platforms. But I didn't include the framework I depend on in the targets itself, but rather added them to the Other Linker Flags build settings:

    -framework Foundation -framework Security
    

    You can check it out in the project I did on github.

提交回复
热议问题