Error in chapter 2 on try anAsset.export(to: aURL)

Facing Error on line 49, not able to export the mesh (Please refer to the image).
Screen Shot 2022-01-09 at 1.51.44 PM

Could you please tell me, how to fix this?

You don’t appear to have a directory named “Shared Playground Data”.

If you look on the right of your playground code, it is trying to save:

file:///Users/kuldipwagh/Documents/Shared/%20Playground%20Data/primitive.obj

(%20 is ascii for the space character)

The playground requires that directory to be named exactly

And hi there! Welcome to the forums :smiley:

1 Like

Ohh. Got it. Thanks!

1 Like