Where is a Mac Application’s NSUserDefaults Data Stored?

They can be found in more than one place: ~/Library/Preferences/com.example.myapp.plist ~/Library/SyncedPreferences/com.example.myapp.plist and if sandboxed ~/Library/Containers/com.example.myapp/Data/Library/Preferences/com.example.myapp.plist ~/Library/Containers/com.example.myapp/Data/Library/SyncedPreferences/com.example.myapp.plist

iOS 10 – Changes in asking permissions of Camera, microphone and Photo Library causing application to crash

[UPDATED privacy keys list to iOS 13 – see below] There is a list of all Cocoa Keys that you can specify in your Info.plist file: https://developer.apple.com/library/content/documentation/General/Reference/InfoPlistKeyReference/Articles/CocoaKeys.html (Xcode: Target -> Info -> Custom iOS Target Properties) iOS already required permissions to access microphone, camera, and media library earlier (iOS 6, iOS 7), but since iOS … Read more

CFBundleVersion in the Info.plist Upload Error

There’s at least 1 known bug in Apple’s upload server that they’ve not fixed for more than 12 months. Things to beware of: Apple deletes any leading zeroes inside the version number; i.e. the “whole string” is NOT treated as a number, instead the bits between dots are treated as SEPARATE numbers. e.g. “1.02” is … Read more

Where are ${EXECUTABLE_NAME} and ${PRODUCT_NAME} defined

The PRODUCT_NAME is defined in the target’s Build Settings in the Packaging section. It has the same name by default as your project. Edit: While PRODUCT_NAME is by default the name of the Target (MyDemoApp in this case). The EXECUTABLE_NAME is a concatenation of: $EXECUTABLE_PREFIX, $PRODUCT_NAME and $EXECUTABLE_SUFFIX. See the reference of EXECUTABLE_NAME for details. … Read more

NSCameraUsageDescription in iOS 10.0 runtime crash?

After iOS 10 you have to define and provide a usage description of all the system’s privacy-sensitive data accessed by your app in Info.plist as below: Calendar Key : Privacy – Calendars Usage Description Value : $(PRODUCT_NAME) calendar events Reminder : Key : Privacy – Reminders Usage Description Value : $(PRODUCT_NAME) reminder use Contact : … Read more

How to localise a string inside the iOS info.plist file?

You should use InfoPlist.strings file (keep both I & P capital) to localize values of Info.plist. To do this, go to File->New->File, choose Strings File under Resource tab of iOS, name it InfoPlist, and create. Open and insert the Info.plist values you want to localize like: NSLocationWhenInUseUsageDescription = “Description of this”; Now you can localize … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)