mattgallagher / CwlPreconditionTesting

A Mach exception handler that allows Swift precondition failures to be caught and tested.
ISC License
175 stars 46 forks source link

Support building with iOS and tvOS device SDKs (or other platforms with non x86_64 CPU) #18

Closed ikesyo closed 4 years ago

ikesyo commented 5 years ago

Closes #17.

ikesyo commented 4 years ago

@mattgallagher Could you take a look?

superarts commented 4 years ago

Would this fix a _catchExceptionOfKind issue? I'm seeing this when I added Quick/Nimble to Xcode 11 via SPM:

Undefined symbols for architecture x86_64:
  "_catchExceptionOfKind", referenced from:
      CwlCatchException.(catchReturnTypeConverter in _841BEC3F94220F0DFD4EA4E9DDB3DC93)<A where A: __C.NSException>(_: A.Type, block: () -> ()) -> A? in CwlCatchException.o
ikesyo commented 4 years ago

Thanks @mattgallagher

mattgallagher commented 4 years ago

Would this fix a _catchExceptionOfKind issue? I'm seeing this when I added Quick/Nimble to Xcode 11 via SPM:

Undefined symbols for architecture x86_64:
  "_catchExceptionOfKind", referenced from:
      CwlCatchException.(catchReturnTypeConverter in _841BEC3F94220F0DFD4EA4E9DDB3DC93)<A where A: __C.NSException>(_: A.Type, block: () -> ()) -> A? in CwlCatchException.o

This is fixed in 2.0.0 as described here:

https://github.com/mattgallagher/CwlPreconditionTesting/issues/16#issuecomment-546559637