Swift debugger does not show variable values when importing ObjC framework

I got a message from an Apple developer stating that they’ve observed this problem, and that it could be fixed by moving the .framework to a subfolder of the project. Apparently the module .. was built in directory error appears only if the .framework is in the same folder as the .xcodeproj aka $(PROJECT_DIR). However … Read more

Do I need English beside Base localization which would contain the exact same ‘translation’?

Apart from addressing question what language end-users will see, you need to consider also what will be shown in the AppStore. My current experience is that if you use Base for English, English won’t appear in list of supported languages (how Apple knows in which language your base localization is) in the description of your … 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

Difference between Frame Rectangle and Alignment Rectangle

Frames describe where to place views on the screen and how big those views will be. When laying out views, constraints use a related geometric element called an alignment rectangle. The alignment rectangle is based on the presentation of the item’s content, Auto Layout uses the alignment rectangle instead of the item’s frame rectangle. By … Read more

What source comments does Xcode recognize as tags?

There is also MARK, FIXME, !!! and ???, e.g. // FIXME: this bug needs to be fixed and // ???: WTF ??? You can see where these are defined in /Applications/Xcode.app/Contents/OtherFrameworks/XcodeEdit.framework/Versions/A/Resources/BaseSupport.xclangspec (or /Developer/Library/PrivateFrameworks/XcodeEdit.framework/Resources/BaseSupport.xclangspec for older versions of Xcode). Presumably you could also add your own tags here if you wanted to but I have not … Read more