Atos cannot get symbols from dSYM of archived application

To properly get symbols from your archived app’s dSYM file and get useful information from your BugSense crash reports (or any other crash reports for that matter): Copy the stack trace from BugSense into TextEdit or any other text editor. Make sure to use the “clipboard” icon, rather than simply copying the text. Otherwise you … Read more

Xcode error ‘building for iOS Simulator, but linking in dylib built for iOS .. for architecture arm64’ from Apple Silicon M1 Mac

Answering my own question in a hope to help others who are having similar problems. (and until a good answer is added from another user) I found out that GoogleWebRTC actually requires its source to be compiled with x64 based on its source depo. For builds targeting iOS devices, this should be set to either … Read more

How can I disable landscape orientation?

To disable orientations for a particular View Controller, you should now override supportedInterfaceOrientations and preferredInterfaceOrientationForPresentation. – (UIInterfaceOrientationMask)supportedInterfaceOrientations { // Return a bitmask of supported orientations. If you need more, // use bitwise or (see the commented return). return UIInterfaceOrientationMaskPortrait; // return UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskPortraitUpsideDown; } – (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation { // Return the orientation you’d prefer – … Read more

iOS Designated Initializers : Using NS_DESIGNATED_INITIALIZER

The use of NS_DESIGNATED_INITIALIZER is nicely explained in http://useyourloaf.com/blog/2014/08/19/xcode-6-objective-c-modernization.html: The designated initializer guarantees the object is fully initialised by sending an initialization message to the superclass. The implementation detail becomes important to a user of the class when they subclass it. The rules for designated initializers in detail: A designated initializer must call (via super) … Read more

Change size of UIBarButtonItem (image) in Swift 3

This is how I did it iOS 10 and below func setUpMenuButton(){ let menuBtn = UIButton(type: .custom) menuBtn.frame = CGRect(x: 0.0, y: 0.0, width: 20, height: 20) menuBtn.setImage(UIImage(named:”menuIcon”), for: .normal) menuBtn.addTarget(self, action: #selector(vc.onMenuButtonPressed(_:)), for: UIControlEvents.touchUpInside) let menuBarItem = UIBarButtonItem(customView: menuBtn) self.navigationItem.leftBarButtonItem = menuBarItem } iOS 11 – Navigation bar come up with Autolayout so frame … Read more

Text in UITextField moves up after editing (center while editing)

I had a similar issue that started happening on iOS 9. Basically I have a UITextField in a collection view cell. Sometimes when the user is done typing and editing ends, the text “bounces” up then down again into its correct position. Very strange and annoying glitch. Simply making this tweak fixed the issue on … Read more