Fastlane:在具有多个目标和可可豆荚的项目中运行提交版本碰撞会出现未提交文件的错误

Abh*_*ora 5 ios swift fastlane

所以我正在使用快速通道。现在一切都很顺利,直到我们只有 1 个目标,现在我有大约 6 个目标。另外,现在的另一个变化是我现在使用 cocoapods。

当我的快车道运行时。它尝试执行 commit_version_bump 操作。

我收到以下错误。

[!] Found unexpected uncommitted changes in the working directory. Expected these files to 
have changed: 
Target1.xcodeproj/project.pbxproj
Target1/Resources/Target1-Info.plist
Target2/Resources/Target2-Info.plist
Target2/Target2-Info.plist
Target3/Target3-Info.plist
Target4/Target4-Info.plist
Target6/Target6-Info.plist.
But found these actual changes: 
.... some files from project....
Externals/Down/
Externals/FastImageCache/
Make sure you have cleaned up the build artifacts and 
are only left with the changed version files at this stage in your lane, and don't touch the 
working directory while your lane is running. You can also use the :force option to bypass this 
check, and always commit a version bump regardless of the state of the working directory.
Run Code Online (Sandbox Code Playgroud)

有人可以帮忙吗。非常感谢您的宝贵时间。谢谢

Fra*_*oso 0

也许不是最安全的方法,但可以完成工作:

commit_version_bump(
      ...
      force: true
)
Run Code Online (Sandbox Code Playgroud)