Create .xcappdata from ios simulator - ios

I know how to download files *.xcappdata from iOS device and use it during test and running simulation.
There is a similar feature for downloading data from iOS simulator?
Now I manually copy/restore application folder inside the simulator but using the xCode functionality can be very handy.
thanks.

Related

Converting a Xamarin.forms iOS app into Xcode app

I am having a problem but can't seem to find the much-needed information online, having trawled through the internet. I have Xamarin.forms iOS app that I want to test. I cannot run iOS in windows so transferred to mac.
To inspect elements in the app, I need to open the app in Xcode or appium inspector, so I created an Xcode project from the source control containing the Xamarin.forms iOS app. I ran the project and the build was successful.
I deployed the compiled app to an iOS simulator and it deployed okay. This is where the problem is - The deployed app open in the simulator as a blank app showing a white screen with only the battery indicator and a clock showing at the top of the blank white screen. The app is not visible.
From research, I read that this blankness is due to the fact that I was trying to open a Xamarin built app in a native Xcode. In this case, how can I convert this Xamarin.forms iOS app into a native Xcode app so I can open it in an Xcode simulator? I will appreciate any helpful input
That is not how it supposed to work, You only need the mac to compile no to run the project. You need to connect your windows machine to the mac using your LAN and just send the code to it to compile it and retrieves back the code ready for you to open it in your windows machine iOS emulator. Then you can debug to inspect your elements as desired.

Installing PDF reader in iOS simulator

Currently I am using Xcode 8.3.3 and Xcode 9 Beta 4.
How do I install a PDF reader and email apps in the iOS simulator.
I have gone through this link:
Is it possible to install Adobe reader or third party application in iOS simulator for testing?
and
*How to install iPhone application in iPhone Simulator.
But it was of no use.
I even tried the drag and drop method. It shows the process, but then it displays the error "unable to install the app".
How do I add applications in simulators? Currently I don't have any devices, so I want to test the functionality on the simulator.
After trying a few options and going through some folders, I am confirmed that it can be done. Can it be done by placing the payload files of PDF viewers in iPhone simulator's application folder?
If it's an app built for the simulator, then yes it can be done using the methods you linked to.
If this is an app built for the AppStore, then it's not possible. Apps built for AppStore are compiled for ARM CPUs; for simulators, they're compiled for x86.
Firstly, read these steps. However for me, the second step was not working. So I went for alternative method.
You need an iPhone for the above. If you don't have one, search the web for .ipa file of that apps and follow above procedure. Or you can use open source projects like: https://github.com/Alua-Kinzhebayeva/iOS-PDF-Reader.
Run this project for the first time. Go to project navigator:
Right click on the PDFReader.app and click "Show in Finder".
Copy and paste it in this folder Applications > Xcode.app (right click - Show Package Contents) > Contents > Developer > Platforms > iPhoneSimulator.platform > SDKs > iPhoneSimulator7.0.sdk > Applications.
and reboot the simulator. The app will be preinstalled like other apps in simulator. Ready enough to test your app functionality with pdf readers or any app you want.

How to transfer app between iOS 9 simulators

When I create a program and run it in iOS 9 simulator everything works fine. The app gets created and saved in path like:
/Users/MichalKolar/Library/Developer/CoreSimulator/Devices/567DCC64-3388-4A7B-A14C-677210F1A24A/data/Containers/Bundle/Application/6E72B743-051D-4232-A3F6-7FB94A1F317E
It is visible in the simulator and it nicely works. I want to give it to a friend of mine to do some testing:
I deploy the same simulator on his Mac and his xCode, same iOS version
I copy the folder 6E72.... to the same folder structure on his Mac
I verify that both the .APP and hidden .PLIST files are successfully
copied
I launch the simulator in my friends Mac...
...and I do NOT see the application there.
Please advise - what is wrong? It behaves this way even for the simplest application (just a blank page, no specifics)... Tested in xCode 7.1 and 7.2 beta. iOS 8.4 apps are not problematic, just the iOS 9 are.
Thank you!
I think you can't do what you are trying to do. Btw why not building app on his Mac if he has Xcode ?
You must use TestFlight or Ad-hoc distribution to make available app for testers. Or if your friend is near you, deploy app directly on his/your iPhone.

Test Qt app in ios Device

i've developped an application using QtQuick, it's running great on Android and ios simulator. now i want to test it in iPhone or ios real device.
So do i need to pay for that, or there is a way to test it for free.
In the build file for iosSimulator there a file with the app in the folder "Release-iphonesimulator", will this file work on the device ?
Recently, Xcode 7 beta 4 was released and one of the main features is that you no longer need to pay for deploying to your own device, all you need is your simple apple account.
After you do all the "Configure Device for Development in Xcode" stuff
Using Qt 5.5 (the newest) build your project and before trying to deploy it to your device, go to the place where the build for iphone is, and open it with Xcode 7 beta 4 (the .xcodeproj) and try to run it, it will fail and will ask you if you want to fix the project, say yes and again it will fail but no problem, now go to Qt and you should be able to deploy the app to your iphone. This worked for me!

How to import 'route.h' from the SDK into my project

My application works fine in the iOS simulator (running iOS 8.1).
The build target of the app is for iOS version 7.0.
When I try to run my app on my real iPhone (running iOS 7.0), the build fails- the reason being, route.h file is missing.
How can I extract this file from the iOS simulator SDK present in my mac, and add it to my project?
Basically, I'm trying to run my app on my phone, without updating the phone to version 8.1.
As I'm new to iOS development, I have no idea where the SDK is even stored on the drive, or how to access it.
(I'm using Xcode 6.)

Resources