Skip to content

Comments

Fix xcodebuild archive for macOS target.#981

Closed
pixlwave wants to merge 14 commits intomatrix-org:developfrom
pixlwave:develop
Closed

Fix xcodebuild archive for macOS target.#981
pixlwave wants to merge 14 commits intomatrix-org:developfrom
pixlwave:develop

Conversation

@pixlwave
Copy link
Member

Fixes xcodebuild archive failing with the following errors:

<unknown>:0: error: using bridging headers with module interfaces is unsupported
Command CompileSwiftSources failed with a nonzero exit code
** ARCHIVE FAILED **

This was occurring as the MatrixSDKTests-macOS target was being built into the archive. Tests are no longer built for profiling or archiving which matches the existing iOS target behaviour.

Only a small change, but let me know if you'd like any further tweaks 🙂

Signed-off-by: Doug Earnshaw pixlwave@users.noreply.github.com

Pull Request Checklist

  • Pull request is based on the develop branch
  • Pull request updates CHANGES.rst
  • Pull request includes a sign off

@pixlwave
Copy link
Member Author

pixlwave commented Dec 21, 2020

Oh and if it helps, I've been using the following build command:

xcodebuild archive \
-workspace MatrixSDK.xcworkspace \
-scheme MatrixSDK-macOS \
-destination "generic/platform=macOS" \
-archivePath build/MatrixSDK-macOS \
SKIP_INSTALL=NO \
BUILD_LIBRARY_FOR_DISTRIBUTION=YES \
MACOSX_DEPLOYMENT_TARGET=10.15 \
GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS=NO

@pixlwave
Copy link
Member Author

pixlwave commented Jan 1, 2021

Whoops, I made changes to the branch. Closing for #983.

@pixlwave pixlwave closed this Jan 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant