Post

Replies

Boosts

Views

Activity

Reply to UDID
Assuming you have a Mac running a recent macOS. When you connect the iOS device to Mac, you can see it in the Finder window. Select the device and click the info line below the device name:
Topic: App & System Services SubTopic: Hardware Tags:
Nov ’21
Reply to Testflight
The developer site is not a place to request to be a tester of some specific app. Contact to the author of the app.
Nov ’21
Reply to Async await backword support issue
The release notes of Xcode 13.2 RC contains this statement: Swift New Features You can now use Swift Concurrency in applications that deploy to macOS 10.15, iOS 13, tvOS 13, and watchOS 6 or newer. This support includes async/await, actors, global actors, structured concurrency, and the task APIs. (70738378) It suggests that we can use async/await on iOS 13 and 14. Though I have not tried yet.
Nov ’21
Reply to Xcode Single Executable File in C
So can I have a single file to run and create lots of them with the tag "int main (void)" and run them? It is not clear what you mean by the tag "int main (void)", so I may be mistaking something, but with my best guess... If you want to build many executables in a single project, you may need to add a Target for each executable you want to build. In my opinion, it is easier to create as many projects as needed to build many executables. If some parts of them use exactly the same files, you can easily copy them from a project to another project.
Nov ’21
Reply to I can't get a button to work, instead I get this error: "Accessing StateObject's object without being installed on a View. This will create a new instance each time." Help?
@tylerlw82, the tag thing is not a big one, please take care if you have next chance. But, in addition to @StateObject, @Environment, @FetchRequest (nor potentially @State, @EnvironmentObject) would not work in non-View context. (The runtime of SwiftUI manages them when they are in any of the views.) Please share your corrected code when done.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Nov ’21
Reply to I can't get a button to work, instead I get this error: "Accessing StateObject's object without being installed on a View. This will create a new instance each time." Help?
The WWDC 2021 session 10002 has nothing to do with your problem, using the right tags is important to get the right answers sooner. And when you show codes of View types, please show the whole code including the declaration header like struct ??????View: View {..., you are forcing readers to guess which view is used as what view... But, anyway, your problem in this case is very clear: you cannot use @StateObject somewhere else than View (or App or Scene). You may need to completely refactor your code again.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Nov ’21