Copy files to application documents directory to iOS simulator - ios

Is there some easy way to copy files to simulate iTunes file sharing in the simulator?
At this moment I print the directory name from the simulator, find out it's something like /Users/user/Library/Application Support/iPhone Simulator/6.1/Applications/720B1124-F678-442A-9A1F-58A03736ABA8/Documents and copy files there in my favourite file manager.
Is there some Xcode tool that can automate this for deployment for different simulators or computers?

Related

How to Install .ipa File on XCode iOS Simulator

I have downloaded an .ipa file from an iOS developer for our project.
I need to test the app on my simulator because I don't have a physical device, but I don't know how to.
how to install the .ipa file to XCode iOS Simulator? I have been read the difference between emulator and simulator, which the .ipa only able installed on real device and emulator while the .app only able installed on simulator. The emulator also mimic the real device's hardware and software while simulator only mimic the software and interface. If those differences above are true, does anyone know how to convert the .ipa to working .app file? I have been tried changed the .ipa to .zip by rename it then extract it and last, drag and drop the .app file (in the payload folder after extracted) to my simulator but failed, the message is "Please update the app". I also tried the command xcrun simctl install but failed. Currently, I am using the Mac with Big Sur and XCode 12. I can't download the project because the project size is very big and my internet too slow for download it, Thank you all
Since you have the ability to run the simulator, You have the ability to have Xcode installed.
Rather than have the developer send you the IPA file, you could get access to the source code for your project (usually this is on a Git service provider) download the source and build the app to the simulator directly.
In a well set up project it shouldn't be hard to clone the repository, maybe run some configuration, then open Xcode and build to the simulator
I have the same problem, and refer to that link before. it seems noway but to buy an iphone test device...

How to build .ipa and install it on iphone form xcode?

I have installed MacOS 10.12 Using VMware and successfully implemented Ionic 2 app for IOS. I have also generated an .ipa file using the following method:
Clean your project.
Build your project.
Go to products menu -> select build for -> select Profiling.
In project navigator, find your .app product.
Right click on it and click show in finder.
There you will find folder named "Release-iphoneos", in
this folder you will find your .app extension file.
Create a
folder named "Payload", copy that .app file in this folder.
Archive your folder.
After archive, rename your folder to name of
your app and change its extension from ".zip" to ".ipa"
Your ipa is ready for sharing.
From the above technique I got my .ipa file. Then, to install this app on iPhone i am using www.diawi.com . Now the problem is, when i am installing app from my safari browser on iphone download issue is showing. My internet connection is all good. I can also see the installation process on my iphone but app is not installing.
Note: I don't have Apple developer program. I need to build and install this app for testing in different iPhones.
Please suggest any other way to install my app on iPhone or another technique to build and share the app. My configuration is as follows:
Mac OS - 10.12 Sierra(VM-ware machine), Xcode- 8.3.3.
I tried so many articles but not sure where am i getting wrong. please suggest.
For that you will need to be enrolled with the Apple developer program (99$ a year). There is no other way.
Or you need to install it manually by plugging the iPhone in the computer and running the code in XCode (keep in mind that the default certificate will let your app run for 7 days then it will get expired)
to make .ipa file Archive your project and export your binary as developent or deployment.
You can install your .ipa file manually.Connect your iPhone with your computer and drag .ipa file in your iPhone application folder.

How to find IPA file through ApplicationLoader

I work in Visual Studio for Windows. For building iOS app VS use Mac as build server. After building process I have IPA file at the windows host.
Than I need to upload it through ApplicationLoader. But ApplicationLoader is running on Mac and how can it access to windows host ipa?
The Visual Stuiod has command 'Show IPA file on build server' and when I use it I see finder is opened at someplace at Mac. But what is this place?
I start ApplicationLoader and try to find this IPA file without success.
Where is it? As workaround I copied (drag&drop) ipa file from this unknown folder to Mac desktop and selected the file from there.
When I upload ipa to iTunesConnect I don't see loaded symbols! Why the symbols isn't loaded?
And the last. I heard about fastlane that it prefer way to upload symbols to Crashlytics. So how can it worked as project files placed in Windows host?
You can't find ipa file after archive because it will not create ipa.
You need to create file manually .
Follow this steps to create .ipa
Right click on recent archive file in organisation and select show in finder option.
After you will .xcarchive file.
Right click on that file an select Show Package and content option.
Under Product folder. you can find .app file.
Drag .app file to application section in itunes after completion of process right click on icon and select show in finder option.
That's your ipa File .
Second solution
Build your project with production certificate .
After Build under product folder you can see .app file and show it in finder .
Follow to 5 and 6 from above solution.
You need to archive .ipa, not just build for release.

.dSYM file missing in VSTS build

I am building the Xamarin ios app on VSTS. I see that its generating .dSYM file during the build time but when I check the artifact folder, I could see ipa file but not dSYM file.
I need dSYM file to run Xamarin Test Cloud.
Am I looking at wrong place or do I need to do something different to get .dSYM file ?
When building iOS apps from visual studio, the .dSYM file that can be used to symbolicate crash reports ends up on the build host at path:
/Users/<username>/Library/Caches/Xamarin/mtbs/builds/<appname>/<guid>/bin/iPhone/<configuration>
https://kb.xamarin.com/customer/portal/articles/1969488--where-can-i-find-the-dsym-file-to-symbolicate-ios-crash-logs-

can not copy images to iPhone DCIM folder

I am automating one iOS test case where I need to add some images to media partition of iOS device. I used iFuse to mount media partition to my OS X.
I used
$ifuse mountdir
Command to mount media partion to mountdir on my hardisk. Mounting is successful. When I do ls -l , I could see all the folder on my iOS device. But when I try to copy image using either finder or cp command, it fails.
Sometimes copying using finder fails but still file is created. But it is not shown in Photos app on iOS device.
Please note this question is not just about copying images to iOS device. It is about using a command line option like iFuse to be incorporated in test automation.

Resources