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

iTunesArtwork missing #786

Closed
murphymj5209 opened this issue Jul 3, 2020 · 3 comments
Closed

iTunesArtwork missing #786

murphymj5209 opened this issue Jul 3, 2020 · 3 comments

Comments

@murphymj5209
Copy link

I am on a Mac with VS 2019 doing a compile in debug or release mode but using iPhone; the iPhoneSimulator works OK and i receive the following message:

/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets(3,3): Error: '/Users/MM/Documents/GitHub/MOrtho/src/MOrtho.iOS/iTunesArtwork' not found. (MOrtho.iOS)

I have changed the properties of the iTunesArtwork to always copy. Any idea for this problem?

@lukepothier
Copy link
Contributor

There's an issue with the template where the iTunesArtwork and iTunesArtwork@2x files, which are image files without an extension in the filename, don't end up in exactly the correct place. Instead of being in the root iOS directory (MOrtho.iOS in your case) they end up nested in sub-directories.

The workaround is to move the files to the right place. In your example, you should find the files at MOrtho.iOS\iTunesArtwork\MOrtho\src\MOrtho.iOS\iTunesArtwork, and MOrtho.iOS\iTunesArtwork@2x\MOrtho\src\MOrtho.iOS\iTunesArtwork@2x. Move those files from their nested positions into the MOrtho.iOS directory and delete the iTunesArtwork and iTunesArtwork@2x sub-directories. After doing that, it's probably worth confirming that both files still have the iTunesArtwork build action. Then the project should build fine.

@Plac3hold3r
Copy link
Owner

The issue should be resolved with new projects generated using release v1.9.0+. For an existing project, the steps suggested by @lukepothier in moving the files back to the root directory should resolve the issue.

Due to the iTunesArtwork files not having any file extensions MSBuild was duplicating the path inside the NuGet packaged version published in the VSIX. Which was why this only affected the VSIX version of MvxScaffolding and not the dotnet new templates.

@murphymj5209
Copy link
Author

murphymj5209 commented Jul 6, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants