Swift 包管理器:从发布中排除 [英] Swift Package Manager: Exclude from Release

查看:34
本文介绍了Swift 包管理器:从发布中排除的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我只想链接 https://github.com/pmusolino/Wormholy使用 SPM 在非 RELEASE 配置上访问我的 iOS 应用.

Let's say that I only wanted to link https://github.com/pmusolino/Wormholy to my iOS app on non-RELEASE configurations using SPM.

有没有办法做到这一点?

Is there a way to do this?

推荐答案

  1. 将链接设为可选
  2. 更新 EXCLUDED_SOURCE_FILE_NAMESRelease 以排除框架,例如虫圣*
  1. Make Link optional
  2. Update the EXCLUDED_SOURCE_FILE_NAMES for Release to exclude the framework, e.g. Wormholy*

这篇关于Swift 包管理器:从发布中排除的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆