Xcode12 – building for iOS Simulator, but linking in object file built for macOS, file ‘dir/SomeFile.a’ for architecture x86_64

Getting linker error in Xcode 12 when I am trying to build my large iOS app (hybrid, swift+objc). The application is building fine for real device, but It gives linker error when I am trying to run in Simulator directly with Debug configuration. I have tried all possible solutions in other post here, but unfortunately […]

How to expose API in between two dependent modules for compile time usage?

How to expose API in between two dependent modules for compile time usage? While working in an iOS/Swift application, an SDK A exposed supported feature list API which provides collection of supported feature names (string array) to 3rd party application B. Now inside application B, developers require to use the supported features while writing code […]

By Sazzad Hissain Khan
Published
Categorised as arrays, design-patterns, enums, ios, swift

Is there any way to disable all thrown exceptions in iOS market release?

Working on an iOS app. Apart from deciding whether it is right action or not, is there any way to disable all exception (which are thrown) in iOS market release? So that it will act like, all exceptions will be received in a common block which will do nothing. Source: Ios

By Sazzad Hissain Khan
Published
Categorised as app-store, exception, ios, release, xcode

How to send push certificate to APNS while calling their APIs?

Have been stuck for sending push notification using apns push certificate from my server app (Spring Boot Application). Apple discussed here on an overview of how we can send push with certificate but there is no technical detail about TLS communication (specially, on how I can send my push certificate to APNS and proceed API […]

Why do iOS Data Protection delegates getting called multiple times?

While working on iOS, Objective C, I found the delegate of UIApplicationDelegate, applicationProtectedDataDidBecomeAvailable is getting called multiple times after device unlocked. What could be the possible reasons? applicationProtectedDataDidBecomeAvailable – On a device that uses content protection, protected files are stored in an encrypted form and made available only at certain times, usually when the device […]

By Sazzad Hissain Khan
Published
Categorised as appdelegate, data-protection, ios, objective-c, security

How do Framework and Static Library differ for inversion of control in iOS?

In one of the answers for a question on iOS Framework vs. Static Library, yoAlex5 quoted, A Library is essentially a set of functions that you can call, these days usually organized into classes. Each call does some work and returns control to the client. A Framework embodies some abstract design, with more behavior built […]

Potential CM database inconsistency, time jump

My iOS app is getting crashed when I change device time to future (i.e. 1/2 years ahead). The crash log has no relation with my application. Note that I tried to launch some of other 3rd party apps with future time setting and found them facing similar crashes while being launched. Although, some other 3rd […]

By Sazzad Hissain Khan
Published
Categorised as crash, datetime, ios, provisioning-profile, xcode

isProtectedDataAvailable is returning true always in iOS

Problem isProtectedDataAvailable is true but applicationProtectedDataDidBecomeAvailable is getting called after 10~20 seconds in iOS which means isProtectedDataAvailable was supposed to be false before that callback is called. I am working on iOS app built in Objective C. I have enabled data protection (currently configured for FirstUserAuthentication) for my app from AppStore profiles as well as […]

By Sazzad Hissain Khan
Published
Categorised as appdelegate, data-protection, ios, objective-c, xcode

When can I safely delete Xcode DerivedData folder?

I have been working in iOS project. Regarding Xcode Derived Data folder whose contents are generated by build system, there are many Stackoverflow posts, i.e. how to remove derived data folder or is it safe to remove derived data folder, etc. but there is none which I am looking for. My question is to know […]

By Sazzad Hissain Khan
Published
Categorised as build, configuration, ios, xcode, xcodebuild

When should I delete Xcode Derived Data folder and when should I not?

I have been working in iOS project. Regarding Xcode Derived Data folder whose contents are generated by build system, there are many Stackoverflow posts, i.e. how to remove derived data folder or is it safe to remove derived data folder, etc. but there is none which I am looking for. My question is to know […]

By Sazzad Hissain Khan
Published
Categorised as build, configuration, ios, xcode, xcodebuild

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq