Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xcode 14/Ventura Beta5 issue with compiling carekitstore #665

Open
wmalloc opened this issue Aug 9, 2022 · 10 comments
Open

Xcode 14/Ventura Beta5 issue with compiling carekitstore #665

wmalloc opened this issue Aug 9, 2022 · 10 comments

Comments

@wmalloc
Copy link

wmalloc commented Aug 9, 2022

Screenshot 2022-08-08 at 9 51 40 PM

@gavirawson-apple
Copy link
Collaborator

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?

@cbaker6
Copy link
Contributor

cbaker6 commented Nov 16, 2022

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.

@zxcheergo
Copy link

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

@gavirawson-apple
Copy link
Collaborator

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

@rachelnaidich
Copy link

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

@Hengyu
Copy link

Hengyu commented Jan 10, 2023

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

@gavirawson-apple
Copy link
Collaborator

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.

@cbaker6
Copy link
Contributor

cbaker6 commented Jan 13, 2023

@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

@gavirawson-apple
Copy link
Collaborator

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

@Hengyu
Copy link

Hengyu commented Jan 21, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants