uxcam / ios-sdk

This is the UXCam iOS SDK
9 stars 4 forks source link

Swift Previews broken when integrating UXCam #4

Closed cerupcat closed 1 year ago

cerupcat commented 3 years ago

For some reason, when adding UXCam (via SPM or cocoapods), Swift Previews errors with a timeout error Updating took more than 5 seconds.

It seems to be related to some swizzling UXCam does internally that breaks previews. Removing UXCam entirely fixes the issue.

richardgroves commented 3 years ago

@cerupcat Thanks for the report. I was able to repeat the problem, and we think we've found a fix.

Can you try this beta version of the SDK and see if it solves it for you too? Replace the XCFramework folder with the contents of this ZIP and do a full clean and rebuild, then try the preview again.

UXCam.xcframework-3.3.4-beta1.zip

cerupcat commented 3 years ago

Thanks for the quick follow up @richardgroves.

It does look like things are working with this beta version.

richardgroves commented 3 years ago

Thanks! I'll put the changes through into testing and they'll be in the next release if nothing problematic shows up (shouldn't do as the change is relatively simple and specific).