onevcat / FengNiao

A command line tool for cleaning unused resources in Xcode.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error: no such module 'PackageDescription' M1 Pro

callo90 opened this issue · comments

Hey guys, I'm getting this error installing FengNiao in a MacBook Pro 2021 with M1 Pro.

With HomeBrew and Mint

error: no such module 'PackageDescription'
import PackageDescription
       ^

Compiled Manually with Verbose

error: 'fengniao': Invalid manifest
<unknown>:0: remark: did not find a prebuilt standard library for target 'arm64-apple-macos' compatible with this Swift compiler; building it may take a few minutes, but it should only happen once for this combination of compiler and target
/Users/carlos.lopez/Development/FengNiao/Package@swift-5.0.swift:3:8: error: no such module 'PackageDescription'
import PackageDescription
       ^

Any help?

commented

Same issue, no idea how to resolve

The same problem and no idea too

Ummm,

I cannot reproduce it. The installation goes fine under my MacBook Pro with the Apple M1 Pro chip:

截屏2023-01-29 0 03 27

PackageDescription should be a part of the Xcode environment and shipped with the Swift package manager. I guess the most possible reason is there's something wrong with the Xcode environment on your machine. Can you confirm that you have selected the correct Xcode path/version under the "Command Line Tools" setting in the "Locations" tab of your Xcode Preference panel?

When I chose here, what was the only thing, then everything worked!

Снимок экрана 2023-01-28 в 23 36 38