CareKit icon indicating copy to clipboard operation
CareKit copied to clipboard

Xcode 14/Ventura Beta5 issue with compiling carekitstore

Open wmalloc opened this issue 3 years ago • 10 comments

Screenshot 2022-08-08 at 9 51 40 PM

wmalloc avatar Aug 09 '22 04:08 wmalloc

I'm not seeing this issue on my end. Can you share your configuration (MacOS version, Xcode version, and CareKit branch)?

Of note - it also looks the CareKit SPM package is being built here, is that intentional?

gavirawson-apple avatar Sep 02 '22 20:09 gavirawson-apple

When building a project that uses CareKit (latest commit on main) via SPM on macOS Ventura, the CareKitStore produces the following error:

image

This error doesn't occur when building on macOS Monterey using Xcode 14.1.

Though apps can still build and run with this error, Xcode Cloud will not build successfully because of it. To build a successful archive, the build has to be completed manually.

cbaker6 avatar Nov 16 '22 03:11 cbaker6

And How to fix this error? Should we wait for a newer version of CareKit?

zxcheergo avatar Nov 16 '22 06:11 zxcheergo

Thanks for the additional info folks, I'm going to look into this on our end.

gavirawson-apple avatar Nov 16 '22 23:11 gavirawson-apple

I had the same issue, and it seemed to go away when I cloned the package and used it locally instead.

rachelnaidich avatar Nov 22 '22 22:11 rachelnaidich

Hi team, do we have any updates on this issue? This does not block the build & compile for local tests but does block the archive process which prevents us from releasing new versions. @gavirawson-apple

Hengyu avatar Jan 10 '23 06:01 Hengyu

I see, apologies for the inconvenience folks. We're working on this on our end but will need some more time to get it resolved. In the meantime, I recommend embedding the frameworks in Xcode instead of using SPM. From my testing it seems like this issue doesn't appear when going down that route. To embed the frameworks you can follow these instructions, but let me know if you have any questions along the way.

gavirawson-apple avatar Jan 10 '23 16:01 gavirawson-apple

@gavirawson-apple I see this error when using the latest issue which seems to be closer to the problem:

Attempt to add read-only file at path file:///Users/xxxx/Documents/Xcode_Projects/ParseCareKit/DerivedData/ParseCareKit/SourcePackages/checkouts/CareKit/CareKitStore/CareKitStore/CoreData/Migrations/2_0To2_1/2.0_2.1_Mapping.xcmappingmodel/xcmapping.xml read/write. Adding it read-only instead. This will be a hard error in the future; you must specify the NSReadOnlyPersistentStoreOption.

Let me know what you think of the workaround in #679

cbaker6 avatar Jan 13 '23 14:01 cbaker6

Yep I see that on my end too, thanks Corey.

gavirawson-apple avatar Jan 18 '23 00:01 gavirawson-apple

Thanks @gavirawson-apple, l'll try the fallback instructions.

Hengyu avatar Jan 21 '23 06:01 Hengyu