Post

Replies

Boosts

Views

Activity

Reply to Coalescing @Published changes?
Well, I can't show all the code, but I can show a bit more: swift class ChatStream { @Published var messages = OrderedSetMessage() func add(messages inMsgs: [IncomingMessage]) { for msg in inMsgs { let msg = Message(fromIncoming: msg, user: user) self.messages.append(msg) } self.messages.sort() } } ... struct ChatView: View { @ObservedObject public var stream : ChatStream var body: some View { ScrollViewReader { scrollView in ScrollView { LazyVStack(alignment: .leading, spacing: 0.0) { ForEach(self.stream.messages) { inMsg in ChatMessageCell(message: inMsg) } .onChange(of: self.stream.messages, perform: { inMessages in --- called multiple times for each update below. if inMessages.count 1 { return } withAnimation(.linear(duration: 0.25)) { scrollView.scrollTo(inMessages.last!.id, anchor: .bottom) } }) } } } } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
May ’21
Reply to AppIdentifierPrefix is different in main app and extension
FWIW, I just added a keychain sharing entitlement using Xcode 12.5, and it added the entitlements file with $(AppIdentifierPrefix)groupname (groupname is what I put in the entitlements UI). I don't know what value it's actually putting in there, as I can't find AppIdentifierPrefix anywhere else in the project. Update: It's really hard to know what the string in my code should be to match what Xcode is generating for the entitlement.
Topic: Privacy & Security SubTopic: General Tags:
May ’21
Reply to Unable to install XCode
It seems to require an inordinate amount of free space to decompress, double or triple the size. Xcode 13b1 is 33 GB on my disk (although Finder seems to have lost its mind reporting the size). I needed over 100 GB free to decompress it the other day. BTW, I don't recommend b2, as it fails to compile some Swift code that depends on CF_RETURNS_NOT_RETAINED in Obj-C headers (like AVCapturePhoto).
Jun ’21
Reply to Coalescing @Published changes?
Well, I can't show all the code, but I can show a bit more: swift class ChatStream { @Published var messages = OrderedSetMessage() func add(messages inMsgs: [IncomingMessage]) { for msg in inMsgs { let msg = Message(fromIncoming: msg, user: user) self.messages.append(msg) } self.messages.sort() } } ... struct ChatView: View { @ObservedObject public var stream : ChatStream var body: some View { ScrollViewReader { scrollView in ScrollView { LazyVStack(alignment: .leading, spacing: 0.0) { ForEach(self.stream.messages) { inMsg in ChatMessageCell(message: inMsg) } .onChange(of: self.stream.messages, perform: { inMessages in --- called multiple times for each update below. if inMessages.count 1 { return } withAnimation(.linear(duration: 0.25)) { scrollView.scrollTo(inMessages.last!.id, anchor: .bottom) } }) } } } } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
May ’21
Reply to AppIdentifierPrefix is different in main app and extension
FWIW, I just added a keychain sharing entitlement using Xcode 12.5, and it added the entitlements file with $(AppIdentifierPrefix)groupname (groupname is what I put in the entitlements UI). I don't know what value it's actually putting in there, as I can't find AppIdentifierPrefix anywhere else in the project. Update: It's really hard to know what the string in my code should be to match what Xcode is generating for the entitlement.
Topic: Privacy & Security SubTopic: General Tags:
Replies
Boosts
Views
Activity
May ’21
Reply to Xcode 12.5 very slow launch time for app in simulator
13b1 is definitely much faster for me. I'm going to try using it day-to-day, and then revert to 12.5 for builds to submit.
Replies
Boosts
Views
Activity
Jun ’21
Reply to Unable to install XCode
It seems to require an inordinate amount of free space to decompress, double or triple the size. Xcode 13b1 is 33 GB on my disk (although Finder seems to have lost its mind reporting the size). I needed over 100 GB free to decompress it the other day. BTW, I don't recommend b2, as it fails to compile some Swift code that depends on CF_RETURNS_NOT_RETAINED in Obj-C headers (like AVCapturePhoto).
Replies
Boosts
Views
Activity
Jun ’21
Reply to SwiftUI's onAppear() and onDisappear() called multiple times and inconsistently on iOS 14.1
I ran into this today. I can't explain it, but it's a real issue. Where did you read about the filed bug, @cyclic?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’21
Reply to SwiftUI's onAppear() and onDisappear() called multiple times and inconsistently on iOS 14.1
I've verified that it's fixed in iOS 15b1. Apple really needs to back-port this fix. I worked around it by posting a notification in .onAppear() higher up the hierarchy, where .onAppear was being called appropriately.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’21
Reply to Deadline for requiring Xcode 13 for submissions?
Ah I saw that headline but almost subconsciously dismissed it thinking it was just an announcement of the new thing. That'll learn me. Thanks!
Replies
Boosts
Views
Activity
Sep ’21
Reply to No Builds Available internal testing
Hmm. We already have the export compliance plist key, but have two out of many users with "no builds available."
Replies
Boosts
Views
Activity
Sep ’21
Reply to xcode "Products" folder missing in project navigator
This is still a problem, two years later, in Xcode 13.1. I've written feedback about it.
Replies
Boosts
Views
Activity
Nov ’21
Reply to Xcode won't build for macOS Apple Silicon
Ah. There was a user setting VALID_ARCHS that I think an old Xcode upgrade created (I certainly didn't). It's a very old project.
Replies
Boosts
Views
Activity
Nov ’21
Reply to iPhone is busy: Making Apple Watch ready for development
I get this a lot too. Filed FB9807088
Replies
Boosts
Views
Activity
Dec ’21
Reply to ITMS-90562: Invalid Bundle - Bitcode failed to compile for your watchOS binary
We just ran into this today. We also have no watchOS component in our app. Currently have a support ticket open with Apple, they're escalating it.
Replies
Boosts
Views
Activity
Dec ’21
Reply to Xcode Server 13.1/13.2b on 12.1 (21C5021h) Fails While Configuring SSL Certificates
Same here with Xcode 13.2.1. FB9828542 Apple, you need to stop abandoning things before we all have access to a replacement.
Replies
Boosts
Views
Activity
Jan ’22
Reply to Unable to upload any builds to app store?
I still frequently encounter this issue today with Xcode 13.
Replies
Boosts
Views
Activity
Jan ’22
Reply to xcrun altool --list-apps Retrieved 0 applications. ?
I see this behavior, too, in Xcode 13.2
Replies
Boosts
Views
Activity
Jan ’22