SwiftSDL2 icon indicating copy to clipboard operation
SwiftSDL2 copied to clipboard

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

Open ds8k opened this issue 3 years ago • 5 comments

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

  • [x] If possible, I've reproduced the issue using the main/master branch of this package.
  • [x] I've searched for existing issues under the issues tab.
  • [x] 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

ds8k avatar Nov 17 '21 18:11 ds8k

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

pablormago avatar Mar 10 '22 18:03 pablormago

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?

ctreffs avatar Mar 16 '22 13:03 ctreffs

I solved the problem. The problem was the sandbox. Disabling it solved the problem. Naybe you can put and advise on github for future noob issues.

Ps: I couldnt find a way to embed the sdl2 .dylib library, do you know how to do It?? I made a test project so you can see if there is any mistake. It works ok in my Mac but when i give the app to other people it crashes looking for the sdl2_2....dylib file: https://github.com/pablormago/sdlTest

Thanks in advance

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: Christian Treffs @.> Sent: Wednesday, March 16, 2022 2:00:48 PM To: ctreffs/SwiftSDL2 @.> Cc: Pablo Jiménez @.>; Comment @.> Subject: Re: [ctreffs/SwiftSDL2] Xcode 13 build fails - Module '_Builtin_intrinsics.intel' requires feature 'x86' (Issue #11)

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?

— Reply to this email directly, view it on GitHubhttps://github.com/ctreffs/SwiftSDL2/issues/11#issuecomment-1069101536, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACLWJIRAF2VI7ESYUI4TGVDVAHLQBANCNFSM5IHWH34Q. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you commented.Message ID: @.***>

pablormago avatar Mar 16 '22 13:03 pablormago

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.

ctreffs avatar Mar 29 '22 07:03 ctreffs

Thanks anyway!! I will continue investigating!!El 29 mar. 2022 9:42, Christian Treffs @.***> escribió: 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.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

pablormago avatar Mar 29 '22 07:03 pablormago