我有两个版本的框架:
它们具有相同的名称(让我们称它们为HotDog.framework),现在应该根据构建配置(调试或发布)进行链接。
根据我的构建配置,如何将框架与Xcode链接?
(非常感谢:)
发布于 2017-08-08 17:58:02
我看到了解决你任务的两种方法:
- 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`
- 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))
https://stackoverflow.com/questions/45571880
复制相似问题