google-ar / arcore-ios-sdk

ARCore SDK for iOS
https://developers.google.com/ar/
Apache License 2.0
283 stars 84 forks source link

ARCore/AugmentedFaces causes SwiftUI previews to crash #103

Open kamil-ochel opened 5 months ago

kamil-ochel commented 5 months ago

Hi!

A project I'm working on is having issues with SwiftUI previews in Xcode. When the project includes ARCore/AugmentedFaces v 1.43.0 all previews stop working with an "Cannot preview in this file: Target Crashed" message.

Zrzut ekranu 2024-06-5 o 10 33 53 (2)

The error appears on Xcode 15.4, 15.3, 15.1 and 14.3.1.

ARCore is being pulled in as a Cocoapods dependency.

Removing the dependency makes the previews work again just fine.