Xcode 10 beta 6 错误:访问构建数据库

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/51850850/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 10:44:20  来源:igfitidea点击:

Xcode 10 beta 6 error: accessing build database

iosxcodexcode10

提问by David Cortes

Hello I have a script to create a universal framework on Xcode 10. When I run it from Xcode everything works fine but if I tried from command line tool I receive the following error:

您好,我有一个脚本可以在 Xcode 10 上创建一个通用框架。当我从 Xcode 运行它时一切正常,但是如果我从命令行工具尝试,我会收到以下错误:

Build system information
error: error: accessing build database "/path/build.db": disk I/O error

Does anybody face a similar issue?

有人面临类似的问题吗?

回答by Oded Regev

I finally found the solution for this one :)

我终于找到了这个解决方案:)

When you build the "Aggregated Target", i.e. the target that contains the script with the:

当您构建“聚合目标”时,即包含以下脚本的目标:

lipo -create -output ...

lipo -create -output ...

you need to run the xcodebuildcommand with -UseModernBuildSystem=NO

你需要运行xcodebuild命令-UseModernBuildSystem=NO

For example:

例如:

xcodebuild -target OBFramework -UseModernBuildSystem=NO