You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
AppleAppBuilder doesn't embed test data from subdirectories #52104
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:
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)
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...
Activity
directhex commentedon May 3, 2021
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
directhex commentedon May 3, 2021
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...
directhex commentedon May 3, 2021
Xcode is cursed
Bundle test data from subdirectories in AppleAppBuilder (#52372)