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

System.DllNotFoundException: /System/Library/Frameworks/CoreText.framework/Versions/A/CoreText - When opening the excel workbook on iOS #2300

Open
2 of 5 tasks
l4nk4b3l opened this issue Feb 21, 2024 · 0 comments

Comments

@l4nk4b3l
Copy link

l4nk4b3l commented Feb 21, 2024

Do you want to request a feature or report a bug?

  • Bug
  • Feature
  • Question

Did you test against the latest CI build?

  • Yes
  • No

Version of ClosedXML

>= 0.101.0

What is the current behavior?

App crashes when opening a workbook on iOS.
App also crashes when calling .AdjustToContents(); on iOS.

What is the expected behavior or new feature?

Opening a Worksheet should not crash.
Calling AdjustToContents() should not crash. It should calculate the correct size.

Is this a regression from the previous version?

Works in 0.100.3 but not in >= 101.0.0

Reproducibility

A sample can be found https://github.com/l4nk4b3l/closedxml-dllnotfound

// Creating an Excel 
var documents = Environment.GetFolderPath (Environment.SpecialFolder.MyDocuments);
string path = Path.Combine(documents, "HelloWorld.xlsx");
    
using (var workbook = new XLWorkbook())
{
    var worksheet = workbook.Worksheets.Add("Sample Sheet");
    worksheet.Cell("A1").Value = "Hello World!";
    // Uncomment this line for crash
    // worksheet.Column(1).AdjustToContents();
    worksheet.Cell("A2").FormulaA1 = "=MID(A1, 7, 5)";
    workbook.SaveAs(path);
}

// Reading the Excel crashes since >= 0.101.0
using (var workbook = new XLWorkbook(File.OpenRead(path)))
{
    Debug.WriteLine(workbook.Worksheet(1).Cell("A1").Value.GetText());
}
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