Skip to content

Fix xcodebuild archive for macOS target. #983

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 17, 2021
Merged

Fix xcodebuild archive for macOS target. #983

merged 2 commits into from
Feb 17, 2021

Conversation

pixlwave
Copy link
Member

@pixlwave pixlwave commented Jan 1, 2021

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 [email protected]

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 Jan 1, 2021

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

@manuroe manuroe merged commit 12115bb into matrix-org:develop Feb 17, 2021
@pixlwave
Copy link
Member Author

Thanks 🎉

@pixlwave pixlwave deleted the mac-archive branch February 17, 2021 12:53
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.

2 participants