iOS 10 GM with xcode 8 GM causes views to disappear due to roundedCorners & clipsToBounds

I am not sure if this is a new requirement, but I solved this by adding [self layoutIfNeeded]; before doing any cornerRadius stuff. So my new custom awakeFromNib looks like this: – (void)awakeFromNib { [super awakeFromNib]; [self layoutIfNeeded]; self.tag2label.layer.cornerRadius=self.tag2label.frame.size.height/2; self.tag2label.clipsToBounds=YES; } Now they all appear fine.

NSPhotoLibraryUsageDescription in Xcode8

Localizing of info.plist file may be very unuseful, especially if you use many languages in your apps. The simplest way for localizing NSPhotoLibraryUsageDescription, NSLocationWhenInUseUsageDescriptionor NSCameraUsageDescription keys is to describe it in InfoPlist.strings file. Create new *.strings file with name InfoPlist; Press Localize… button in file inspector and choose the default language; Add new records in … Read more

UNUserNotificationCenter did receive response with completion handler is never called iOS10, swift 2.3

Request identifier is not the notification category. Just add this line: content.categoryIdentifier = identifier Update: Just made a simple app. Everything seems to working fine: class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterDelegate { var window: UIWindow? func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { UNUserNotificationCenter.current().delegate = self UNUserNotificationCenter.current().requestAuthorization(options: [.alert, .badge, .sound]) { (granted, error) … Read more

libMobileGestalt MobileGestaltSupport.m:153 MobileGestalt.c:550 Xcode Console

I had a similar issue: 2017-08-04 12:02:44.936288+0100 Demos[1112:472604] libMobileGestalt MobileGestaltSupport.m:153: pid 1112 (Demos) does not have sandbox access for frZQaeyWLUvLjeuEK43hmg and IS NOT appropriately entitled 2017-08-04 12:02:44.936524+0100 Demos[1112:472604] libMobileGestalt MobileGestalt.c:550: no access to InverseDeviceID (see ) 2017-08-04 12:02:44.970997+0100 Demos[1112:472749] [INFO] {DefaultFileSource}[Database]: cannot open file at line 38277 of [0e5ffd9123] (Code 14) 2017-08-04 12:02:44.971157+0100 Demos[1112:472749] [INFO] … Read more

iTunes software service authentication error domain error 434

So this has what worked for me: Preface: 4 days of debugging, recreated certificates numerous times, nothing worked, every time i try to validate/upload via Xcode it says same error “iTunes software service authentication error domain error 434” Solution without XCode: Create archive in Xcode Export IPA in Organiser (Xcode > window > Organiser) Open … Read more

ios10: viewDidLoad frame width/height not initialized correctly

The most common issues you describe are appearing in iOS 10 only and can be solved by adding this line (if necessary): self.view.layoutIfNeeded() just above the code, that is responsible for changing constraint, layer.cornerRadius etc. OR place your code related to frames / layers into viewDidLayoutSubviews() method: override func viewDidLayoutSubviews() { super.viewDidLayoutSubviews() view.layer.cornerRadius = self.myView.frame.size.width/2 … Read more