-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
AppleAppBuilder doesn't embed test data from subdirectories #52104
Comments
Tagging subscribers to this area: @bartonjs, @vcsjones, @krwq, @GrabYourPitchforks Issue DetailsSome test assemblies rely on test data being compiled into the published app. One example is System.Security.Cryptography.X509Certificates which copies several test certificates into the AppleAppBuilder currently doesn't copy these data into the app bundle so the tests fail to find the data. Notably, this code doesn't list files in subdirectories: runtime/src/tasks/AppleAppBuilder/Xcode.cs Lines 66 to 69 in 6b71dd2
Fixing that is relatively easy but CMake still flattens out the resource structure in the output Xcode project.
|
Tagging subscribers to this area: @directhex Issue DetailsSome test assemblies rely on test data being compiled into the published app. One example is System.Security.Cryptography.X509Certificates which copies several test certificates into the AppleAppBuilder currently doesn't copy these data into the app bundle so the tests fail to find the data. Notably, this code doesn't list files in subdirectories: runtime/src/tasks/AppleAppBuilder/Xcode.cs Lines 66 to 69 in 6b71dd2
Fixing that is relatively easy but CMake still flattens out the resource structure in the output Xcode project.
|
As best I can determine, CMake isn't entirely to blame here. Xcode flattens all file references in Resources. If you want a directory structure, you need a folder reference, which is handled differently (and obviously means we can't filter the files the way we do in xcode.cs) Will run some experiments |
OK, I've determined that RESOURCE in cmakelists always takes the flattening approach. It seems there's a slightly different MACOSX_PACKAGE_LOCATION which works with subdirectories. Gotta get the syntax right... |
Xcode is cursed |
Some test assemblies rely on test data being compiled into the published app. One example is System.Security.Cryptography.X509Certificates which copies several test certificates into the
TestData
directory.AppleAppBuilder currently doesn't copy these data into the app bundle so the tests fail to find the data.
Notably, this code doesn't list files in subdirectories:
runtime/src/tasks/AppleAppBuilder/Xcode.cs
Lines 66 to 69 in 6b71dd2
Fixing that is relatively easy but CMake still flattens out the resource structure in the output Xcode project.
The text was updated successfully, but these errors were encountered: