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

Cannot find file error for iOS #361

Open
attrib75 opened this issue Aug 21, 2019 · 0 comments
Open

Cannot find file error for iOS #361

attrib75 opened this issue Aug 21, 2019 · 0 comments

Comments

@attrib75
Copy link

attrib75 commented Aug 21, 2019

System.IO.FileNotFoundException: Could not find file "/Users/..../Library/Caches/Xamarin/mtbs/builds/....iOS/bce8e448d6683b6b27c8810f8a6f5018/obj/iPhoneSimulator/Gorilla/optimized/filenamehere.png"
File name: '/Users/..../Library/Caches/Xamarin/mtbs/builds/....iOS/bce8e448d6683b6b27c8810f8a6f5018/obj/iPhoneSimulator/Gorilla/optimized/filenamehere.png'

at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x00259] in /Users/builder/jenkins/workspace/build-package-osx-mono/2019-02/external/bockbuild/builds/mono-x64/mcs/class/corlib/System.IO/FileStream.cs:274
at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options) [0x00000] in /Users/builder/jenkins/workspace/build-package-osx-mono/2019-02/external/bockbuild/builds/mono-x64/mcs/class/corlib/System.IO/FileStream.cs:106
at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,System.IO.FileOptions)
at System.IO.FileSystem.CopyFile (System.String sourceFullPath, System.String destFullPath, System.Boolean overwrite) [0x0001b] in /Users/builder/jenkins/workspace/build-package-osx-mono/2019-02/external/bockbuild/builds/mono-x64/external/corefx/src/System.IO.FileSystem/src/System/IO/FileSystem.Unix.cs:25
at System.IO.File.Copy (System.String sourceFileName, System.String destFileName, System.Boolean overwrite) [0x00056] in /Users/builder/jenkins/workspace/build-package-osx-mono/2019-02/external/bockbuild/builds/mono-x64/external/corefx/src/System.IO.FileSystem/src/System/IO/File.cs:74
at Xamarin.MacDev.Tasks.SmartCopyTaskBase.CopyFile (System.String source, System.String target, System.String targetItemSpec) [0x0002d] in <40511172e14e48d3bd6c345b45f8f142>:0
at Xamarin.MacDev.Tasks.SmartCopyTaskBase.Execute () [0x000b6] in <40511172e14e48d3bd6c345b45f8f142>:0 ....iOS C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets 498

This is when trying to deploy. It happened all of a sudden. Items of note:

  1. the file is present in the project
  2. the file is present here C:\Dev<path>\Main<path>....iOS\obj\iPhoneSimulator\Gorilla\optimized
  3. I've tried the following:
  • clean
  • rebuild
  • restart vs
  • delete object/bin
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