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
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:
Replies
Boosts
Views
Activity
Nov ’21
Reply to Axie Infinity Download in 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.
Replies
Boosts
Views
Activity
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.
Replies
Boosts
Views
Activity
Nov ’21
Reply to How to read Int from Data in Swift
Depends on how you stored Int into Data. Can you explain?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to Contacts Framework CNFetchResult
What do you want to achieve?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to Went into trouble right at the start of Apple Education Develop with Swift Fundamentals
That error means mainLabel is not connected to the UILabel on your storyboard, and being nil at runtime. Check the connections of your storyboard carefully.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to how can i add a button that creates sprites to drag on a grid?
Can you show enough info about your app? How do you add other types of buttons?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to Is it possible to pay Apple developers program fee by using PayPal?
I was asking if it is possible to pay the fee using my PayPal account. Very unlikely. Credit cards are used for identifications of the card owners. But my personal opinion may not be important for you. Better visit the Contact Us page of the developer site. The link is below every page of the developer site.
Replies
Boosts
Views
Activity
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.
Replies
Boosts
Views
Activity
Nov ’21
Reply to UICollectionViewDiffableDataSource changes in Xcode 13
@surbhi_Magplus, sorry but you are not showing enough code to show something. Please show enough code which explains how you use it in multiple functions.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to CAMPriorityNotificationCenter _postNotification:forEntries:
Do you have anything about the backtrace?
Replies
Boosts
Views
Activity
Nov ’21
Reply to UICollectionViewDiffableDataSource changes in Xcode 13
As far as I check the doc of UICollectionViewDiffableDataSource, it did not have an initializer init() even in iOS 14 SDK (Xcode 12). So, your code was using some undocumented feature and unfortunately it seemingly was working fine by luck. You may need to modify the initializer of dataSource properly.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
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.
Replies
Boosts
Views
Activity
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:
Replies
Boosts
Views
Activity
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:
Replies
Boosts
Views
Activity
Nov ’21