Posts

Post not yet marked as solved
0 Replies
842 Views
I have a framework target in Xcode 11.x to build a Dynamic framework with statically linking some 3rd party libraries using pod file. platform :ios, '9.0' #use_frameworks! target 'Framework' do pod 'DeviceUtil', '~> 2.0' end Now I have a requirement to build a Static framework, and for this I changed the "Mach-O' type to Static Library in 'Framework's' target build settings and able to create Static framework. The generated framework shows all architectures correctly (for architecture i386): (current ar archive random library for all architecutres x8664, armv7 & arm64)._ But the Static framework does not included 3rd party libraries within the Framework binary. How to generate a Static framework using Xcode11.x which includes other 3rd party libs in its binary? Also changing "Mach-O" type is good enough to generate a Static framework or is there any other way that I am missing?
Posted
by inturi.
Last updated
.
Post not yet marked as solved
1 Replies
644 Views
NWPathMonitor's pathUpdateHandler is getting called when the app is transitioned from background to foreground with a delay of >30secs in the background even when there is no change in the Network. This isn't expected. Also when network changes 'pathUpdateHandler' block gets invoked multiple times for the same interface type with same status (e.g., when I change from No WiFi -> WiFi, pathUpdateHandler is getting called 3 to 4 times with status satisfied and interface type wifi) Is this expected behaviour? Or is there a workaround for this kind of behaviour? I tested it on iPhone6S with iOS 13.7 and iPad with iOS 14.0 Here is my code snippet (void) startMonitor { self.pathMonitor = nw_path_monitor_create(); nw_path_monitor_set_update_handler(self.pathMonitor, ^(nw_path_t	_Nonnull path) { 		 		DDLogVerbose(@"Network path changed %d", nw_path_get_status(path)); 		if (nw_path_uses_interface_type(path, nw_interface_type_wifi))	{ 				DDLogVerbose(@"Network path user interface type WiFi"); 		} else if (nw_path_uses_interface_type(path, nw_interface_type_cellular))	{ 				DDLogVerbose(@"Network path user interface type Cellular"); 		} else if (nw_path_uses_interface_type(path, nw_interface_type_wired))	{ 				DDLogVerbose(@"Network path user interface type Wired"); 		} else if (nw_path_uses_interface_type(path, nw_interface_type_loopback))	{ 				DDLogVerbose(@"Network path user interface type Loopback"); 		} else if (nw_path_uses_interface_type(path, nw_interface_type_other))	{ 				DDLogVerbose(@"Network path user interface type Other"); 		} }); nw_path_monitor_start(self.pathMonitor); } The output is same even if I create the nwpathmonitor with a particular interface type
Posted
by inturi.
Last updated
.
Post not yet marked as solved
0 Replies
567 Views
I'm trying to develop an app which should show lockscreen media controls (MPRemoteCommandCenter and MPNowPlayingInfoCenter) when casting a media to Smart TVs/Streaming boxes(Roku/FireTV etc...), my app never plays audio in the background on phone, which is similar to YouTube, from YouTube app if you are casting any media to any Smart TV/Streaming box (ex: ChromeCast) and goes to background lock screen controls appears but if you just play on phone and went to background, media just stops playing and no lock screen controls present.One of the hack that I am thinking is playing a silent audio file on the phone which shows the lockscreen controls but it doesn't feel like a good solution (unnecessary battery drain). Also will approve?
Posted
by inturi.
Last updated
.