ctreffs/SwiftSDL2

Xcode 13 build fails - Module '_Builtin_intrinsics.intel' requires feature 'x86'

Closed this issue · 5 comments

ds8k commented

Bug Description

I'm attempting to add this as a dependency to the sm64ex-ios project but building with Xcode 13 fails with the following error:

module.modulemap:38:19: Module '_Builtin_intrinsics.intel' requires feature 'x86'

Information

  • Package version: master branch
  • Platform version: macOS 11.6
  • Swift version:
 % swift --version
swift-driver version: 1.26.9 Apple Swift version 5.5.1 (swiftlang-1300.0.31.4 clang-1300.0.29.6)
Target: x86_64-apple-macosx11.0

Checklist

  • If possible, I've reproduced the issue using the main/master branch of this package.
  • I've searched for existing issues under the issues tab.
  • The bug is reproducible

Steps to Reproduce

  • Add as a dependency to an existing project in Xcode 13
  • Attempt to build

Expected behavior

Dependency builds successfully

Actual behavior

Build fails

Screenshots

Screen Shot 2021-11-17 at 1 33 05 PM

Hi, did you found a solution?? i have the same issue

I'm sorry but I can't reproduce this issue. Could you provide a demo project demonstrating the issue?
Are you on an Intel or ARM based mac?

I'm afraid I don't have an answer to that, since I faced that issue myself before. https://github.com/apple/swift-package-manager/blob/main/Documentation/Usage.md#requiring-system-libraries does not help either and I couldn't find any information on how to achieve this myself.