Using NWBrowser and NWListener I'm trying to send a small package of data from the listener/server to the device.
However the device never receives the actual bytes. It either:
gets stuck the preparing state
the connection gets reset
the data is null and is marked as isComplete = true
The only way I can get the device to receive the data is by calling cancel on the NWConnection on the server/NWListener end.
Here is some sample code I am working with:
https://github.com/leogdion/JustBonjour/tree/nwlistener
Is this expected behavior that cancel is required?
Post
Replies
Boosts
Views
Activity
I have a multi-platform app with the SwiftUI code a separate Swift Package. Any Views with SwiftUI Previews break the compilation of the app. Here's the error message I get in Xcode:
Showing All Messages
ld: warning: Could not parse or use implicit file '/Applications/Xcode-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/SwiftUICore.framework/SwiftUICore.tbd': cannot link directly with 'SwiftUICore' because product being built is not an allowed client of it
Undefined symbols for architecture arm64_32:
"(extension in SwiftUI):DeveloperToolsSupport.Preview.init(_: Swift.String?, traits: DeveloperToolsSupport.PreviewTrait<DeveloperToolsSupport.Preview.ViewTraits>..., body: @Swift.MainActor @Sendable () -> SwiftUI.View) -> DeveloperToolsSupport.Preview", referenced from:
static BitnessViews.$s12BitnessViews33_ABDBADF565C741E50A2A5746CE94FCD9Ll7PreviewfMf_15PreviewRegistryfMu_.makePreview() throws -> DeveloperToolsSupport.Preview in BitnessViews.o
ld: symbol(s) not found for architecture arm64_32
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Could not parse or use implicit file '/Applications/Xcode-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/SwiftUICore.framework/SwiftUICore.tbd': cannot link directly with 'SwiftUICore' because product being built is not an allowed client of it
Undefined symbol: (extension in SwiftUI):DeveloperToolsSupport.Preview.init(_: Swift.String?, traits: DeveloperToolsSupport.PreviewTrait<DeveloperToolsSupport.Preview.ViewTraits>..., body: @Swift.MainActor @Sendable () -> SwiftUI.View) -> DeveloperToolsSupport.Preview
Linker command failed with exit code 1 (use -v to see invocation)
Any thoughts as to what might be going on here?
similar to
https://developer.apple.com/forums/thread/656601
and
https://developer.apple.com/forums/thread/693313
What is the policy regarding macOS apps which only support Apple Silicon?
I am looking at building something around the Virtualization framework but it appears to only support the features I want on Apple Silicon macOS devices.
Can I still publish this on Mac App Store? Is there a workaround for this if not?
I've tried both WatchKit and SwiftUI and neither offer a keypad in watchOS 8.
I've tried the different types which suggest number pad in the documentation:
The input controller displays a number pad for telephoneNumber, creditCardNumber, oneTimeCode, and postalCode content types.
Is this purposeful or a bug?
In the Sidebar, the badge doesn't show up for me. This is also the case with the end product:
ForEach(store.gardens(in: store.currentYear)) { garden in
Label(garden.name, systemImage: "leaf")
.badge(garden.numberOfPlantsNeedingWater)
}
I'm trying to submit an Independent Apple Watch app for Testflight external testing. I've able to do this pretty consistently until the latest build. Right after submitting the test information, I get the following error message from AppStoreConnect:Sorry, something went wrong.Some of the information required to submit your build for external testing is missing.It appears to be getting a 422 error from "https://appstoreconnect.apple.com/iris/v1/betaAppReviewSubmissions":{ "errors" : [ { "id" : "3e2cd38c-9567-44c8-b243-20ca39c95cdc", "status" : "422", "code" : "ENTITY_UNPROCESSABLE.MISSING_REQUIRED_DATA", "title" : "Missing required information to submit for external testing", "detail" : "Missing requied data." } ]}I have no indication what is missing from the build, this time to indicate what I need to add.