Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 10 beta 6 error: accessing build database

Tags:

xcode

ios

xcode10

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:

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

Does anybody face a similar issue?

like image 915
David Cortes Avatar asked Aug 14 '18 23:08

David Cortes


1 Answers

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 ...

you need to run the xcodebuild command with -UseModernBuildSystem=NO

For example:

xcodebuild -target OBFramework -UseModernBuildSystem=NO
like image 69
Oded Regev Avatar answered Oct 17 '22 05:10

Oded Regev