首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >Xcode 8.3.3,将框架与发布和调试版本连接起来

Xcode 8.3.3,将框架与发布和调试版本连接起来
EN

Stack Overflow用户
提问于 2017-08-08 15:02:56
回答 1查看 3K关注 0票数 1

我有两个版本的框架:

  1. 一个用于调试版本,它禁用了一些功能。
  2. 一个用于发布版本,包含所有可用功能。

它们具有相同的名称(让我们称它们为HotDog.framework),现在应该根据构建配置(调试或发布)进行链接。

根据我的构建配置,如何将框架与Xcode链接?

(非常感谢:)

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-08-08 17:58:02

我看到了解决你任务的两种方法:

  1. 路径设置(简单方式)
代码语言:javascript
运行
复制
- Put your release and debug framework versions in neighbor folders
- In Xcode go to project - `Build Settings` - `Search Paths`
- Select and expand `Framework Search Paths` row
- Add paths to your debug and release framework versions into appropriate rows inside `Framework Search Paths`

  1. 构建预行动(需要更多的研究,但将来可能更有用)
代码语言:javascript
运行
复制
- In top menu select `Product` - `Scheme` - `Edit scheme...` (or press `Cmd` + `<`)
- In left side expand `Build` and select `Pre-actions`
- Click `+` and write script with copying files, relinking frameworks or etc (look command-line tools like `xcodebuild`, few examples are [here](https://gist.github.com/unnamedd/12b7482d4388c0b85e483c6d7c45476e))

票数 4
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/45571880

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档