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

iOS SDKs test app build doesn't work when not in sdks/ios directory #13224

Closed
akoeplinger opened this issue Feb 28, 2019 · 0 comments
Assignees
Labels

Comments

@akoeplinger
Copy link
Member

@akoeplinger akoeplinger commented Feb 28, 2019

Steps to Reproduce

  1. Build iOS SDKs
  2. Run make -C sdks/ios build-ios-sim-corlib from the mono repo root
  3. It fails

Current Behavior

Unhandled Exception:
System.IO.FileNotFoundException: Could not find file "/Users/alexander/dev/mono/runtime/Info.plist.in"
File name: '/Users/alexander/dev/mono/runtime/Info.plist.in'
  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) [0x0019e] in <b60a4d3991c34f6d9d6ecb26e93ea0c3>:0
  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, System.String msgPath, System.Boolean bFromProxy, System.Boolean useLongPath, System.Boolean checkHost) [0x00000] in <b60a4d3991c34f6d9d6ecb26e93ea0c3>:0
  at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,System.IO.FileOptions,string,bool,bool,bool)
  at System.IO.StreamReader..ctor (System.String path, System.Text.Encoding encoding, System.Boolean detectEncodingFromByteOrderMarks, System.Int32 bufferSize, System.Boolean checkHost) [0x00067] in <b60a4d3991c34f6d9d6ecb26e93ea0c3>:0
  at System.IO.StreamReader..ctor (System.String path, System.Text.Encoding encoding, System.Boolean detectEncodingFromByteOrderMarks, System.Int32 bufferSize) [0x00000] in <b60a4d3991c34f6d9d6ecb26e93ea0c3>:0
  at System.IO.StreamReader..ctor (System.String path, System.Boolean detectEncodingFromByteOrderMarks) [0x0000d] in <b60a4d3991c34f6d9d6ecb26e93ea0c3>:0
  at System.IO.StreamReader..ctor (System.String path) [0x00000] in <b60a4d3991c34f6d9d6ecb26e93ea0c3>:0
  at (wrapper remoting-invoke-with-check) System.IO.StreamReader..ctor(string)
  at System.IO.File.OpenText (System.String path) [0x00000] in <b60a4d3991c34f6d9d6ecb26e93ea0c3>:0
  at System.IO.File.ReadAllLines (System.String path) [0x00000] in <b60a4d3991c34f6d9d6ecb26e93ea0c3>:0
  at AppBuilder.Run (System.String[] args) [0x003a2] in <d71c75e875ae4ab9b815e338efa87d01>:0
  at AppBuilder.Main (System.String[] args) [0x00006] in <d71c75e875ae4ab9b815e338efa87d01>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.IO.FileNotFoundException: Could not find file "/Users/alexander/dev/mono/runtime/Info.plist.in"
File name: '/Users/alexander/dev/mono/runtime/Info.plist.in'
  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) [0x0019e] in <b60a4d3991c34f6d9d6ecb26e93ea0c3>:0
  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, System.String msgPath, System.Boolean bFromProxy, System.Boolean useLongPath, System.Boolean checkHost) [0x00000] in <b60a4d3991c34f6d9d6ecb26e93ea0c3>:0
  at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,System.IO.FileOptions,string,bool,bool,bool)
  at System.IO.StreamReader..ctor (System.String path, System.Text.Encoding encoding, System.Boolean detectEncodingFromByteOrderMarks, System.Int32 bufferSize, System.Boolean checkHost) [0x00067] in <b60a4d3991c34f6d9d6ecb26e93ea0c3>:0
  at System.IO.StreamReader..ctor (System.String path, System.Text.Encoding encoding, System.Boolean detectEncodingFromByteOrderMarks, System.Int32 bufferSize) [0x00000] in <b60a4d3991c34f6d9d6ecb26e93ea0c3>:0
  at System.IO.StreamReader..ctor (System.String path, System.Boolean detectEncodingFromByteOrderMarks) [0x0000d] in <b60a4d3991c34f6d9d6ecb26e93ea0c3>:0
  at System.IO.StreamReader..ctor (System.String path) [0x00000] in <b60a4d3991c34f6d9d6ecb26e93ea0c3>:0
  at (wrapper remoting-invoke-with-check) System.IO.StreamReader..ctor(string)
  at System.IO.File.OpenText (System.String path) [0x00000] in <b60a4d3991c34f6d9d6ecb26e93ea0c3>:0
  at System.IO.File.ReadAllLines (System.String path) [0x00000] in <b60a4d3991c34f6d9d6ecb26e93ea0c3>:0
  at AppBuilder.Run (System.String[] args) [0x003a2] in <d71c75e875ae4ab9b815e338efa87d01>:0
  at AppBuilder.Main (System.String[] args) [0x00006] in <d71c75e875ae4ab9b815e338efa87d01>:0
make: *** [build-ios-sim-corlib] Error 1

Expected Behavior

It builds. Works fine if I run the command from inside sdks/ios

On which platforms did you notice this

[ X ] macOS
[ ] Linux
[ ] Windows

Version Used: master

@akoeplinger akoeplinger assigned luhenry and akoeplinger and unassigned luhenry Feb 28, 2019
akoeplinger added a commit to akoeplinger/mono that referenced this issue Feb 28, 2019
PWD is the wrong directory when e.g. you're doing "make -C sdks/ios" from the repo root.

Fixes mono#13224
akoeplinger added a commit that referenced this issue Feb 28, 2019
PWD is the wrong directory when e.g. you're doing "make -C sdks/ios" from the repo root.

Fixes #13224
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.