swift package with arm64e

I use spm manage swift package, now i want my macos app support arm64e,so i add arm64e in Build Srtting -> Architectures.

but i got error Could not find module 'SwiftyJSON' for target 'arm64e-apple-macos'; found: arm64-apple-macos, x86_64-apple-macos

Apparently, if no limit in Package.swift, SPM will only compile versions for x86 and ARM64 architectures by default.

now, how should I configure SPM to compile the arm64e version?

thanks

Take a look at these instructions in the documentation, and let me know the results once you've done so!

— Ed Ford,  DTS Engineer

@DTS Engineer

First of all, thank you for your response.

I followed the instructions in the manual, and the content of the manual is valid. The key operations were:

plutil -create xml1 MyWorkspace.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings  
plutil -insert iOSPackagesShouldBuildARM64e -bool YES MyWorkspace.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings

However, this is for iOS, where the toggle is iOSPackagesShouldBuildARM64e.

What I need now is for macOS. I tried changing it to MacOSPackagesShouldBuildARM64e, but it didn't work. So for macOS, the issue remains unresolved .

I missed the macOS detail in your first post. Since that's the crucial missing part here, can you open a report in Feedback Assistant about this? Please post the FB number here for my reference.

— Ed Ford,  DTS Engineer

@DTS Engineer FB19922007

swift package with arm64e
 
 
Q