Skip to content
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

Day 81: No such module 'SamplePackage' #3

Open
chasenlehara opened this issue Dec 16, 2024 · 1 comment
Open

Day 81: No such module 'SamplePackage' #3

chasenlehara opened this issue Dec 16, 2024 · 1 comment

Comments

@chasenlehara
Copy link

When I first added the package to my project, I ran into this error:

No such module 'SamplePackage'

Then I cleaned the build folder and tried to build, but got these errors:

Xcode error panel shows five issues in the HotProspects project. A red error states, “No such module SamplePackage” in Day81.swift. Four gray errors indicate missing files like HotProspects.abi.json, swiftmodule, and related outputs in the derived data folder.

Then I got lucky and added the package to the “Link Binary With Libraries” list:

The Xcode Build Phases screen is open for the HotProspects project. It lists project phases like Target Dependencies, Compile Sources with five items, and Link Binary With Libraries, which includes a single required package named SamplePackage.

Filing this issue here in case something can be fixed in the package to avoid the issue in the future, or it helps others with the same problem.

This was all with Xcode 16.2 (16C5032a) on macOS 15.2 (24C101).

@chasenlehara
Copy link
Author

Continuing on Day 83, I realize that maybe this step to Add to Target is new? Might be helpful to add to the instructions.

A dialog box in Xcode titled “Choose Package Products for CodeScanner” allows selecting a package product. The dropdown menu is expanded, showing targets: None, HotProspects, HotProspectsTests, and HotProspectsUITests. Buttons at the bottom include Cancel and Add Package.

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

No branches or pull requests

1 participant