You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I add a new Run script phase in XCode to run jazzy I get an error:
error: unable to attach DB: error: accessing build database ".../Build/Intermediates.noindex/XCBuildData/build.db": database is locked Possibly there are two concurrent builds running in the same filesystem location.
Is it possible to run jazzy in this way?
The text was updated successfully, but these errors were encountered:
Well, jazzy does run xcodebuild under the covers to figure out what to document so I guess I can understand where the Xcode error message here is coming from.
You could maybe explore having jazzy use a different DerivedData directory than your main build with --build-tool-arguments and -derivedDataPath but it's kind of a shame to build it again; or try using jazzy in symbol graph mode against your swiftmodule?
Thanks a lot. Yes, the first variant with different DerivedData works with some improvements.
Initially I added new Build Phase. It runs jazzy. Jazzy run new build. New build runs jazzy again and I had infinite recursion.
Had to add some checking for it.
As result I have following script:
#!/bin/bash# Check is jazzy already running to remove recursion.if [ -z$(printenv SKIP_JAZZY) ];thenecho"jazzy starts..."elseecho"Jazzy is already running. Skip this step."exit 0
fiexport SKIP_JAZZY=1
TEMP_DERIVED_DIR=$(mktemp -d)# Clean temp dir when script exits.trap"rm -rf $TEMP_DERIVED_DIR" EXIT
jazzy --xcodebuild-arguments -derivedDataPath,$TEMP_DERIVED_DIR
If I add a new
Run script phase
in XCode to run jazzy I get an error:Is it possible to run jazzy in this way?
The text was updated successfully, but these errors were encountered: