asked    Camille     2018-07-05       ios       251 view        1 Answer

[SOLVED] Xcode 10: unable to attach DB error

When updating to Xcode 10, iOS static library target fails to build. Way how I am trying to build it is following:

xcodebuild -target TargetName -configuration Release clean build

With Xcode 9 everything runs smoothly, but when Xcode 10 is used for build, I am getting following error (after clean runs smoothly):

note: Using new build system

note: Planning build

note: Constructing build description Build system information error: unable to attach DB: error: accessing build database "/Users/uerceg/random-path/build/XCBuildData/build.db": database is locked Possibly there are two concurrent builds running in the same filesystem location.

** BUILD FAILED **

** BUILD FAILED **

The following build commands failed: PhaseScriptExecution MultiPlatform\ Build /Users/uerceg/random-path/build/Library.build/Release-iphoneos/LibraryTarget.build/Script-9DE7C9021AE68FA5001556E5.sh (1 failure)

This probably unrelated, but I noticed that new Xcode 10 build system flags duplicated Copy Bundle Resource Info.plist files as errors, so I did make sure that there're no duplicated entries, but probably this error is not related to this fact.

Does anyone have any idea what might be wrong?

  1 Answer  

        answered    Kama     2018-07-05      

Okay, seems like I managed to solve it. I was having /bin/sh script in Build Phases that was trying to build fat static library. In the script, I had OBJROOT path set like this:

OBJROOT="${OBJROOT}"

Seems like Xcode 10 and new build system changed some paths on the way and this line was the source of the issue. It needs to be adjusted to:

OBJROOT="${OBJROOT}/DependentBuilds"

After that, xcodebuild manages to build this target without issues with new build system introduced in Xcode 10.

I didn't get to this solution by myself, big thanks to Matt Gallagher and his post in here:





Your Answer





 2018-07-05         Monroe

Bar Chart on Dimension-1 and Stacked by Dimension-2

SummaryI want to display a bar chart whose dimension is days and is stacked by a different category (i.e. x-axis = days and stack = category-1). I can do this "manually" in that I can write if-then's to zero or display the quantity, but I'm wondering if there's a systematic way to do this.JSFiddle https://jsfiddle.net/wostoj/rum53tn2/DetailsI have data with dates, quantities, and other classifiers. For the purpose of this question I can simplify it to this:data = [ {day: 1, cat: 'a', quantity: 25}, {day: 1, cat: 'b', quantity: 15}, {day: 1, cat: 'b', quantity: 10}, {day: 2,...
 dc.js                     1 answers                     4 view
 2018-07-05         Quintion

Stacked Bar Chart by Units & Percentage

SummaryI want to display a bar chart who's dimension is days and who's stacked categories is another (i.e. x-axis = days and stack = category-1), but then, rather than display the simple quantity-sum of each group/stack, I want to show the percentage of the day.JSFiddle https://jsfiddle.net/wostoj/L1q50d4g/DetailsI have data with dates, quantities, and other classifiers. For the purpose of this question I can simplify it to this:data = [ {day: 1, cat: 'a', quantity: 25}, {day: 1, cat: 'b', quantity: 15}, {day: 1, cat: 'b', quantity: 10}, {day: 2, cat: 'a', quantity: 90}, {d...
 dc.js                     1 answers                     6 view
 2018-07-05         Elijah

How to change the "deselected" bar color with brush on dc.js

There is a way to change the color of the deselected bar (i'm talking about the brush selection) on a chart with dc.js?This is my chartAs you can see i can change the "selected color" but is possible also whit the "deselected"? Thanks The deselected color is defined in dc.css, or more specifically, in dc.scss which is used to generate dc.css.In your own style sheet you can override it, e.g.:.dc-chart rect.deselected { fill: yellow;} [XXX]
 dc.js                     1 answers                     6 view