Skip to content

Commit 9e33aba

Browse files
Fix webp installation iOS (#1518)
Replace Xcode task with cmake --build equivalent. Previously task with `Playground` scheme was not building all targets but `install` scheme introduced an issue that I could not fix: `error: unable to attach DB: error: accessing build database`. some related stackoverflow threads : https://stackoverflow.com/questions/73301738/xcode-13-4-1-error-unable-to-attach-db-error-accessing-build-database-react/73301739 https://stackoverflow.com/questions/51153525/xcode-10-unable-to-attach-db-error/52386834#52386834
1 parent 19d1cf3 commit 9e33aba

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

.github/jobs/test_install_ios.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ parameters:
66
jobs:
77
- job: ${{ parameters.name }}
88
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
9-
timeoutInMinutes: 40
9+
timeoutInMinutes: 60
1010
pool:
1111
vmImage: ${{ parameters.vmImage }}
1212

@@ -23,14 +23,11 @@ jobs:
2323
cmake -G Xcode -B buildiOS -D IOS=ON -D DEPLOYMENT_TARGET=${{ parameters.deploymentTarget }} -D CMAKE_UNITY_BUILD=$(UNITY_BUILD) -D BABYLON_DEBUG_TRACE=ON -D CMAKE_IOS_INSTALL_COMBINED=NO
2424
displayName: 'Generate iOS solution'
2525
26-
- task: Xcode@5
27-
inputs:
28-
xcWorkspacePath: 'buildiOS/BabylonNative.xcodeproj'
29-
scheme: 'Playground'
30-
sdk: 'iphoneos'
31-
useXcpretty: false
32-
configuration: Release
33-
displayName: 'Build Playground iOS'
26+
# Replaced Xcode task with cmake command instead because of 'unable to attach DB: error: accessing build database'
27+
# Some context and (non working) workarounds here : https://stackoverflow.com/questions/73301738/xcode-13-4-1-error-unable-to-attach-db-error-accessing-build-database-react/73301739
28+
- script: |
29+
cmake --build buildiOS --config Release -- -sdk iphoneos CODE_SIGNING_ALLOWED=NO
30+
displayName: 'Build iOS solution'
3431
3532
- script: |
3633
cmake --install buildiOS --prefix="$(Build.SourcesDirectory)/Install"

0 commit comments

Comments
 (0)