Post

Replies

Boosts

Views

Activity

Reply to Aspiring Developer
Beware if you want to install permanently any app on you IOs devices, you'll need to enlist in the Apple Developer Program (99$/year); So Apple ecosystem (Xcode, Swift, SwiftUI, ...) is great to learn to code, but not so great if you just want to use your own little apps for your own only usage.
Oct ’20
Reply to Aspiring Developer
Just a remark. Beware that unless you enroll in Apple Developer Program, you won't be able to install the app permanently on your iPhone beyond one week. That's 100$ /year So Apple ecosystem (Xcode, swift...) is great if you want to learn to code. Not so well if you just are an enthusiast who wants to build apps for its own use.
Oct ’20
Reply to Basic starting configuration
What I now understand is that Bundle is refering to a Directory where the command line file is copied, which is the path I referred to in the initial post. Not the one where the source file is created. I am not sure this new place is supposed to be used by the developer And that, for strange reason, the data file (file.plist) is not copied along the command line file, even though is is checked to be in "Build phase" tab.A I said in my last post, there is a worlkaround, even if not very elegant.Thank you for your input
Feb ’20
Reply to Basic starting configuration
No Sandboxing I am aware of, though maybe the problem is here.Basically, I have a conceptual misunderstanding of how to start.I have built my little program :1) as a Mac app, and it works, getting the file from inside the package2) as a Playground and it works, getting the file from Documents/Shared Playground Data through the playgroundSharedDataDirectory variable3) as a cmd line, with same code as 1) and it doesn't workMy guess is that1) either I don't have the good command, "Bundle.main.path(forResource: "file", ofType: "plist") " is not available in command line mode2) either the command is good but I missed a parameter somewhere, and the program doesn't know the file is in its folder along main.swift3) either there is a bug and this is due to the fact that i'm working on icloud drive4) either I have missed something on how people are supposed to get familiar with Swift & Xcode and I should not try to work in command line mode. Though I find it more practical than using a Mac app, since I don't want to handle window dialogs for the time being. And I prefer to avoid the playground to have source control
Feb ’20