百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
R

Rome

> 编程语言
开源

使您可以轻松构建框架列表。

694 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

使您可以轻松构建框架列表。

cocoapods-rome

罗马使您可以轻松构建一个用于在外部使用的框架列表 例如用于 Swift 脚本的 Xcode。

安装

bash
$ gem install cocoapods-rome

重要

在下面的示例中,目标 'caesar' 可以是由 CocoaPods 管理的项目的现有目标,您可以在其中运行 Swift 脚本 或者 它可以是虚构的,例如如果您希望在独立的 Podfile 中运行此脚本,并手动获取添加到 Xcode 项目所需的框架。

使用方法

编写一个简单的 Podfile,如下所示:

MacOS

ruby
platform :osx, '10.10'

plugin 'cocoapods-rome'

target 'caesar' do
  pod 'Alamofire'
end

iOS

ruby
platform :ios, '8.0'

plugin 'cocoapods-rome', { :pre_compile => Proc.new { |installer|
    installer.pods_project.targets.each do |target|
        target.build_configurations.each do |config|
            config.build_settings['SWIFT_VERSION'] = '4.0'
        end
    end

    installer.pods_project.save
},

    dsym: false,
    configuration: 'Release'
}

target 'caesar' do
  pod 'Alamofire'
end

然后运行以下命令:

bash
pod install

并且您最终会得到动态框架:

$ tree Rome/
Rome/
└── Alamofire.framework

高级用法

对于生产环境的构建,当您希望创建和存储 dSYM 时:

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Rubycocoapodsdependency-managerdynamic-frameworkobjective-c

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言