iTunes file sharing with iOS device on windows - objective-c

I have modified my info.plist with "Application supports iTunes file sharing" = YES.
File sharing is working perfectly fine when using a Mac machine, but if I save a file on a windows machine, it gives me a blank file (0 kb data). iTunes shows me the correct size for the file.
I am using the latest version of iTunes.
Any ideas on how to resolve this?

Related

How to see the content of keystore in Android simulator

I am using react-native-keychain to store sensitive information in the users' device. I want to see if this is stored properly in Android Keystore, but I don't know how.
I could use SQLite Browser to see the data in keychain of my iOS simulator using its device ID, but I don't know where the data is for my Android simulator.
This package probably stores them inside SharedPreferences. You can use Android Studio to open the relevant XML file (that's how they are stored).
Open Android Studio and Device File Explorer. Then, please find:
/data/data/[package name/shared_prefs
You can browse the file and check if the values that you needed to store are inside.

How to extract ipa file from jail broken device

I have a jailbroken iPhone 5s, and want to extract the .ipa file of one application that I have installed on that device. Is this possible, and if so, how?
Is it possible to extract the .ipa file from the iPhone without jailbreaking it? My intention is to perform static analysis of the application.
Since you have a jailbroken iOS device, try installing ipainstaller from Cydia and then use ipainstaller to extract the app to an .ipa file.
I use ipainstaller -l to list all the apps installed on my jailbroken device and grab the bundle id of that app you wish to extract. Extract it using ipainstaller -b <app_bundle>.
It appears that IPA Installer from Cydia has not been updated since July 2016. That last version, 3.4.1-1, only supports up to iOS 9.
However, with iMazing, you can get something close. If you have previously "purchased"/downloaded an app from the Appstore, then are using the same Apple ID logged in to the Appstore, you can download it again. It appears that iMazing may be using the same Appstore API, so once you are logged in to the same Apple ID, you can download the ipa again. Except, this time, it would be downloaded to your Mac as an ipa, rather than iOS device. So it is technically not retrieving the ipa from the iOS device (it no longer exists in the device as an ipa anyway), but getting it from the Appstore. Then you can proceed with your static analysis.

file name grayed out in browse window when try to upload video file to my website in mac safari

when user click on browse bottom and try to upload video file to the site (MP4 for example) from mac safari the file grayed out (disabled) and it can't be selected.
it happens only for video files and only in mac Safari.
in others browsers in work good.
when I try to upload MP3 file it also work.
I experience this "bug" on a daily basis with Safari. The bug has not been patched or fixed and still exists today with Safari 13.0.2 and macOS Catalina.
The workaround is this. When the file selection window opens, control-click on the file and select Quick View from the menu. Then go back to the file selection window and you will be able to click on it for upload. Ridiculous that this hasn't been fixed by Apple.
select the file (either jpeg or png) and rename to filename.jpeg><filename.png> so the file type remain same.
worked for me.
Upgrade safari to the latest version since this was a bug that mac had which they patched in the most recent version since others had the problem too.

Can I download my own binaries from iTunes Connect?

The mac where I wrote my app is broken and so I cant access the code any more.
I uploaded it to my iTunes Connect account already. Is there a way to download the binaries from my account again?
Edit
iTunes for Mac version 12.7 removes the option to sync apps between your iOS devices and your Mac, and Apple has further removed the option to download iOS apps altogether from iTunes for Mac.
Consequently, the answer below no longer works... Bummer.
Outdated answer
As far as I know, there isn't a way to download the ipa (which is what's submitted to Apple) via iTunesConnect. However, it is possible to download the .ipa using iTunes.
Note, however, that the ipa will include resources (images, sound assets, etc), but the source code (.h, .m., etc) will be in a compiled format. Unfortunately, AFAIK, there is no way to download the source code in a non-compiled format via either iTunes or iTunesConnect.
Still, the assets alone may be useful in recreating a project. To download the ipa, try this:
Find and download your app using iTunes on your Mac. This will download the .ipa that you uploaded.
Open Finder > Goto Music > iTunes > iTunes Media > Mobile Applications (under Mac OSX 10.8.2, possibly within another directory under different versions of OSX)
Copy and paste your .ipa to another location, such as the Desktop (so it doesn't confuse iTunes)
Unzip the .ipa (Right click on the .ipa > Open With > Archive Utility/The Unarchiver/similar unzip program)
In the unzipped directory, you'll find your app under "Payload" > Your_App_Name.app
Right click on your .app file > Show Package Contents

Install an IPA through USB?

After using the "iPhone Configuration Utility" program to install IPA applications to my iPhone on the go, I wondered how this process worked. Within a few Google searches, I found out about "MobileDevice.framework" and the "MobileDevice Library" connected to it. After reading an article of all the Known Functions in the library, I found one called "AMDeviceInstallApplication". I thought this would work once I saw install, but I'm currently perplexed on how to use it.
TL;DR I have IPA files and I want to make an Xcode program (for Mac) that installs the IPA's application to a connected iOS device when a button is pressed.
Also, don't worry about the application not being signed correctly. It is signed with a provisioning profile installed on devices [the application] will be used with.
If you're still interested in this problem I've written a blog entry on how to install apps on a connected iPad / iPhone without using Xcode or iTunes.
This method allows you to run a Terminal command to install an iPA file.
http://pervasivecode.blogspot.co.uk/2012/06/install-ios-app-ipa-file-without-xcode.html
I suppose you could bundle up the terminal commands in your application and use it that way?
I found a simple way to install iPa file to real iPhone or iPad:
Connect iPhone to Mac via USB and follow the below steps:
Steps to follow:
Open Xcode
Click on Window
Select Devices and Simulators
Drag and drop the IPA files into it
App got installed on the iPad