I think it's unlikely, but does anyone know a way to access the OSX file system from an iOS app, connected by USB? Specifically I'd like to access iTunes backup files from iOS.
An iOS app is sandboxed. It can't see outside the sandbox. And it is either running on a device or on the simulator, and either way it is unaware that your OS X computer even exists.
Related
Basically, I don't have a Mac.
But I'm aware of being able to virtually run a Mac throw solutions like Virtual Box or VMware on my Windows, despite how slow it will be. (I know it technically isn't legal).
What I'm asking is, will I be able to actually upload the compiled app to the app store without issues? Such as the App Store recognizing that it is not a legitimate device or something?
I've been using an app (Simblee app, to be specific) to manage some software components of a hardware device - an electric motor system. For example, the Simblee ios app is used as the UI to control some of the functionality of the hardware device like turning on the led lights on the device, managing how much power the device outputs, etc .
However, the app is no longer available through the App Store. I can still use the Simblee app on phones where the app has already been installed but I just got a new phone and I cannot use the Simblee through that phone. I saw online that it may be possible to convert the app from a phone to an ipa file. I've tried using iMazing to generate an ipa file but run into issues where the ipa file is corrupt. When I go on diawi to share this app with others, the error I get is: 4001009: Invalid .ipa file: missing embedded mobileprovision.
My question is two-fold:
1) Is there another way to convert the mobile app to an ipa file?
2) If not, is there a way to fix this error that I'm running into?
A mobile app is distributed via an IPA file. The problem you're facing is app signing. iOS apps are digitally signed by the App store for a specific device. You need to install the app from the app store in order to get it signed for a new device. I don't think there is a way to circumvent that step unless you use a jailbroken phone.
On Mac OS you can copy a Mac app from one Mac to another Mac with that uses the same AppleID in the app store and it will authenticate it and it will work, but I don't think you can do that with iOS apps.
tldr: I think you're out of luck.
I'd like to be able to test an app that's available in the iOS App Store from my Mac. I don't have access to the source code. Is there any method/program for being able to do this?
Is there any way I transfer the app from an iOS device to my mac and run that app on xCode?
Thanks in advance.
Does anyone have any idea how to access files in the mac from a device when the device is connected to the computer via USB?
This is the scenario so far.
We need to run some acceptance tests on device, and to save time, the tests are going to be run using mocktail. And since we have a couple thousand tail files, we can't bundle them and copy it out to the device (it's not practical, and probably bad practise anyways), so, we store the mocktail file in the project directory and not include them in the app.
This works great from simulator, given that the simulator is run on the mac, and it can access the files properly. However, when we tried to run the same tests in the device, it crapped out because it can not find the appropriate tail file (which makes sense). So far, I couldn't find anything to do this programmatically from Xcode.
Is there any way that one can access files in the computer from a device connected to it via USB programmatically in Objective-C?
Thank you very much in advance.
iOS devices do not have the proper drivers to pose as a USB host. You will have to bundle your files as resources in your app, or download them over the air.
AirDrop lets you share photos, documents, URLs, and other types of data with nearby devices. AirDrop takes advantage of peer-to-peer networking to find nearby devices and connect to them:
- Sending Files and Data to Another App.
- Receiving Files and Data Sent to Your App.
When running an app on an iPhone/iPad via Xcode, is there anyway to open files for writing on the Mac?
I have an app which requires the device to run, so using the simulator isn't an option. I do however need to analyze some of the app's output. Currently I have to write to files on the device, and then manually sync them to the Mac. I'm looking for a way to write my files to the Mac directly.
I recommend using NSLogger to stream your log data via Bonjour to the Mac. It has a Mac application that allows you view the data as it is coming in.
For more advanced logging you can also combine NSLogger with the CocoaLumberJack framework using this connector project.
Probably the best possible solution for your situation probably rests with leveraging the console and NSLog to redirect output to a file - that's an open channel between the device and the Mac you can leverage as long as your running the app from Xcode.
There are a number of questions and answers relating to how to do this - here's one:
Log XCode gdb output to file with .gdbinit
This solution assumes that you only need to be doing this when running the app through Xcode, which your question implies. If you need to write to the Mac when running the app directly on the device (not debugging) you would need to use some type of network file transfer, such as FTP or HTTP. You could probably whip up a simple HTTP-based logging app that would run on the Mac using:
https://github.com/robbiehanson/CocoaHTTPServer
Then you would just send the content line-by-line to the server. Many other possible approaches along those lines, and probably an existing Mac-based solution you could leverage.