Post not yet marked as solved
Altough we are using NEHotspotConfiguration API to configure the current Wi-Fi network, occasionally CNCopyCurrentNetworkInfo returns NULL. The only way to recover was rebooting the phone (I haven't tried resetting the network settings as was suggested else where). Regardless ,this sounds like a bug in the API and I was wondering if others see the same problem and/or if it's a known issue and is getting addressed.Thanks!
Post not yet marked as solved
Suddenly rvictl -s 0000... started to fail. The solutions proposed in this thread didn't help. Please advice. Due to the nature of the APP I worked on it I heavily depend on rvictl to work properly.
MacBook Pro (15-inch, 2018)
Big Sur 11.6 (20G165)
iPhone 12, iOS 15.1
Post not yet marked as solved
Now that ImageCaptureCore framework is supported on iOS 13+, I was trying to write an application for browsing media files on devices connected via USB. The external device is connected to the iPhone via the "Lightning to USB 3 Camera Adapter" - https://www.apple.com/shop/product/MK0W2AM/A/lightning-to-usb-3-camera-adapter.
The iOS application I'm writing is based on SimpleCameraBrowser - https://developer.apple.com/library/archive/samplecode/SimpleCameraBrowser/Introduction/Intro.html
@interface AppDelegate () <ICDeviceBrowserDelegate, ICDeviceDelegate>
@property (nonatomic, strong) ICDeviceBrowser *deviceBrowser;
@property (nonatomic, strong) ICCameraDevice *camera;
@end
@implementation AppDelegate
(void)deviceBrowser:(nonnull ICDeviceBrowser *)browser didAddDevice:(nonnull ICDevice *)device moreComing:(BOOL)moreComing {
NSLog( @"deviceBrowser:didAddDevice:moreComing: \n%@\n", device );
// if (device.type & ICDeviceTypeCamera)
{
device.delegate = self;
			 self.camera = (ICCameraDevice *)device;
self.camera.delegate = self;
[self.camera requestOpenSession];
}
}
(void)device:(nonnull ICDevice *)device didOpenSessionWithError:(NSError * _Nullable)error {
NSLog( @"device:didOpenSessionWithError:error: \n%@\n", error );
}
(void)deviceDidBecomeReady:(ICDevice*)device {
ICCameraDevice *camera = (ICCameraDevice *)device;
NSLog(@"%@, %@", device, camera.mediaFiles);
}
(void)deviceDidBecomeReadyWithCompleteContentCatalog:(ICCameraDevice*) device {
	 NSLog(@"deviceDidBecomeReadyWithCompleteContentCatalog: %@", device.mediaFiles);
}
(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
self.deviceBrowser = [[ICDeviceBrowser alloc] init];
self.deviceBrowser.delegate = self;
[self.deviceBrowser start];
return YES;
}
What I'm seeing is that although the camera is found and successfully open a session, when receiving the callback deviceDidBecomeReady, the property mediaFiles is an empty array and never receive the call deviceDidBecomeReadyWithCompleteContentCatalog.
Is ImageCaptureCore framework supposed to work on iOS? Does it work only on iPads and not on iPhones?
Post not yet marked as solved
I'm trying to add swift support to an existing Objective-C based framework and I'm running into compilation errors when integrating the framework into the app (the framework alone builds fine).My goal is to be able to access from swift, Objective-C project headers and to achieve this I've been using a modulemap file to list all the project files as indicated for example here: http://nsomar.com/project-and-private-headers-in-a-swift-and-objective-c-framework/My directory structure is as follow:MyFramework
Folder1
baz.h
baz.m
Folder2
bar.h
bar.m
foo.h
foo.m
SwiftClass.swift
MyFramework.h
module.modulemapThe module.modulemap file looks like this:module MyFramework_Internal {
header "Folder1/Baz.h"
header "Folder1/Folder2/Bar.h"
export *
}foo is public, bar and baz have project membership instead. If bar.h includes foo (e.g. #import "Foo.h"), building the app fails with the following error:<module-includes>:2:9: note: in file included from <module-includes>:2:
#import "Folder1/Folder2/Bar.h"
^
/Users/username/Desktop/MyFrameworkClient/MyFramework/MyFramework/Folder1/Folder2/Bar.h:10:9: error: 'Baz.h' file not found
#import "Baz.h"
^
<unknown>:0: error: could not build Objective-C module 'MyFramework_Internal'Any idea of what I'm doing wrong? Because I'm not sure why importing that public header is causing that sort of error.
Post not yet marked as solved
Hello,We are using NEHotspotConfigurationManager to connect to a GoPro camera. We instantiate NEHotspotConfiguration as indicated below and use the applyConfiguration API to automatically switch to the camera Wi-Fi.let configuration = NEHotspotConfiguration.init(ssid:SSID, passphrase:password, isWEP: false)
configuration.joinOnce = false
NEHotspotConfigurationManager.shared.apply(configuration) { (error) in
var message = "Joined Wi-Fi succefully!"
if let err = error {
message = "\(err)"
}
let alert = UIAlertController(title: nil, message: message, preferredStyle: .alert)
alert.addAction(UIAlertAction(title: "Okay", style: .default, handler: nil))
self.present(alert, animated: true, completion: nil)
}Occasionally, calling the API fails without error and the "Unable to join Wi-Fi" alert shows up. It seems to us that this is caused by iOS not scanning when the the applyConfiguration is called. If this is correct, is there anything that we could do to trigger a scan from within the app?If needed we have the sysdiagnose log that we can upload.Thanks,Glauco