Post

Replies

Boosts

Views

Activity

Xcode 13 beta 4 is not able to handle framework built with Xcode 12
I have a third party framework 'serviceCommon' built using Xcode 12.5.1 (12E507). When I try to build my app which links to this framework, Xcode 13 beta 4(13A5201i) fails with the following error (FYI. Xcode 12.5.1 is able to build this app fine). Failed to build module 'serviceCommon'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 5.4.2 (swiftlang-1205.0.28.2 clang-1205.0.19.57)', while this compiler is 'Apple Swift version 5.5 (swiftlang-1300.0.27.6 clang-1300.0.27.2)'). Please select a toolchain which matches the SDK.
1
0
1.4k
Aug ’21
SwiftUI: How to detect navigation up or down
I have following SwiftUI code, which makes a connection (to the server) when the user navigates to this page (this is a part of navigation stack), and disconnects when the user navigate away (up). struct ServiceView: View { @ObservedObject var state:ServiceState var body: some View { ScrollView(.vertical) { VStack { ... NavigationLink( destination: ChildPage(state: state), label: { Text("Child Page") }) } } .onAppear() { state.connection.connect() } .onDisappear() { state.connection.disconnect() } } } This works fine as long as the user stays on this page, but breaks when the user clicks the "Child Page" link, because .onDisappear() event will be triggered when the user navigates down as well. Is there any way to distinguish two different scenarios (navigate up and down)?
0
0
1.1k
Mar ’21
Xcode does not recognize my alternative Team
I recently joined a development team (team B) as a "Developer" using the same Apple ID I am using to manage my own team (team A, as "Account Holder"). I see this new team (B) when I access the Apple's Developer site, and switch between A and B from the Account menu. When I open the Xcode project from the new team, Xcode indicates that the team is unknown, displaying "Unknown Name (KV7...)" in red (under Signing & Capabilities tab). When I click the "View Accounts...", I see my Apple ID on left, and only my own team (A) on right, not the new team (B) I have just joined. When I removed my Apple ID from it, and re-added it, Xcode detects only my own team (A), but not the new team (B). I restarted Xcode, but still don't see the new team (B) in the list. Do you have any idea why Xcode does not recognize another team? Is there any additional step to let Xcode recognize the new team?
2
0
2.8k
Jan ’21