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

Swift: Extra argument ‘error’ in call

With Swift 2, the signature for NSJSONSerialization has changed, to conform to the new error handling system. Here’s an example of how to use it: do { if let jsonResult = try NSJSONSerialization.JSONObjectWithData(data, options: []) as? NSDictionary { print(jsonResult) } } catch let error as NSError { print(error.localizedDescription) } With Swift 3, the name of … Read more

iOS library to BitCode

When building static libraries you must add the following for bitcode generation: -fembed-bitcode for a dynamic library you need to additionally link with -fembed-bitcode Note: This command is only available with Xcode7+ In regards to the accepted answer of using -fembed-bitcode-marker You should be aware that a normal build with the -fembed-bitcode-marker option will produce … Read more