I am writing an app using Microsoft's MAUI platform. I am posting this here because that team wants me to make an xcode project to help determine an issue I am having.
My MAUI app sends a broadcast packet on a UDP socket using address 255.255.255.255. This worked fine in iOS version 17.x. After upgrading my phone to iOS 18.x it stopped working.
The error I get is "no route to host".
The exact same code works fine on MacOS. It does not work on iPadOs 18.
My question here is 3 fold:
Did something specific change between iOS 17 and 18 that would cause a 'no route to host' error when sending a UDP broadcast packet?
Can someone provide sample code to show me how to do this type of broadcast using Swift in Xcode for iOS?
I read an article that said my app would need the com.apple.developer.networking.multicast entitlement in order to use boradcast functionality. This was introduced in iOS 14. Why did my app work fine in iOS 17 then? Is this what changed? Did this requirement use to be optional and is now required? I did get this entitlement from Apple and applied it to my provisioning profile and my app gave the same "no route to host" error. Why?
Post
Replies
Boosts
Views
Activity
I have been doing app dev for my AVP for a few months now. It was working fine last time I connected it. I believe at the time I was using Xcode 15.4 and OS 2.0.
I just went to update my app and in the Xcode device manager I get this message:
"Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac."
I am now using Xcode 16.1 and VisionOS 2.1.1.
Nothing else has changed. I am on the same wifi network and both devices have IP addresses, masks and default gateways that match.
I have tried rebooting both the AVP and my MacBook pro.
I do not have the $300 cable, so I have to do this over the network.
What do I do?
I am trying to build an open source app for my Vision Pro.
It has many targets. I have selected a particular target and have tried both Automatic provisioning and manual provisioning.
This uses the "ninja" scripting to do the actual build.
The build succeeds and it downloads to my vision pro, but then gives this error when trying to install:
Showing Recent Messages
Recovery Suggestion: Failed to verify code signature of /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.ohBUtA/extracted/MyApp.app : 0xe8008015 (A valid provisioning profile for this executable was not found.)
I am creating a UIBarButtonItem in Objective-C code. I would like to right justify it on the toolbar that I add it too.
Can someone tell me how to do that in code?
I have a bundle that I created that I then distribute with a test app.
Before Monterey it has worked fine.
On Monterey (Intel or Apple Silicon) it stopped returning scan results. I do not get any errors it just doesn't ever call the didDiscoverPeripheral like it used it.
If I make the single change of passing in an array of Service UUID values then suddenly it will find that one device and return scan results.
My bundle and app need to support scanning for all peripherals.
Can someone help me fix this?
I have a very simple MacOS app. I build it for M1 and Intel. When I run the app on Big Sur it works fine. When I run it on Monterey it doesn't find any devices.
I have tried this on an Intel 2015 mac with Monterey and my new M1 MBP with Monterey.
When I call the check to see if bluetooth is turned on I do get the centralManagerDidUpdateState with the CBCentralManagerStatePoweredOn, so I am getting some messages.
When I make the call to scanForPeripheralsWithServices and pass in a nil array for serviceUUIDs and any options, this works on Big Sur, but not on Monterey.
Something must have changed I just can't figure out what.
I have read that people are having some trouble with bluetooth devices like Mice and Keyboards. I am not having those issues.
I have some AirPods that work fine.
Can someone tell me what changed for developers for Bluetooth on Monterey?
I have created a very simple bundle library. I am transitioning from a 2018 macbook pro Intel to a 2021 MBP M1 Max.
I have the latest xcode installed on both computers.
This library just has a single .h and single .mm Obj-C files.
I have it set to build both M1 and Intel architectures.
When I build this on the Intel mac I can copy my bundle to the M1 mac and use it from the environment that I need it in.
When I build the exact same project on my new mac with M1 and try to run it my environment says it can't find the bundle.
Is there something I need to know about building on the M1 versus Intel?
I have an iOS project that I copied from another project and used the rename method to rename it.If I leave the project open and close Xcode the next time I open Xcode it opens this project, but it is read and no files show up.If I close the project (without closing Xcode) and then just open the project again using the recently used or directly, everything is fine.How do I fix this?