馃寛
We've shipped a playground with a framework embedded using CocoaPods. It worked very well and then we started getting reports from users not being able to execute it. When digging deeper it seems there's some regression between 1.5 and 1.4. I'm aware of the fact CocoaPods never had a mission statement of fully supporting Playgrounds, but this worked in the previous version so thought it would be good to report.
There are some reports of this in #5334 (at the end) but since its a very old issue I thought it would be good to focus on the specific regression.
When pod install
with CocoaPods 1.4.0, the Playground work as expected.
When pod install
with CocoaPods 1.5.0, the Playground doesn't work and outputs module errors.
Work as expected.
Outputs lookup errors similar to:
Playground execution failed:
error: Couldn't lookup symbols:
__T010RealmSwift0A0C13ConfigurationVAE10Foundation3URLVSg04fileE0_SSSg18inMemoryIdentifierAA04SyncC0VSg04syncC0AF4DataVSg13encryptionKeySb8readOnlys6UInt64V13schemaVersionyAA9MigrationV_AWtcSg14migrationBlockSb06deletea2IfT6NeededSbSi_SitcSg21shouldCompactOnLaunchSayAA6ObjectCmGSg11objectTypestcfcfA7_
__T010RealmSwift0A0C13ConfigurationVAE10Foundation3URLVSg04fileE0_SSSg18inMemoryIdentifierAA04SyncC0VSg04syncC0AF4DataVSg13encryptionKeySb8readOnlys6UInt64V13schemaVersionyAA9MigrationV_AWtcSg14migrationBlockSb06deletea2IfT6NeededSbSi_SitcSg21shouldCompactOnLaunchSayAA6ObjectCmGSg11objectTypestcfC
__T010RealmSwift0A0C13ConfigurationVAE10Foundation3URLVSg04fileE0_SSSg18inMemoryIdentifierAA04SyncC0VSg04syncC0AF4DataVSg13encryptionKeySb8readOnlys6UInt64V13schemaVersionyAA9MigrationV_AWtcSg14migrationBlockSb06deletea2IfT6NeededSbSi_SitcSg21shouldCompactOnLaunchSayAA6ObjectCmGSg11objectTypestcfcfA2_
__T010RealmSwift0A0C13ConfigurationVAE10Foundation3URLVSg04fileE0_SSSg18inMemoryIdentifierAA04SyncC0VSg04syncC0AF4DataVSg13encryptionKeySb8readOnlys6UInt64V13schemaVersionyAA9MigrationV_AWtcSg14migrationBlockSb06deletea2IfT6NeededSbSi_SitcSg21shouldCompactOnLaunchSayAA6ObjectCmGSg11objectTypestcfcfA4_
__T010RealmSwift0A0C13ConfigurationVAE10Foundation3URLVSg04fileE0_SSSg18inMemoryIdentifierAA04SyncC0VSg04syncC0AF4DataVSg13encryptionKeySb8readOnlys6UInt64V13schemaVersionyAA9MigrationV_AWtcSg14migrationBlockSb06deletea2IfT6NeededSbSi_SitcSg21shouldCompactOnLaunchSayAA6ObjectCmGSg11objectTypestcfcfA6_
__T010RealmSwift0A0C13ConfigurationVAE10Foundation3URLVSg04fileE0_SSSg18inMemoryIdentifierAA04SyncC0VSg04syncC0AF4DataVSg13encryptionKeySb8readOnlys6UInt64V13schemaVersionyAA9MigrationV_AWtcSg14migrationBlockSb06deletea2IfT6NeededSbSi_SitcSg21shouldCompactOnLaunchSayAA6ObjectCmGSg11objectTypestcfcfA8_
__T010RealmSwift0A0C13ConfigurationVAE10Foundation3URLVSg04fileE0_SSSg18inMemoryIdentifierAA04SyncC0VSg04syncC0AF4DataVSg13encryptionKeySb8readOnlys6UInt64V13schemaVersionyAA9MigrationV_AWtcSg14migrationBlockSb06deletea2IfT6NeededSbSi_SitcSg21shouldCompactOnLaunchSayAA6ObjectCmGSg11objectTypestcfcfA_
__T010RealmSwift0A0CA2C13ConfigurationV13configuration_tKcfC
__T010RealmSwift0A0CMa
__T010RealmSwift0A0C13ConfigurationVAE10Foundation3URLVSg04fileE0_SSSg18inMemoryIdentifierAA04SyncC0VSg04syncC0AF4DataVSg13encryptionKeySb8readOnlys6UInt64V13schemaVersionyAA9MigrationV_AWtcSg14migrationBlockSb06deletea2IfT6NeededSbSi_SitcSg21shouldCompactOnLaunchSayAA6ObjectCmGSg11objectTypestcfcfA1_
__T010RealmSwift0A0C13ConfigurationVAE10Foundation3URLVSg04fileE0_SSSg18inMemoryIdentifierAA04SyncC0VSg04syncC0AF4DataVSg13encryptionKeySb8readOnlys6UInt64V13schemaVersionyAA9MigrationV_AWtcSg14migrationBlockSb06deletea2IfT6NeededSbSi_SitcSg21shouldCompactOnLaunchSayAA6ObjectCmGSg11objectTypestcfcfA3_
__T010RealmSwift0A0C13ConfigurationVAE10Foundation3URLVSg04fileE0_SSSg18inMemoryIdentifierAA04SyncC0VSg04syncC0AF4DataVSg13encryptionKeySb8readOnlys6UInt64V13schemaVersionyAA9MigrationV_AWtcSg14migrationBlockSb06deletea2IfT6NeededSbSi_SitcSg21shouldCompactOnLaunchSayAA6ObjectCmGSg11objectTypestcfcfA5_
Not relevant
Here are the resulting projects on both CocoaPods 1.4.0 and CocoaPods 1.5.0.
1.4.0:
https://www.dropbox.com/s/7tr0tdrwf9c21my/regression-1.4.0.zip?dl=0
1.5.0:
https://www.dropbox.com/s/9dgt62wl9h5v4df/regression-1.5.0.zip?dl=0
I've tried using xcodeproj project-diff
as suggested but couldn't get it to work. I also wanted to potentially create an integration tests in the other repo but couldn't find any instructions and wasn't sure if it's just "throwing it in before/after folders"
Can you just use plain old diff
instead of xcodeproj project-diff
?
The main difference I'm seeing is a missing "Copy Pods Resources" phase in 1.5.0 for the generated workspace. Wondering if that correlates?
95d94
< F581619CA4AB63AFAD98F720 /* [CP] Copy Pods Resources */,
191,205d189
< F581619CA4AB63AFAD98F720 /* [CP] Copy Pods Resources */ = {
< isa = PBXShellScriptBuildPhase;
< buildActionMask = 2147483647;
< files = (
< );
< inputPaths = (
< );
< name = "[CP] Copy Pods Resources";
< outputPaths = (
< );
< runOnlyForDeploymentPostprocessing = 0;
< shellPath = /bin/sh;
< shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-RealmPlayground/Pods-RealmPlayground-resources.sh\"\n";
< showEnvVarsInLog = 0;
< };
Also noticed the Pods-
script has some differences related to frameworks:
In the generated schemes the HEADER_SEARCH_PATHS
seems to be missing:
Pods/Target Support Files/RealmSwift/RealmSwift.xcconfig (same for Realm/Realm.xcconfig):
5d4
< HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Public"
There are also some more differences in the project.pbxproj
generated in the Pods Xcode project:
1097,1128c1097
< 00C73FE08A22454CDD24B2A2368010AC /* Debug */ = {
< isa = XCBuildConfiguration;
< baseConfigurationReference = C6929049B11116AB87430A14D37D4AEB /* Realm.xcconfig */;
< buildSettings = {
< CODE_SIGN_IDENTITY = "";
< "CODE_SIGN_IDENTITY[sdk=appletvos*]" = "";
< "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
< "CODE_SIGN_IDENTITY[sdk=watchos*]" = "";
< CONFIGURATION_BUILD_DIR = "$PODS_CONFIGURATION_BUILD_DIR";
< CURRENT_PROJECT_VERSION = 1;
< DEFINES_MODULE = YES;
< DYLIB_COMPATIBILITY_VERSION = 1;
< DYLIB_CURRENT_VERSION = 1;
< DYLIB_INSTALL_NAME_BASE = "@rpath";
< GCC_PREFIX_HEADER = "Target Support Files/Realm/Realm-prefix.pch";
< INFOPLIST_FILE = "Target Support Files/Realm/Info.plist";
< INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
< IPHONEOS_DEPLOYMENT_TARGET = 8.0;
< LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
< MODULEMAP_FILE = "Target Support Files/Realm/Realm.modulemap";
< PRODUCT_NAME = Realm;
< SDKROOT = iphoneos;
< SKIP_INSTALL = YES;
< SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) ";
< SWIFT_VERSION = 4.0;
< TARGETED_DEVICE_FAMILY = "1,2";
< VERSIONING_SYSTEM = "apple-generic";
< VERSION_INFO_PREFIX = "";
< };
< name = Debug;
< };
< 13A95306D85E4471AB6BE665B012E60A /* Debug */ = {
---
> 08638A96A528B1EC32DE62F8A728389D /* Release */ = {
1159a1129
> CODE_SIGNING_ALLOWED = NO;
1162c1132,1133
< DEBUG_INFORMATION_FORMAT = dwarf;
---
> DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
> ENABLE_NS_ASSERTIONS = NO;
1164d1134
< ENABLE_TESTABILITY = YES;
1166d1135
< GCC_DYNAMIC_NO_PIC = NO;
1168d1136
< GCC_OPTIMIZATION_LEVEL = 0;
1170,1171c1138
< "POD_CONFIGURATION_DEBUG=1",
< "DEBUG=1",
---
> "POD_CONFIGURATION_RELEASE=1",
1181,1182c1148
< MTL_ENABLE_DEBUG_INFO = YES;
< ONLY_ACTIVE_ARCH = YES;
---
> MTL_ENABLE_DEBUG_INFO = NO;
1184d1149
< PROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/;
1186d1150
< SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
1189c1153
< name = Debug;
---
> name = Release;
1191c1155
< 28888B9D7983B048052AA070DC891460 /* Debug */ = {
---
> 086DD8F9CCFC097C5CC023B64D222F7A /* Debug */ = {
1193c1157
< baseConfigurationReference = FC79D743A9862E3974A3F12FE447AEAD /* RealmSwift.xcconfig */;
---
> baseConfigurationReference = A8D866AEF46CFED319A6248EAA49CBFE /* Pods-RealmPlayground.debug.xcconfig */;
1194a1159,1160
> ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO;
> CLANG_ENABLE_OBJC_WEAK = NO;
1205,1206c1171
< GCC_PREFIX_HEADER = "Target Support Files/RealmSwift/RealmSwift-prefix.pch";
< INFOPLIST_FILE = "Target Support Files/RealmSwift/Info.plist";
---
> INFOPLIST_FILE = "Target Support Files/Pods-RealmPlayground/Info.plist";
1208c1173
< IPHONEOS_DEPLOYMENT_TARGET = 8.0;
---
> IPHONEOS_DEPLOYMENT_TARGET = 11.0;
1210,1211c1175,1181
< MODULEMAP_FILE = "Target Support Files/RealmSwift/RealmSwift.modulemap";
< PRODUCT_NAME = RealmSwift;
---
> MACH_O_TYPE = staticlib;
> MODULEMAP_FILE = "Target Support Files/Pods-RealmPlayground/Pods-RealmPlayground.modulemap";
> OTHER_LDFLAGS = "";
> OTHER_LIBTOOLFLAGS = "";
> PODS_ROOT = "$(SRCROOT)";
> PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}";
> PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
1214c1184
< SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) ";
---
> SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
1216d1185
< SWIFT_VERSION = 4.0;
1223c1192
< 59109E330F89B2010FFCAE23C79EB495 /* Debug */ = {
---
> 090A658A821D8E5E31C9F5FAA120ED99 /* Release */ = {
1225c1194
< baseConfigurationReference = A8D866AEF46CFED319A6248EAA49CBFE /* Pods-RealmPlayground.debug.xcconfig */;
---
> baseConfigurationReference = B0D03206309FE25C6CBBF83CFE69DA8A /* Pods-RealmPlayground.release.xcconfig */;
1226a1196
> ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO;
1248c1218
< PRODUCT_NAME = Pods_RealmPlayground;
---
> PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
1251c1221,1253
< SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
---
> SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
> TARGETED_DEVICE_FAMILY = "1,2";
> VALIDATE_PRODUCT = YES;
> VERSIONING_SYSTEM = "apple-generic";
> VERSION_INFO_PREFIX = "";
> };
> name = Release;
> };
> 32008234CE4EF07062D81ABA946D3BE8 /* Debug */ = {
> isa = XCBuildConfiguration;
> baseConfigurationReference = FC79D743A9862E3974A3F12FE447AEAD /* RealmSwift.xcconfig */;
> buildSettings = {
> CODE_SIGN_IDENTITY = "";
> "CODE_SIGN_IDENTITY[sdk=appletvos*]" = "";
> "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
> "CODE_SIGN_IDENTITY[sdk=watchos*]" = "";
> CONFIGURATION_BUILD_DIR = "$PODS_CONFIGURATION_BUILD_DIR";
> CURRENT_PROJECT_VERSION = 1;
> DEFINES_MODULE = YES;
> DYLIB_COMPATIBILITY_VERSION = 1;
> DYLIB_CURRENT_VERSION = 1;
> DYLIB_INSTALL_NAME_BASE = "@rpath";
> GCC_PREFIX_HEADER = "Target Support Files/RealmSwift/RealmSwift-prefix.pch";
> INFOPLIST_FILE = "Target Support Files/RealmSwift/Info.plist";
> INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
> IPHONEOS_DEPLOYMENT_TARGET = 8.0;
> LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
> MODULEMAP_FILE = "Target Support Files/RealmSwift/RealmSwift.modulemap";
> PRODUCT_MODULE_NAME = RealmSwift;
> PRODUCT_NAME = RealmSwift;
> SDKROOT = iphoneos;
> SKIP_INSTALL = YES;
> SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) ";
1252a1255
> SWIFT_VERSION = 4.0;
1259c1262
< 61253D6693071B8E9FE87A9E7677273D /* Release */ = {
---
> 3F1EEE2DBEC27633F77B23A15E23FEC5 /* Release */ = {
1278a1282
> PRODUCT_MODULE_NAME = Realm;
1291c1295
< 8E8333274F4AB64785B04AB5B2A37231 /* Release */ = {
---
> 9DAE5233986C01ADB6E67169C53A3FD2 /* Debug */ = {
1322a1327
> CODE_SIGNING_ALLOWED = NO;
1325,1326c1330
< DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
< ENABLE_NS_ASSERTIONS = NO;
---
> DEBUG_INFORMATION_FORMAT = dwarf;
1327a1332
> ENABLE_TESTABILITY = YES;
1328a1334
> GCC_DYNAMIC_NO_PIC = NO;
1329a1336
> GCC_OPTIMIZATION_LEVEL = 0;
1331c1338,1339
< "POD_CONFIGURATION_RELEASE=1",
---
> "POD_CONFIGURATION_DEBUG=1",
> "DEBUG=1",
1341c1349,1350
< MTL_ENABLE_DEBUG_INFO = NO;
---
> MTL_ENABLE_DEBUG_INFO = YES;
> ONLY_ACTIVE_ARCH = YES;
1343d1351
< PROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/;
1344a1353
> SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
1347c1356
< name = Release;
---
> name = Debug;
1349c1358
< B34D116852036F762D1A6699BFF2D60D /* Release */ = {
---
> D6FAD009C52D4B777E7B315150E4C644 /* Debug */ = {
1351c1360
< baseConfigurationReference = FC79D743A9862E3974A3F12FE447AEAD /* RealmSwift.xcconfig */;
---
> baseConfigurationReference = C6929049B11116AB87430A14D37D4AEB /* Realm.xcconfig */;
1363,1364c1372,1373
< GCC_PREFIX_HEADER = "Target Support Files/RealmSwift/RealmSwift-prefix.pch";
< INFOPLIST_FILE = "Target Support Files/RealmSwift/Info.plist";
---
> GCC_PREFIX_HEADER = "Target Support Files/Realm/Realm-prefix.pch";
> INFOPLIST_FILE = "Target Support Files/Realm/Info.plist";
1368,1369c1377,1379
< MODULEMAP_FILE = "Target Support Files/RealmSwift/RealmSwift.modulemap";
< PRODUCT_NAME = RealmSwift;
---
> MODULEMAP_FILE = "Target Support Files/Realm/Realm.modulemap";
> PRODUCT_MODULE_NAME = Realm;
> PRODUCT_NAME = Realm;
1373d1382
< SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
1376d1384
< VALIDATE_PRODUCT = YES;
1380c1388
< name = Release;
---
> name = Debug;
1382c1390
< B53B6B1EB967C64764DD8415F875EF85 /* Release */ = {
---
> F718A2D3FD46C6044F7FFE74005A1136 /* Release */ = {
1384c1392
< baseConfigurationReference = B0D03206309FE25C6CBBF83CFE69DA8A /* Pods-RealmPlayground.release.xcconfig */;
---
> baseConfigurationReference = FC79D743A9862E3974A3F12FE447AEAD /* RealmSwift.xcconfig */;
1386d1393
< CLANG_ENABLE_OBJC_WEAK = NO;
1397c1404,1405
< INFOPLIST_FILE = "Target Support Files/Pods-RealmPlayground/Info.plist";
---
> GCC_PREFIX_HEADER = "Target Support Files/RealmSwift/RealmSwift-prefix.pch";
> INFOPLIST_FILE = "Target Support Files/RealmSwift/Info.plist";
1399c1407
< IPHONEOS_DEPLOYMENT_TARGET = 11.0;
---
> IPHONEOS_DEPLOYMENT_TARGET = 8.0;
1401,1407c1409,1411
< MACH_O_TYPE = staticlib;
< MODULEMAP_FILE = "Target Support Files/Pods-RealmPlayground/Pods-RealmPlayground.modulemap";
< OTHER_LDFLAGS = "";
< OTHER_LIBTOOLFLAGS = "";
< PODS_ROOT = "$(SRCROOT)";
< PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}";
< PRODUCT_NAME = Pods_RealmPlayground;
---
> MODULEMAP_FILE = "Target Support Files/RealmSwift/RealmSwift.modulemap";
> PRODUCT_MODULE_NAME = RealmSwift;
> PRODUCT_NAME = RealmSwift;
1409a1414
> SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) ";
1410a1416
> SWIFT_VERSION = 4.0;
1424,1425c1430,1431
< 13A95306D85E4471AB6BE665B012E60A /* Debug */,
< 8E8333274F4AB64785B04AB5B2A37231 /* Release */,
---
> 9DAE5233986C01ADB6E67169C53A3FD2 /* Debug */,
> 08638A96A528B1EC32DE62F8A728389D /* Release */,
1433,1434c1439,1440
< 59109E330F89B2010FFCAE23C79EB495 /* Debug */,
< B53B6B1EB967C64764DD8415F875EF85 /* Release */,
---
> 086DD8F9CCFC097C5CC023B64D222F7A /* Debug */,
> 090A658A821D8E5E31C9F5FAA120ED99 /* Release */,
1442,1443c1448,1449
< 00C73FE08A22454CDD24B2A2368010AC /* Debug */,
< 61253D6693071B8E9FE87A9E7677273D /* Release */,
---
> D6FAD009C52D4B777E7B315150E4C644 /* Debug */,
> 3F1EEE2DBEC27633F77B23A15E23FEC5 /* Release */,
1451,1452c1457,1458
< 28888B9D7983B048052AA070DC891460 /* Debug */,
< B34D116852036F762D1A6699BFF2D60D /* Release */,
---
> 32008234CE4EF07062D81ABA946D3BE8 /* Debug */,
> F718A2D3FD46C6044F7FFE74005A1136 /* Release */,
The removal of the script phase is probably OK. If there are no resources to copy then the phase is not needed. The rest I have to investigate.
HEADER_SEARCH_PATH missing might also be a good lead to follow. Thanks for your time and help, I'll be following here. Let me know if I can provide any more help :)
If you had the paths manually to that Xcconfig can recompile does it work?
Feel free to play around with the xcconfig manually and bring things back, once you pod install
it will be generated so it is OK.
Doesn't seem to help. It's probably one of the other files, perhaps the Pods.xcodeproj/project.pbxproj but just applying these changes breaks the project totally
CODE_SIGNING_ALLOWED
flag seems to be an issue here similarly like in #7606
Post install hook solution for this can be found here
@litmanenPL I've just tried the workaround and it worked. Thanks!
@dnkoutso The workaround suggested above (@litmanenPL) does resolve the issue
# Workaround for Cocoapods issue #7606
post_install do |installer|
installer.pods_project.build_configurations.each do |config|
config.build_settings.delete('CODE_SIGNING_ALLOWED')
config.build_settings.delete('CODE_SIGNING_REQUIRED')
end
end
I had this problem too. You can see my article and my demo here https://medium.com/flawless-app-stories/playground-driven-development-in-swift-cf167489fe7b. My workaround for now is to specify CocoaPods 1.4.0
@dnkoutso Sorry for pinging you (I know how annoying that can be as a maintainer). I just wanted to know if you'd rather keep this open or closed ?
It seems there is a workaround, meaning the issue is probably related to the CODE SIGNING related build settings.
Same issue here,
Using cocoa 1.4.0 didn't fixed it for me.
I believe it also relates to Apples playground runtime linker setup (which is different from the simulator/device runtime.
I've opened a bug at bugreport.apple.com 40873769.
https://openradar.appspot.com/radar?id=4991859277430784
I have experienced this issue again in the latest 1.5.3 COCOAPODS (it has been also noticed here: #7606). It seems that the default CODE_SIGNING_ALLOWED
project flag has to be explicitly set to YES to fix it. Updated post_install
hook:
# Workaround for Cocoapods issue #7689 (and #7606? - to be confirmed)
post_install do |installer|
installer.pods_project.build_configurations.each do |config|
config.build_settings['CODE_SIGNING_ALLOWED'] = 'YES'
config.build_settings.delete('CODE_SIGNING_REQUIRED')
end
end
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
This issue will be auto-closed because there hasn't been any activity for a few months. Feel free to open a new one if you still experience this problem :+1:
AFAIK this issue wasn鈥檛 solved yet :(
the 1.6.0 betas include the changes that were part of the workaround (the code signing suppression) - please try out the latest beta and see if that fixes it for you
Most helpful comment
@dnkoutso The workaround suggested above (@litmanenPL) does resolve the issue