Xcode 13 beta Error with Pencil kit

There is error when launch app which use Pencil kit When I try with iOS15 simulator or Xcode editor preview it crashed

Here is error message
Library not loaded: /usr/lib/swift/libswiftPencilKit.dylibI
  Reason: tried: '/Users/.../Products/Debug-iphonesimulator/libswiftPencilKit.dylib' (no such file)

There is no problem with iOS14.5 simulator

Accepted Reply

Go to -> Target -> Build Settings and search for iOS Deployment Target, and switch it to iOS 15.

Now, it works!

  • So I am encountering this as well but the app I work on we need to support back to iOS 13 .. is there some other solution to this? Seems like maybe it is a bug

Add a Comment

Replies

The actually iPhone ( iOS 15) has crashed too I think It's not only Xcode 13's but also iOS15

Go to -> Target -> Build Settings and search for iOS Deployment Target, and switch it to iOS 15.

Now, it works!

  • So I am encountering this as well but the app I work on we need to support back to iOS 13 .. is there some other solution to this? Seems like maybe it is a bug

Add a Comment

Hi, I'm still encountering the same issue with Xcode13 beta 5, crash at app launch. Setting iOS 15 as minimum deployment target is a workaround that works, but I hope next beta (or GM) version of Xcode13 will fix that, because we cannot just set iOS 15 as deployment target. There's some open radar for this issue?

  • I'm also seeing this same crash at app launch or when attempting to run tests. Setting iOS 15 as minimum deployment target is not working for us. The code that references the PencilKit framework is apart of an internal framework we install as a Cocoapod.

Add a Comment