Post

Replies

Boosts

Views

Activity

Reply to Opening a New Document from File URL?
Taking a look at openDocument, it says it can open document at a specific URL, provided that its bookmark is resolved. And it does open a file with security-scoped bookmark. func loadBookmarks() async { for bookmarkItem in bookmarkViewModel.bookmarkItems { // resolving a bookmark if let _ = resolveBookmark(bookmarkData: bookmarkItem.bookmarkData) { do { try await openDocument(at: bookmarkItem.bookmarkURL) } catch { print("\(error.localizedDescription)") } } } } struct BookmarkItem: Codable, Hashable { let bookmarkURL: URL let date: Date let bookmarkData: Data let open: Bool }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
May ’25
Reply to First App Submission — Apple can’t see my In-App Purchase product during review (works in debug, not in TestFlight)
Here’s what’s going on: • In debug mode via Xcode, the product shows up correctly, and everything works as expected. • In TestFlight builds, the product doesn’t show up at all — neither for me nor for Apple. • The IAP is currently marked as “Waiting for Review”, not “Ready to Submit”, and it is linked to the current app version in App Store Connect. Pardon me, but what does the TestFlight version of your app have to do with an issue you are currently having? If they say they can't see an in-app purchase product, ask them for a screenshot or two, which they usually do. There is a section where you need to submit an IAP product for review. Have you done that? I happen to have submitted an application to MAS with an IAP today. And I've done that.
Apr ’25
Reply to Clearing Change Count in FileDocument?
I see. I didn't think about it. Thank you, DTS Engineer. I'll try it later. I tried using undoManager with TextEdit under macOS two days ago. The macOS application consistently crashed when I tried to 'redo' it. If I remember correctly, the exact same lines of code didn't crash under iOS.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Apr ’25
Reply to Problems Publishing with User Tracking
I've indicated that I don't use this data for ads, that it's only used for personalization and to understand who saves items. What does that mean? It doesn't sound like a grammatically-correct English sentence. I added the NSUserTrackingUsageDescription property to the info.plist. What does it say?
Topic: Community SubTopic: Apple Developers Tags:
Mar ’25
Reply to Background Audio Recording
I don't think there is a workaround. They tell you when you are allowed to use the background mode. https://developer.apple.com/documentation/xcode/configuring-background-execution-modes If you use the background mode for a different purpose, it seems that you violate the Guideline 2.5.4. Also, if you make an audio recording without user's consent, you may violate Guideline 2.5.14.
Mar ’25
Reply to Guideline 4.0 - Design
Your use of SignInWithAppleButton is not clear. AuthenticationServices lets you find out whether or not the user is able to sign in on their device. In other words, it tells you whether the app is being used by the valid owner of the device. AuthenticationServices does not necessarily disclose user's e-mail address. So why are you using it?
Mar ’25
Reply to Different Build Schemes -> Error: -Onone Swift optimization level to use previews
Hello, Paris and DTS. My sample iOS app doesn't crash if I run it with a simulator or an actual device although the preview canvas shows an error for a selective build scheme. So I am afraid that I have nothing to report to you. I have installed the said profile as shown below. It's hard to locate the one that I need to look for since the list has several dozen items. Yet, based on Today's date, I don't find one. So what's next?
Feb ’25
Reply to Guideline 4.3(a) - Design - Spam - automatic rejection
You are not going to get anywhere by seeking advice here when it comes to getting your app rejected. It's true that the reviewers can get wrong occasionally. So do I and get my software titles rejected occasionally with mistakes on my side. If your app is rejected for the spam reason, listen to the reviewer and ask them questions. If you already have a similar app at App Store or Mac App Store, you are likely to be advised to provide it as an add-on feature to an existing title. If you have sold a similar product to one retailer and are trying to sell a similar one to another retailer, you are not going anywhere. I'm sure you are not telling us the whole story. So, again, read what the reviewer has said. It's up to you to listen to the reviewer and make changes to software.
Topic: Design SubTopic: General Tags:
Jan ’25
Reply to Opening a New Document from File URL?
Taking a look at openDocument, it says it can open document at a specific URL, provided that its bookmark is resolved. And it does open a file with security-scoped bookmark. func loadBookmarks() async { for bookmarkItem in bookmarkViewModel.bookmarkItems { // resolving a bookmark if let _ = resolveBookmark(bookmarkData: bookmarkItem.bookmarkData) { do { try await openDocument(at: bookmarkItem.bookmarkURL) } catch { print("\(error.localizedDescription)") } } } } struct BookmarkItem: Codable, Hashable { let bookmarkURL: URL let date: Date let bookmarkData: Data let open: Bool }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
May ’25
Reply to First App Submission — Apple can’t see my In-App Purchase product during review (works in debug, not in TestFlight)
Here’s what’s going on: • In debug mode via Xcode, the product shows up correctly, and everything works as expected. • In TestFlight builds, the product doesn’t show up at all — neither for me nor for Apple. • The IAP is currently marked as “Waiting for Review”, not “Ready to Submit”, and it is linked to the current app version in App Store Connect. Pardon me, but what does the TestFlight version of your app have to do with an issue you are currently having? If they say they can't see an in-app purchase product, ask them for a screenshot or two, which they usually do. There is a section where you need to submit an IAP product for review. Have you done that? I happen to have submitted an application to MAS with an IAP today. And I've done that.
Replies
Boosts
Views
Activity
Apr ’25
Reply to Can I submit my application, which have not public usage?
It sounds to me that you are trying to publish something that is just a copy of your website, which may go against App Review Guideline 4.2. So what could your app do that your website can't?
Replies
Boosts
Views
Activity
Apr ’25
Reply to Different Build Schemes -> Error: -Onone Swift optimization level to use previews
I have seen somebody else's project where the Preview guy works under the Release build mode. I now presume that this Release mode is just a code of the original Debug mode.
Replies
Boosts
Views
Activity
Apr ’25
Reply to Opening a New Tab with Text in a Document-Based App
Thank you, DTS Engineer. It works. I forgot that I had had the newDocument environment thing 4 days earlier. I'm too old for new things. I didn't know about the tab-opening preference under Desktop & Dock.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’25
Reply to Clearing Change Count in FileDocument?
I see. I didn't think about it. Thank you, DTS Engineer. I'll try it later. I tried using undoManager with TextEdit under macOS two days ago. The macOS application consistently crashed when I tried to 'redo' it. If I remember correctly, the exact same lines of code didn't crash under iOS.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’25
Reply to Not Showing FileOpen with Document-
Thanks a lot, DTS Engineer. I guess defaultLaunchBehavior(_:) is available for macOS 15.0 or higher. I guess I have to switch back to Cocoa with Storyboard since I also need to use TextSelection.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’25
Reply to Problems Publishing with User Tracking
I've indicated that I don't use this data for ads, that it's only used for personalization and to understand who saves items. What does that mean? It doesn't sound like a grammatically-correct English sentence. I added the NSUserTrackingUsageDescription property to the info.plist. What does it say?
Topic: Community SubTopic: Apple Developers Tags:
Replies
Boosts
Views
Activity
Mar ’25
Reply to This bundle is invalid - Your archive contains paths that are not allowed: [._Symbols]
Use the Terminal to list all files with the 'ls -a' command?
Replies
Boosts
Views
Activity
Mar ’25
Reply to Background Audio Recording
I don't think there is a workaround. They tell you when you are allowed to use the background mode. https://developer.apple.com/documentation/xcode/configuring-background-execution-modes If you use the background mode for a different purpose, it seems that you violate the Guideline 2.5.4. Also, if you make an audio recording without user's consent, you may violate Guideline 2.5.14.
Replies
Boosts
Views
Activity
Mar ’25
Reply to Apple Developer Certificate not recognized for codesigning
Have you double-clicked on the certificate after opening it with Keychain and clicked on the Trust disclosure button to make it certified?
Replies
Boosts
Views
Activity
Mar ’25
Reply to Guideline 4.0 - Design
Your use of SignInWithAppleButton is not clear. AuthenticationServices lets you find out whether or not the user is able to sign in on their device. In other words, it tells you whether the app is being used by the valid owner of the device. AuthenticationServices does not necessarily disclose user's e-mail address. So why are you using it?
Replies
Boosts
Views
Activity
Mar ’25
Reply to Release Build Configuration as Release Fails Preview
I guess I know what needs -Onone Swift optimization level to use previews means. I need to select No Optimization [-Onone] under Swift Compiler -Code Generation in Build Settings. Yet, it doesn't resolve the preview issue.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’25
Reply to Different Build Schemes -> Error: -Onone Swift optimization level to use previews
Hello, Paris and DTS. My sample iOS app doesn't crash if I run it with a simulator or an actual device although the preview canvas shows an error for a selective build scheme. So I am afraid that I have nothing to report to you. I have installed the said profile as shown below. It's hard to locate the one that I need to look for since the list has several dozen items. Yet, based on Today's date, I don't find one. So what's next?
Replies
Boosts
Views
Activity
Feb ’25
Reply to Guideline 4.3(a) - Design - Spam - automatic rejection
You are not going to get anywhere by seeking advice here when it comes to getting your app rejected. It's true that the reviewers can get wrong occasionally. So do I and get my software titles rejected occasionally with mistakes on my side. If your app is rejected for the spam reason, listen to the reviewer and ask them questions. If you already have a similar app at App Store or Mac App Store, you are likely to be advised to provide it as an add-on feature to an existing title. If you have sold a similar product to one retailer and are trying to sell a similar one to another retailer, you are not going anywhere. I'm sure you are not telling us the whole story. So, again, read what the reviewer has said. It's up to you to listen to the reviewer and make changes to software.
Topic: Design SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jan ’25