Questions tagged [iphone-privateapi]

A question with this tag is about non-public (aka private) iOS APIs. Apple will reject apps that use non-public APIs, but they can be distributed using ad-hoc or enterprise distribution (on jailed and jailbroken devices), or through jailbreaks. The main difference from software development standpoint of iOS private API that such APIs aren't declared in header files. As result extra steps are required to figure out API signature for its usage.

Questions with this tag discuss which private API can be used to accomplish different tasks, what are private API's signatures, runtime restrictions for usage of private API and so on.

The words "private API" in a question doesn't automatically make it suitable for this tag. As example, questions regarding Apple policies (why something was rejected or how do they know whether app uses some private API) aren't good fit for this tag. First of all, it's not purely software development question (it's more legal, tools questions). Second, all questions with this tag imply that it will be used in application which won't be submitted to Apple.

508 questions
0
votes
0 answers

Private API to embed a Mac Catalyst component in a native AppKit app?

I would like to embed a Mac Catalyst component, like TOCropViewController or MessageKit (I am not providing a link to either to avoid getting this post flagged as spam, but if you google them you will find that they handle a lot of functionality…
0
votes
1 answer

iOS Contacts Favorites

I am trying to access the favorite contacts via the private frameworks. I followed the siphon code and got the frameworks from iOS-Runtime-Headers The code that I wrote to access the list is: NSBundle *b = [NSBundle…
Vibhor Goyal
  • 2,405
  • 2
  • 22
  • 35
0
votes
2 answers

UISegmentedControl : Private API

I am trying to customize a UISegmentedControl with that tutorial : http://www.framewreck.net/2010/07/custom-tintcolor-for-each-segment-of.html Do you know if this is private api ? I actually don't want my application to be rejected from the…
EricDumont
  • 63
  • 5
0
votes
1 answer

Set passcode on IOS Programatically

Is there anyway to set passcode on ios without manual intervention Ways I have tried Searched for Private APIs to set passcode, but couldn't find any Checked Apple MDM It has a command to Clear passcode but not for setting Can set passcode…
Sriteja Sugoor
  • 574
  • 3
  • 13
0
votes
2 answers

iPhone app compiled in XCode with a private framework doesn't work in iPhone

I'm writing an iPhone app that needs direct access to the camera. Since it is in-house, I have no qualms about using the full set of headers and private frameworks. I included and the PhotoLibrary framework in the application. It compiles for the…
J MacMillan
0
votes
1 answer

How to access the method in the Private API framework and pass the value to it?

First - I know private frameworks/APIs won't get me to the AppStore, this is for private use/research only. So as for the research purpose I chose MFMessageComposer I want to disable the editing of any inputs both of which are being passed from the…
0
votes
0 answers

ITMS-90338: Non-public API usage -> ADBannerView

Apple has sent us this email: We identified one or more issues with a recent delivery for your app. Please correct the following issues, then upload again. ITMS-90338: Non-public API usage - The app contains or inherits from non-public classes in…
NullPointerException
  • 36,107
  • 79
  • 222
  • 382
0
votes
1 answer

How to Call a Private macOS CoreFoundation Function from Swift

I'm looking for a way to use a private Apple API from within Swift code (namely, _CFPreferencesCopyApplicationMap, which allows you to look up the paths used for user defaults for any given application). See this answer for the motivation & the…
0
votes
0 answers

How can you make an IOS Screesaver like app that launches automatically and comes back after idle?

I saw this working in a phone shop. Its like a perfect screensaver app with information. How can this work on a non jailbroken phone? https://youtu.be/HN9L1yBJr98 Cheers, Andrew
0
votes
0 answers

Private API Enterprise account - iOS

I have to use some Apple private API (in particular Core telephony framework). I have a doubt: is it possible to use it and then distribute app by iOS Enterprise account? To clarify: I dont want to distribute app on store by only in my company by…
0
votes
0 answers

Swift: Casting UICollectionViewCell to Private Class type?

Through recursion, I have accessed a private collection view inside a child view controller. It contains cells of type IceCreamCell which hold a coneImageURL string. The problem is I'm not sure how to cast the accessed UICollectionViewCell to…
KingPolygon
  • 4,753
  • 7
  • 43
  • 72
0
votes
1 answer

how to get phone's model name in swift

I've been searching a while about this and I've found out that this can't be get from UIDevice.current.model, because it returns just iPhone. there were several answers pointing to this code: if let simulatorModelIdentifier =…
0
votes
0 answers

Any way to launch Siri programmatically in iOS 12 / 13 using private APIs or BLE?

I am trying to build a prototype where I want to launch Siri every time I press a button (on my guitar). I have been looking into using private APIs but haven't been able to find a solution yet. Any pointers? In particular I looking into long…
castillejoale
  • 519
  • 4
  • 13
0
votes
1 answer

Has anyone found **legal** overrides to customize drawing of NSTabView?

BGHUDAppKit BGHUDTabView _drawThemeTab private API override now broken For years, I have been using code originally based off of BGHUDAppKit, and found replacements for all of the private API that BGHUDAppKit overrides. Except for one that I could…
0
votes
1 answer

Change Call Audio routing from Bluetooth Headset to iPhone Speaker in iOS programatically

I need to transfer Call Audio routing from Bluetooth Headset to iPhone Device and vice versa, if Bluetooth device is paired. Any help will be appreciated ?
Jas_meet
  • 366
  • 1
  • 20