I have a project I've been working off of for a few years now that makes use of local Swift Packages. In my workspace, I have a "Kit" project that generates a framework using several local Swift Packages as dependencies.
In Xcode 12, the local Swift packages resolve correctly and compiles, but each beta of Xcode 13 gives me the error:
"[ProjectName].xcodeproj Missing package product '[LocalSwiftPackage]'"
Clearing the package cache, derived data, or restarting the application does not resolve the issue. Only Swift Packages that are remotely loaded from a URL are compiled correctly.
Using local packages to separate module code, while still being able to edit in the same project, has been essential to my workflow and would hate to see Xcode 13 release with these breaking changes, and I have not seen this issue listed in the known issues for the Xcode 13 release notes.
Has anyone else experienced this issue or found a workaround?
Post
Replies
Boosts
Views
Activity
I have an app that I have been distributing on the Mac App Store for the past year. When testing this build, I have always been able to run a debug configuration of the app from Xcode, sign in with a sandbox Apple ID account, and test the features of the app locally. The app would initially attempt to launch from Xcode, immediately close, then prompt me to login with an Apple ID. I would then enter a sandbox environment Apple ID, and the app would re-launch. I could then close the app, run from Xcode, and debug the app normally and be able to attach the debugger to view output.
Today when preparing to release a new version to the Mac App Store, I went through the normal routine of trying to test the app locally using the sandbox environment to validate features. I found that I now get an error message stating:
“[My App]” is damaged and can’t be opened. Delete “[My App]” and download it again from the App Store.
Noting that I had previously submitted using Xcode 12.5, and was now using Xcode 13, I loaded up Xcode 12.5 and went back to the last commit on my branch that was successfully tested locally and submitted to the Mac App Store to rule out any new changes causing the issue. Reverting back has yielded the same result, so I can rule out both code changes causing this, and a change in Xcode versions.
I am currently running macOS Big Sur 11.5.2 on a Mac Pro 2019. I have also checked the Security & Privacy pane of the Preferences app to see if I need to allow access to my app, but the button that usually appears to allow an app bypass validation checks never appears.
How can I fix this issue and test my macOS app locally before submitting to the Mac App Store as I have previously?
I am developing a macOS and iOS application that uses NSPersistentCloudKitContainer to sync data across devices. For about an hour, I was able to successfully save records to the CoreData container and have them sync successfully with CloudKit. After further testing, I began receiving errors similar to the following:
CoreData: error: CoreData+CloudKit: -[NSCloudKitMirroringDelegate _exportFinishedWithResult:exporter:](1347): <PFCloudKitExporter: 0x28034d540>: Export failed with error: <CKError 0x282fbf4b0: "Service Unavailable" (6/2022); "Request failed with http status code 503"; uuid = 14B9CBAC-8636-4AD8-9A80-82B1705E08D9; Retry after 71.0 seconds>
Now any device that tries to save records to CloudKit will get this error and I am unable to continue developing my iCloud sync features. Note that I am currently in Development environment with a new iCloud container, and do not yet have any users or pushed these changes to production.
I have tried the following:
Reinstall the application
Restart all devices
Logging out and back into iCloud from devices
Updating my AppleID to use a single new iCloud container identifier from the developer portal as suggested in a comment here: https://developer.apple.com/forums/thread/694496 and updating all my provisioning profiles
Reset the development environment from the CloudKit dashboard
After trying all the above, this issue still persists and am unable to continue development using CloudKit.
Searching around it seems this issue has been encountered by other users, but there does not seem to be a fix I can make on my end to resolve it.
I will also mention I have other iCloud container identifiers for this app that I used previously trying to integrate this app with iCloud. I created a new container identifier with my latest approach to sync and am unsure if those older containers are somehow causing issues.
Please help!