diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9184f619..a02c0372 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -66,7 +66,7 @@ jobs: - name: Run Unit Tests on macOS if: matrix.platform == 'macOS' - run: xcodebuild test -scheme Kiwix -destination 'platform=macOS' + run: xcodebuild test -scheme Kiwix -destination 'platform=macOS' CODE_SIGNING_ALLOWED=NO - name: Upload code coverage uses: codecov/codecov-action@v4.2.0 diff --git a/.gitignore b/.gitignore index 3667d69d..a31fd4e7 100644 --- a/.gitignore +++ b/.gitignore @@ -74,6 +74,7 @@ Libraries # ignore xcode project files, they are now generated by XcodeGen *.xcodeproj Support/Kiwix.entitlements +Support/Kiwix-unitTest.entitlements # ignore the lock file, it is not working the same way as lock files in other tools Brewfile.lock.json diff --git a/project.yml b/project.yml index e167b726..796a2db5 100644 --- a/project.yml +++ b/project.yml @@ -122,6 +122,13 @@ targets: PRODUCT_BUNDLE_IDENTIFIER: org.kiwix.Tests TEST_HOST: $(BUILT_PRODUCTS_DIR)/Kiwix.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Kiwix BUNDLE_LOADER: $(TEST_HOST) + entitlements: + path: Support/Kiwix-unitTest.entitlements + properties: + com.apple.security.app-sandbox: false + # from macOS 14, sandbox and unit test are not working together on CI + # a pop up appears that needs user acceptance + # see: https://developer.apple.com/documentation/security/accessing-files-from-the-macos-app-sandbox sources: - path: Tests dependencies: