How to build a release version of an iOS framework in Xcode?

后端 未结 4 1751
离开以前
离开以前 2021-01-31 09:05

Let\'s say I do the following:

  1. Open Xcode 7
  2. File | New | Project | Cocoa Touch Framework
  3. Create \"TestFramework\" with the Swift language
4条回答
  •  旧巷少年郎
    2021-01-31 09:49

    To get a release build, you need to change your scheme settings:

    Alternatively, create a new scheme for release builds.

    Ensure you have a device selected. Not the simulator.

    Build your project and you should see that it gets added to this location: (Click the arrow to navigate there in finder)

    And after drilling down, you should be able to find the release folder with your release framework inside.

提交回复
热议问题