Posts

Post marked as solved
2 Replies
0 Views
With the help of Apple engineers during the WWDC, we determined that my primary problem was that I used both --target and --scheme parameters to xcodebuild. Turns out --scheme alone works much better. There was another problem in my bash script and xcodebuild didn't return errors well in that case, but that was a secondary issue.
Post marked as solved
5 Replies
0 Views
The second parameter to dispatch_queue_create() is used for DISPATCH_QUEUE_SERIAL or DISPATCH_QUEUE_CONCURRENT. As for dispatch_get_global_queue(), who knows? It could have been used internally or they thought they would need it but never did. ObjC doesn't support default values like Swift does, so a lot of old code requires extra parameters.
Post marked as solved
1 Replies
0 Views
There are at least two common choices: Set the variable in onAppear instead of on the same line as the declaration Set the variable in init, like _user = State(initialValue: users.user1) See https://stackoverflow.com/questions/56691630/swiftui-state-var-initialization-issue