I have an iOS app which I'm trying to ship to the Mac App Store.
The app was created for iOS 7, but has been kept up to date. I mention it because it has an old project file.
I'm able to build and run the app on my Silicon Mac fine.
However, when I archive with target "My Mac (Designed for iPad)", I get an archive of type "iOS App Archive".
Here's what I've checked:
Target is set to “My Mac (Designed for iPad)”
“SUPPORTS_MACCATALYST” is set to “YES” on the main target and the extensions
“MACOSX_DEPLOYMENT_TARGET” set to “14.6” on the main target and the extensions
“Supported Platforms” is set to “iOS” except for Watch targets and targets which also run on watchOS.
If I filter the build logs for "Catalyst" there are no results. If I filter them for "Mac" there are no relevant results.
Clean build folder
Delete derived data
Restart Xcode
Xcode Version 16.2 (16C5032a)
macOS Version 15.2
Other notes:
The app has a widget extension and an intents extension and two custom frameworks
When I try and archive for Mac using Xcode Cloud, it runs for 90 minutes and then fails. I suspect it’s related to this issue but I’m not sure.
I’ve had issues like this solved with DTS before, but that isn’t allowed any more.
Any help would be greatly appreciated.
Post
Replies
Boosts
Views
Activity
I'm not able to build and run on watchOS.
I see this error:
The device “Apple Watch” is not available because there was an error downloading its symbols. Please see the underlying error message for more information.
I believe this is the "underlying error"
Apple Watch via iPhone: Failed with HTTP status 403: forbidden
Domain: DVTACSURLSessionDelegate
Code: 1
User Info: {
DVTDeviceErrorIsProxied = 1;
DVTErrorCreationDateKey = "2022-10-17 13:02:51 +0000";
}
--
System Information
macOS Version 12.6 (Build 21G115)
Xcode 14.1 (21527.1) (Build 14B5033e)
Timestamp: 2022-10-17T14:02:51+01:00
✅ dev mode enabled on watch
✅ dev mode enabled on phone
✅ watch rebooted
✅ phone rebooted
✅ Mac rebooted
✅ FB filed: FB11697786
❌ Able to progress Apple Watch app
In development I've switched to NSPersistentCloudKitContainer and have begun the terrifying process of trying to test as many scenarios as possible to make sure nobody loses any data.
During some testing I saw an error like this:
<CKError 0x28033a310: "Partial Failure" (2/1011); "Failed to modify some records"; uuid = B6015357-50E0-40B3-949F-1557F59A23DB; container ID = "iCloud.com.xxxx.yyyyyy"; partial errors: {
F023EFDF-B9DE-4C17-872B-01C34C0DF129:(com.apple.coredata.cloudkit.zone:defaultOwner) = <CKError 0x280266fa0: "Invalid Arguments" (12/2006); server message = "Cannot create or modify field 'CDsomeField' in record 'CDsomeRecord' in production schema"; uuid = B6015357-50E0-40B3-949F-1557F59A23DB>
... 399 "Batch Request Failed" CKError's omited ...
}>
I was able to fix this, but it was only affecting some scenarios and if this had happened to a real user they (and I) would never have known about the problem, and their data would not have synced to CloudKit.
If the store fails to load you get an error, but if it loads but doesn't sync you don't.
So my question is: is there a way to receive these kind of errors in code?
I have looked for notifications and delegate methods and I can't find any.
I am using `HKLiveWorkoutBuilder` & `HKWorkoutRouteBuilder` to track a workout on Apple Watch.when calling:[workoutBuilder finishWorkoutWithCompletion:^(HKWorkout * _Nullable workout, NSError * _Nullable error) {
}];The returned workout object does not include the distance that the user travelled:(lldb) po workout.totalDistance
nilHowever the route is saved correctly.Given that `.totalDistance` is read only, how should I set the distance of the workout in watchOS 5?https://www.dropbox.com/s/yml1npdlh0jcow8/9LgSA.jpg?dl=0https://www.dropbox.com/s/r7t03xqswkwqj6z/xnTG0.jpg?dl=0
I'm excited to implement `handleActiveWorkoutRecovery` as we have a lot of users who complain of lost data.I have a couple of questions though:1) How can I test this method and check we are restoring everything correctly?2) Is it possible to restore the route builder?Thanks in advanceLewis
In the past few months I get about one person a week who contacts me and tells me that they made an IAP and the money was taken, but they didn't get the functionality. When they do retore it says there is no record of purchase.They send me a screenshot of their recipt. Of course they could fake this, but I am inclined to give the benefit of the doubt.One thing I have noticed is that it is always a PayPal reciept that is sent.Has anyone else noticed anything like this?