Blog

How to import Objective-C framework in Swift framework

In a normal swift project we would create a bridging-header and import our objective-C framework in the bridging-header. In the case of a framework you will need to create a custom swift module. Let’s say you have an objective-C framework called MyFramework. Firstly, add your framework to the project: Then you need to add an … Continue reading How to import Objective-C framework in Swift framework

Resign an IPA file including frameworks

Run these commands from the terminal in the folder where you have YOUR_IPA.ipa file. unzip -q YOUR_IPA.ipa rm -rf Payload/YOUR_IPA.app/_CodeSignature rm -rf Payload/YOUR_IPA.app/Frameworks/X.framework/_CodeSignature codesign -f -s "iPhone Distribution: XXX (XXXX)" Payload/YOUR_IPA.app/Frameworks/X.framework security cms -D -i PRODUCTION.mobileprovision > pr.plist /usr/libexec/PlistBuddy -x -c 'Print :Entitlements' pr.plist > YOUR_Plist.plist codesign -f -s "iPhone Distribution: XXX (XXXX)" --entitlements YOUR_Plist.plist Payload/YOUR_IPA.app zip … Continue reading Resign an IPA file including frameworks

Safe area fix guide for earlier versions of iOS

Safe area layout is introduced in iOS11 but what can we do if we are supporting < iOS 11 and we have a xib view that is initiated in a ViewController and somehow the upper part of the xib view appears behind the NavigationBar??? To fix this, simply add this line in your viewDidLoad. self.edgesForExtendedLayout … Continue reading Safe area fix guide for earlier versions of iOS