mazjap / NeoMusic-SwiftUI

11 stars 1 forks source link

build failed #1

Closed Qfccse closed 1 year ago

Qfccse commented 1 year ago

Build input file cannot be found: '/Users/macos/Desktop/xcode/NeoMusic-SwiftUI-master/NeoMusic-SwiftUI/NeoMusic-SwiftUI/Helpers/Hidden.swift' (in target 'NeoWidgetExtension' from project 'NeoMusic-SwiftUI')

mazjap commented 1 year ago

You'll need to create a file called Hidden.swift in the Helpers folder.

Screenshot 2022-11-14 at 4 47 01 PM

Something like this should work:

struct Hidden {
    static let apple_music_api_key = /* Your  Apple Music api key from AppStoreConnect */
}

If you don't have an Apple Music api key, you can set apple_music_api_key to an empty string, this will just make searching and other such network features not work, but downloaded music should still work great!

Feel free to close this issue if this solved it for you, or let me know if you have any other issues or questions :)

Qfccse commented 1 year ago

QQ截图20221115214340 those two swift files are also not found

mazjap commented 1 year ago

That's my bad, just pushed up a commit which should sync the project.pbxproj with the file tree.

Screenshot 2022-11-16 at 8 50 10 AM

Also, I forgot to mention the Hidden.swift file needs to have the WidgetExtension as part of its target membership. Let me know if this fixes your issues, I'll update the readme.md to reflect the necessary prerequisites :)

mazjap commented 1 year ago

I also changed the default branch from master to main, so if that causes any issues on your side, let me know

Qfccse commented 1 year ago

thank you, now i can run this proj perfectly