Mergeable Library in XCTest with iOS on Mac Target: 3588 Error

I have an XCTest unit test that's running in an iOS host but with the My Mac (Designed For iPad) Target. Enabling mergeable libraries causes two errors:

Symbol not found: _$s10Foundation3URLV9RVAPIPackE8isGCSURLSbvg

And "loading failed because of an error Error Domain=NSCocoaErrorDomain Code=3588" for the Test bundle because one of the frameworks that's supposed to be merged couldn't be loaded.

Disabling mergeable libraries fixes it. It also works with mergeable libraries enabled but with a regular simulator target. So not sure if I'm missing something or if I need to disable mergeable libraries now:/

I’m not 100% sure what’s going on here, but consider this:

% swift demangle '_$s10Foundation3URLV9RVAPIPackE8isGCSURLSbvg'
_$s10Foundation3URLV9RVAPIPackE8isGCSURLSbvg ---> (extension in RVAPIPack):Foundation.URL.isGCSURL.getter : Swift.Bool

The missing symbol isn’t from Foundation proper, but rather from an extension to Foundation’s URL type provided by the RVAPIPack module.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Thanks for the reply! And yeah, I had noticed that but it didn't really get me anywhere. I ended up abandoning the approach.

When I commented out the module the next merged module would throw an error. And the crux really was that it worked in the regular sim or with the Mac target and mergeable libraries turned off so I felt like I'd be unlikely to really resolve it:/

Mergeable Library in XCTest with iOS on Mac Target: 3588 Error
 
 
Q