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

后端 未结 4 1752
离开以前
离开以前 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:41

    When you add the framework to your other Xcode project then you have to add "$(BUILT_PRODUCTS_DIR)" to Build Settings -> Framework Search Paths. This will create Debug when you run project (with Debug) and will create Release version when you archive project. The archive doesn't will create Release version under Products dir but will create Release in "Intermediates.noindex" folder.

提交回复
热议问题