Post

Replies

Boosts

Views

Activity

SwiftUI app broken when upgraded to macOS Big Sur 11.3
I have a SwiftUI app that works perfectly fine on the version prior to the new 11.3 update. The app has a List and on clicking an entry, opens the child view which has a toolbar. This app has been working fine for months now, and once I upgraded to 11.3, the following happens the app opens fine it even loads the entries into the list view when I click on the entry, the right side is "empty" - no toolbar, no content. But the View is loading! (because the debug statements from the view onAppear are executing) I have absolutely no idea where to even look. Has something materially changed in SwiftUI or Xcode that would break an app like this? There are no error messages, warnings etc. - nothing. The child area just stays empty... that's it. I have a MacBook Pro which I haven't upgraded to 11.3, and the app works just fine there. I've recompiled with the latest Xcode etc., no use. Looking for any hints, thank you,
0
0
645
May ’21
SwiftUI TextEditor performance issues
Has anyone used the new SwiftUI 2.0 TextEditor with a sizeable string? I'm currently trying it with a 400K text string and typing into the TextEditor horribly slow. Each letter I type takes seconds to appear. When the text size is small (say just a few thousand characters) it's fast - so it's clearly something to do with performance. Is this a known issue? Should I be doing something to improve it? PS - I do need to use it for my app (for e.g., a Markdown editor that loads a large file)  if let t = try? String(contentsOfFile: filePathName, encoding: .utf8) {             editorText = t             Config.logger.debug("EditorView.onAppear: Read text count = \(t.count) characters")             }
4
0
2.7k
Feb ’21
macOS BigSur: Notarized app crashes on any account except dev account
Platform: macOS BigSur 11.1 / Xcode 12 / Swift UI 2.0 Issue Summary Notarized SwiftUI app runs fine on my dev account, even when downloaded from a website and extracted from a pkg But crashes when run on any other account--admin or standard Details Hi all, I'm a first time developer and looking to distribute the app. It works perfectly fine on my macOS BigSur developer account, when either tried as a standalone .app or extracted from a dmg, but crashes on any other account when downloaded and extracted. The app is successfully notarized using my developer account and archived for distribution. I uploaded the app the website, downloaded it in a different admin and standard accounts on my Mac (a fresh account for testing only), the security settings have accept "App Store and identified developers" checked. When I extract the dmg and run the app, it asks the usual gatekeeper question (do you want to open the app downloaded from the internet etc.), and then once accepted, it crashes immediately. I'm totally at a loss. It works fine on my dev account (when I download the app etc.) but not on any other. Is it some setting on Xcode? Something else with the environment? I suspect may be a folder access issue?  I don't know where to turn. Another point to note It seems some of the app is getting executed before crashing, because an app specific .json file is getting copied to the app folder, i.e. ~/Users/<user>/Library/Application Support/<app bundle path> I'm not an experienced developer and not too bright either... need help! :)  Any pointers and means of debugging and figuring out greatly appreciated. Is there a way I could see my print logs in a different account without Xcode? Crash log is attached. Crash Log - https://developer.apple.com/forums/content/attachment/01475cdd-9651-492d-b37d-46762da873d4 :
1
0
1.7k
Jan ’21
How do I create a simple app installer?
I've never distributed an app before, and am about to make my macOS app available for download. This will be done outside the App Store. I have managed to get it notarized, and I also exported the app as myapp.app What I've seen typically in Mac downloads is that people click on a .dmg (for e.g.) and then it opens a folder like screen asking people to drag the app to the applications folder. I'd like to do it that way rather than make my .app downloadable as is (or maybe I should? I don't know) How do I do that? I'm a bit confused as to what I can (or should) distribute on my website for the download. The app is pretty simple and doesn't need a complicated installation package. thank you!
0
0
671
Dec ’20
MacOS App Sandbox - how can I distribute my app?
I'm new to MacOS development, so apologies for any immaturity in the question! I'm getting ready to release an app I've developed. I would prefer to do it via the App Store, but ran into the Sand Box requirements. My app is heavy on folder/file read/write. Given my newness to the ecosystem, I'm struggling to understand if my app can be made so that it can be distributed via the Mac App Store. It works perfectly in a non-sandbox local environment. Here is what my app does/needs to do Be able to access / read files from a location the user chooses the first time / but be able to read them the next time without prompting Be able to create a folder at a location automatically when the app launches a process in the background. I can ask for the user to provide access to a folder (let's say project folder), but need to be able to read/write files and folders inside it without prompting for permissions each time. Be able to launch a process (in my case, pandoc, which is a widely used document conversion command line app) in the background to work on the files within the selected folder. And in that way, that process needs to be able to access and read/write into subfolder I understand that I can do all this with a notarized app and sell outside the App Store, but I would love to do it within the store, even if it means I can ask the user, at launch for example, to designate a specific folder as a project folder within which the app can do read/writes without prompting. Note: for usability reasons I need to be able to have a project folder that is not the sand box folder. I read something about bookmarks etc. but can't figure out if what I'm asking for is possible. And if so, any pointers or recent articles I could look at is very appreciated. Thanks!
3
0
881
Dec ’20