小编nak*_*eer的帖子

我们如何获得iOS 15.1模拟器?

对于我们的项目,我们需要使用最新的 Xcode 和 iOS 版本来构建和发布基础设施。Apple 于 2021 年 10 月最后一周发布了 Xcode 13.1 和 iOS 15.1,但没有用于运行测试的 iOS 15.1 目标(模拟器)。

知道它们通常什么时候出现在 Xcode 中吗?

xcode ios swift ios15

7
推荐指数
0
解决办法
7308
查看次数

从 stash 创建补丁

需要从 stash 创建补丁并将补丁应用到另一个分支上。

尝试过git format-patch -1 stash@{0} > P1.patch ,也git stash show -p > P1.patch

无法应用创建的任一修补程序。git am <或者git apply

git

5
推荐指数
0
解决办法
3729
查看次数

从 fastlane fastfile 返回值

我的 shell 脚本将触发 fastlane 操作 (ruby),我需要将一些值返回给 shell 脚本

到处都建议的一种选择是将其设置为环境变量。但无法在 shell 脚本中打印该值。

快车道行动

platform :ios do
  desc "Description of what the lane does"
  lane :getData do
        ENV['FL_VALUE'] = "Test"
  end
end
Run Code Online (Sandbox Code Playgroud)

shell 脚本示例

!/bin/sh
...
bundle exec fastlane getData
...
echo $FL_VALUE
Run Code Online (Sandbox Code Playgroud)

其他建议是将数据写入某个文件并从 shell 脚本中读取。但更喜欢使用 env 变量。

ruby fastlane

5
推荐指数
1
解决办法
4811
查看次数

没有安装它的rpm版本号

我需要获取像" foo-[RELEASE].rpm" 这样的rpm文件的版本号

我试过这些命令

rpm -q --queryformat '%{VERSION}' foo-[RELEASE].rpm 
package foo-[RELEASE].rpm is not installed

rpm -qp --queryformat "[%{VERSION}\n]" foo-[RELEASE].rpm
Run Code Online (Sandbox Code Playgroud)

我需要用版本号替换[RELEASE]占位符.

rpm

2
推荐指数
1
解决办法
4971
查看次数

标签 统计

fastlane ×1

git ×1

ios ×1

ios15 ×1

rpm ×1

ruby ×1

swift ×1

xcode ×1