Same issue here on Monterey, Xcode 14.2, iPhone 7, iOS 15.8
I had to revert to Xcode 13.4.1 (32 GB on disk π)
Now it works
Obviously Apple do not care about supporting old phones
Post
Replies
Boosts
Views
Activity
Quite disappointed by the lack of visibility on this forum.
I understand that Apple imposes a temporary profile for development purposes when they "manage the profile" , however can anyone confirm it is not possible to manage it myself so that my iPhone recognizes I am a legitimate author of my application ?
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.
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.
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
At least I have found a workaround withlet path = "/Users/myName/Library/Mobile Documents/com~apple~CloudDocs/myDirectory/file.plist"
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