Post

Replies

Boosts

Views

Activity

Xcode Server Crashes Repeatedly.
Has anyone enabled Xcode Server on Xcode 14.3.1? After I enabled it, it crashed repeatedly. Has anyone encountered this? Steps: Open Xcode, Settings, enable Xcode Server Follow the steps Xcode provides Switch to the account of Xcode Server Xcode Server crashes. macOS Ventura 13.4 Mac mini M1 16G 512G Xcode 14.3.1
0
0
918
Jun ’23
Xcode Creates Multiple SwiftUI Preview Instances and Leaves Them After Quits.
I have an app with some SwiftUI Views. When using preview in Xcode, Xcode creates many instances of the previews. Then I quit Xcode, but the previews are not quit. I have to force quit them in Menu -> Apple Icon Menu -> Force Quit. Has anyone seen the same thing? How to solving it? Xcode 14.3 (14E222b) macOS Ventura 13.3.1 (a) (22E772610a) Mac mini M1 16G 512G
2
0
1.1k
May ’23
App update was rejected with "Command-Q is not considered a sufficient means of quitting for a stand-alone application."
I have a free macOS app called "Stand Reminder". It reminds a user through a timer if the user sit down too long before a Mac. So most of the time, my app is working in background. When my app is opened and a user clicks the close button of the window, my app will hide itself from dock and minimize to the menu bar. When my app is open, a user can quit my app by App Name menu -> Quit App, or command-Q. The reviewer rejected my app and ask me to revise in this version or in next. The I uploaded another build. In the new build, I changed the behavior to. If a timer is running, and a user clicks the close window button, an alert view shows that "when a timer is running, the user can't close the window." The user should stop the timer first then close the window. In the alert view, I provide two buttons, "Run in background" and "Cancel". If no timer is running, the app quits immediately. However, the second update was still rejected with the same reason. I asked the reviewer that many apps did the same, as well as Apples. For example, Pages, Numbers, Keynotes, Previews, Photos, all won't quit when click the close window button, so why can't I? Also in Apple's support page, "Quit apps on Mac",https://support.apple.com/guide/mac-help/quit-apps-mchl834d18c2/mac . Using menu to quit is the suggested way. The reviewer replied me no explain but send me a link to appeal. My app's in App Store: https://apps.apple.com/cn/app/%E7%AB%99%E7%AB%8B%E6%8F%90%E9%86%92/id1645523185?mt=12
1
0
559
Mar ’23
Using Variable in Action Extension doesn't Work
I can't use variable with DOM in Action Extension. The HTML page is like this. <!DOCTYPE html> <html lang="zh"> <head> </head> <body> &#9;<div class="wrap"> &#9;&#9;&#9;<p class="desc">如需浏览,请长按网址复制后使用浏览器访问</p> &#9;&#9;&#9;<p class="link">https://poster.parussoft.com/jumping.html?https://twitter.com/72473225/status/1300937074221043713</p> &#9;</div> </body> </html> My code var Action = function() {}; // var keyword = "link"; Action.prototype = { &#9;&#9;run: function(arguments) { &#9;&#9;&#9;&#9;arguments.completionFunction({ "link" : document.getElementsByClassName("link")[0].innerHTML }) &#9;&#9;&#9;&#9;// var keyword = "link" &#9;&#9;&#9;&#9;// arguments.completionFunction({ keyword : document.getElementsByClassName(keyword)[0].innerHTML }) &#9;&#9;} &#9;&#9;... &#9;&#9; }; &#9;&#9; var ExtensionPreprocessingJS = new Action The code using "link" directly works. The code using 'var keyword = "link";' doesn't work. No matter the positions of the var line are. Any idea?
1
0
793
Sep ’20
UNUserNotificationCenterDelegate doesn't work with local notification
I am using userNotificationCenter(_:willPresent:withCompletionHandler:) to get foreground notification. However, it seems this method does not work with local notIfication?The notification shows when app is in background or the device is locked. But it never shows when the app is in foreground and userNotificationCenter(_:willPresent:withCompletionHandler:) never runs.I have paste my code but I can't pass the "The message contains invalid characters.". Sigh...Any idea?Xcode 8 beta 6, iOS 10 developer beta 7
14
0
15k
Aug ’16