Post

Replies

Boosts

Views

Activity

Reply to Ad hoc App Distribution no Wifi connection?
Your app's network connectivity should not be affected by the distribution method. What platform does your app use? iOS? macOS? tvOS? watchOS? my error handling always tells me that I have no internet connection The first question is, does your app really have no internet connection, or is there an issue with your error handling code? If you could share your error handling code, and the details of how you are using the network connection, forum users may be able to help you.
Topic: Programming Languages SubTopic: Swift Tags:
Oct ’21
Reply to MapKit remove street names
When configuring an MKMapView, we have: showsBuildings showsCompass showsZoomControls showsScale showsTraffic showsPointsOfInterest showsPitchControl But no showsStreets (or equivalent). So no, it is not possible to remove the street names. You might try using an MKMapType of .mutedStandard "A street map where your data is emphasized over the underlying map details"
Oct ’21
Reply to Ad hoc App Distribution no Wifi connection?
Have you considered monitoring your network connectivity using NWPathMonitor? For example, to monitor WiFi and Cellular: var monitorWiFi = NWPathMonitor(requiredInterfaceType: .wifi) var monitorCellular = NWPathMonitor(requiredInterfaceType: .cellular) var isInternetAvailableOnWiFi: Bool = false var isInternetAvailableOnCellular: Bool = false Then... /// **startPathMonitors** /// Monitor the WiFi and Cellular connections /// Note: NWPathMonitor checks for connection to wider network /// func startPathMonitors() { /// WiFi monitorWiFi.pathUpdateHandler = { path in /// This closure is called every time the connection status changes DispatchQueue.main.async { switch path.status { case .satisfied: print("PathMonitor WiFi satisfied, interface: \(path.availableInterfaces) gateways: \(path.gateways)") default: print("PathMonitor WiFi not satisfied: \(path.unsatisfiedReason)") } self.isInternetAvailableOnWiFi = (path.status == .satisfied) } } monitorWiFi.start(queue: DispatchQueue(label: "monitorWiFi")) /// Cellular monitorCellular.pathUpdateHandler = { path in /// This closure is called every time the connection status changes DispatchQueue.main.async { print("PathMonitor Cellular: \(path.status)") self.isInternetAvailableOnCellular = (path.status == .satisfied) } } monitorCellular.start(queue: DispatchQueue(label: "monitorCellular")) }
Topic: Programming Languages SubTopic: Swift Tags:
Oct ’21
Reply to CLGeocoder Segmentation fault: 11 swiftUI
Oh... you mean you get the error when you build the app... it would have been worth pointing that out! My first thought is that you are using a lot of force-unwrapping (!), and it would be better to avoid that. Try: if let pm = placemarks?.first { self.parent.userLocation = (pm.subThoroughfare ?? "") + (pm.thoroughfare ?? "") + (pm.locality ?? "") }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Oct ’21
Reply to Passing casted Modified Image controls as parameters causes exception
Your code fragment is missing crucial information: ExpandingButtonPanel is incomplete You don't show your definition of getIconColor. What is EnvironmentVM If you can add these definitions, it may be possible to offer help.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to How to know a device is available to use captureTextFromCamera API?
My bad (typo), of course I meant "MLCDevice" (from the Machine Learning framework). ane() Creates a device that uses the Apple Neural Engine, if one exists
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to Turning an iOS Device into an iBeacon Device
Instead of uploading screenshots, please include your code in a Code Block (using "Paste and Match Style"). Then people may be able to help you.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to Touchbar will be removed from all product.
I depends... If you have existing customers who use the Touch Bar with your app, and they find it useful, then you may want to consider continuing to supporting them. It depends how your app uses the Touch Bar, and how many of your current users have a Mac with a Touch Bar.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to Ad hoc App Distribution no Wifi connection?
Your app's network connectivity should not be affected by the distribution method. What platform does your app use? iOS? macOS? tvOS? watchOS? my error handling always tells me that I have no internet connection The first question is, does your app really have no internet connection, or is there an issue with your error handling code? If you could share your error handling code, and the details of how you are using the network connection, forum users may be able to help you.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to why is UIImage(contentsOfFile: "path") retaining memory
Please can you put your code into a code block (using "Paste and Match Style"), to make it more readable?
Topic: Media Technologies SubTopic: General Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to MapKit remove street names
When configuring an MKMapView, we have: showsBuildings showsCompass showsZoomControls showsScale showsTraffic showsPointsOfInterest showsPitchControl But no showsStreets (or equivalent). So no, it is not possible to remove the street names. You might try using an MKMapType of .mutedStandard "A street map where your data is emphasized over the underlying map details"
Replies
Boosts
Views
Activity
Oct ’21
Reply to Ad hoc App Distribution no Wifi connection?
Is there a reason for making this so complicated, or do you just need to check for network connectivity?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to Ad hoc App Distribution no Wifi connection?
Have you considered monitoring your network connectivity using NWPathMonitor? For example, to monitor WiFi and Cellular: var monitorWiFi = NWPathMonitor(requiredInterfaceType: .wifi) var monitorCellular = NWPathMonitor(requiredInterfaceType: .cellular) var isInternetAvailableOnWiFi: Bool = false var isInternetAvailableOnCellular: Bool = false Then... /// **startPathMonitors** /// Monitor the WiFi and Cellular connections /// Note: NWPathMonitor checks for connection to wider network /// func startPathMonitors() { /// WiFi monitorWiFi.pathUpdateHandler = { path in /// This closure is called every time the connection status changes DispatchQueue.main.async { switch path.status { case .satisfied: print("PathMonitor WiFi satisfied, interface: \(path.availableInterfaces) gateways: \(path.gateways)") default: print("PathMonitor WiFi not satisfied: \(path.unsatisfiedReason)") } self.isInternetAvailableOnWiFi = (path.status == .satisfied) } } monitorWiFi.start(queue: DispatchQueue(label: "monitorWiFi")) /// Cellular monitorCellular.pathUpdateHandler = { path in /// This closure is called every time the connection status changes DispatchQueue.main.async { print("PathMonitor Cellular: \(path.status)") self.isInternetAvailableOnCellular = (path.status == .satisfied) } } monitorCellular.start(queue: DispatchQueue(label: "monitorCellular")) }
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to CLGeocoder Segmentation fault: 11 swiftUI
Oh... you mean you get the error when you build the app... it would have been worth pointing that out! My first thought is that you are using a lot of force-unwrapping (!), and it would be better to avoid that. Try: if let pm = placemarks?.first { self.parent.userLocation = (pm.subThoroughfare ?? "") + (pm.thoroughfare ?? "") + (pm.locality ?? "") }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to Configure Wi-Fi Accessory so that Connected Devices Automatically Use Cellular
If the accessory is acting as a DHCP server... ...it may be sufficient for it to provide an empty "Default Gateway" (which Apple refer to as "Router") IP Address. The iOS device can then detect that the WiFi has no route to the Internet, and will use the cellular connection instead.
Replies
Boosts
Views
Activity
Oct ’21
Reply to CoreData and 'Charts'
What is "BarChart"?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to MacOS Add new WiFi profile programmatically
In a mac Catalyst app, you could try creating an NEHotspotConfiguration for your WiFi network, then "apply" it using NEHotspotConfigurationManager. I'm not sure if that would work, but it might be worth a try.
Replies
Boosts
Views
Activity
Oct ’21
Reply to Can't upload builds as role "developer"
This kind of Team is not possible with "Individual" Developer Accounts. As you mention, it requires a Company Account.
Replies
Boosts
Views
Activity
Oct ’21
Reply to Registering a Simulator Device on Apple
No, you cannot register a Simulator device as if it was a real device. Only a real device can be registered.
Replies
Boosts
Views
Activity
Oct ’21