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

How can I run the iOS 7.1 Simulator in Xcode 7.0 beta 2?

Took a lot of browsing but I finally found a solution that worked for me (tried Gend’s answer but didn’t work). Execute the following lines: sudo mv “/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 7.1.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/host/liblaunch_sim.dylib”{,.bak} sudo ln -sf “/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/system/host/liblaunch_sim.dylib” “/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 7.1.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/host/liblaunch_sim.dylib” Source: https://gist.github.com/leecade/83b4e710d7c741152527

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

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