Posts

Post not yet marked as solved
0 Replies
809 Views
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
Posted
by zhaoxin.
Last updated
.
Post not yet marked as solved
2 Replies
857 Views
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
Posted
by zhaoxin.
Last updated
.
Post not yet marked as solved
1 Replies
406 Views
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
Posted
by zhaoxin.
Last updated
.
Post not yet marked as solved
14 Replies
14k Views
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
Posted
by zhaoxin.
Last updated
.
Post not yet marked as solved
4 Replies
692 Views
To get email notifications when the posts that someone involved got updates. To keep update to some posts without posting to them. A.K.A a subscribe or watch button.
Posted
by zhaoxin.
Last updated
.
Post marked as solved
1 Replies
648 Views
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?
Posted
by zhaoxin.
Last updated
.