I have a iOS framework which has the following snippet of code :
CTTelephonyNetworkInfo *netinfo = [[CTTelephonyNetworkInfo alloc] init];
CTCarrier *carrier = [netinfo subscriberCellularProvider];
In Xcode 11.x compiling target had a "Generic iOS Device" option and I am able to create a fat framework which includes the simulator pieces. However in Xcode there are 2 targets one for arm64 and the other for Intel and Apple Silicon. How do I create a fat framework here?
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
I could not find a solution for this and dumbfounded on this. I have this code which works perfectly fine on iOS 13.x but on iOS 14 it does not work :
UNAuthorizationOptions authOptions = UNAuthorizationOptionAlert |
				UNAuthorizationOptionSound | UNAuthorizationOptionBadge;
[[UNUserNotificationCenter currentNotificationCenter] requestAuthorizationWithOptions:authOptions
				completionHandler:^(BOOL granted, NSError * _Nullable error) {
						 NSLog(@"%i %@",granted, error);
				}];
and then it immediately gets into the call handler without showing the notification permission panel :
2020-09-18 18:05:46.657991-0700 My App [404:9600] 0 Error Domain=UNErrorDomain Code=1 "Notifications are not allowed for this application" UserInfo={NSLocalizedDescription=Notifications are not allowed for this application}
What am I missing?