Installing PDF reader in iOS simulator - ios

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.

Related

How to build reactnative v0.45 project to ios realse

I'm using the latest reactnative verion 0.45 and I didn't get a clue on the official doc about how to build the ios release.
About how to the running on ios device section of the doc quoted here:
Connect your iOS device to your Mac using a USB to Lightning cable.
Navigate to the ios folder in your project, then open the .xcodeproj
file within it using Xcode.
But there is no ios folder found after running command npm ios. And most StackOverflow answers like this one require a command like react-native-bundle which was not found either.
I have already got Xcode and an app develop member account and Really want to build my first reactnative app to my iphone before I could do more stuff on it.
I know this might be a very newbie question. If someone could just give some guide or throw some docs about this?
I stuck on this problem since a few days too, unless you will not get an ios or android folder any more with React Native 0.45.
You can build your standalone app by using Expo: https://docs.expo.io/versions/v17.0.0/guides/building-standalone-apps.html
As I understand, they build your app for you online, so it takes some time and require an free expo-account, but after it finised, you can download your .apk or .ipa to submit it to Play Store or AppStore.
When you want to add more custom (non javascript) code to your project and edit it in Andoid Studio or Xcode, so you have to eject your from Reative Native: https://github.com/react-community/create-react-native-app/blob/master/EJECTING.md
After that, you can test your App by building for your own in the simulator, with no need of the Expo-App.
Open the ios folder of your project using xcode
Connect your phone and select your phone from the device selection dropdown
Select the first tab in the explorer and go to signing area, select your development team
Click play and it will install the app in your phone on development mode
For Production build, you can do the same. However, you would need to change your scheme to production:
Open scheme menu under product. From the dropdown, look all the way down, you'll find the menu Edit Scheme, select this.
Select the Release scheme, hit close and re-run your project in your phone.
Note: if you are building for release, make sure your target device is Generic iOS Device
Hope it helps! :)

Is there a way to test my Xcode 7.2-compiled app with iOS 9.3?

I have the iOS 9.3 beta installed on a testing device as I'm running a few 9.3-compiled apps, but I also have an old app that is compiled in Xcode 7.2. I can run the app on any iOS 9.2 device with ease, but if I try to run it on the one iOS 9.3 beta device, I get the "could not find Developer Disk Image" error.
Xcode 7.3 includes some updates to Swift, so I'd have to change a great deal of my files, and I just want to test to see if it's working fine. Is there any way to do this without having to change a lot of Swift code? It's on the App Store compiled for 9.2 and I can run it on my 9.3 device, so I don't understand why it's so difficult.
If you want to avoid the beta version of Xcode from potentially altering your original project, just make a copy of the project and then just open it up in the beta version. If you have an app running in Swift 2.1.1 (Xcode 7.2), the differences to Swift 2.2 (Xcode 7.3) are pretty modest. And if you do this with a copy, you can be confident that your original project won't be altered.
If you don't want to do that for some reason you can install apps from a production version of Xcode on a device running a beta version of iOS:
First, you want to make sure you have the profiles installed on your beta iOS device. The easiest way to do this is to run some "Hello World" app on your beta device from the beta Xcode. If prompted to add a team/profile onto your device, you should go ahead and do so, like usual.
Quit the beta Xcode and start the production Xcode and open the project for the app you want to install. Select "Generic iOS Device" where you choose the active scheme in jump bar and then build the app. You should then see the .app file (not in red) in the Products folder in the "Project Navigator" tree in the left panel.
Install the app on the device by opening the devices window (shift+command+2) and selecting the device in question. In the right panel (or top right panel if you're showing the console, too), you'll find a "Installed Apps" section. Just drag the .app file from the Products folder into this installed apps section.
Clearly, if you have other apps you want to install, you can just repeat steps 2 and 3 as appropriate.
There are a bunch of different ways to install an app on a device, but I find this is the easiest for one-off installs with a device sitting in front of me. You won't be able to debug if you do it this way, but you can at least fire it up, run it through its paces, watch the device console for any debugging messages you may be NSLog'ing, etc.

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!

where I can find the iphone simulator for launching xamarin IOS Application

I am pulling my hair on this Issue . Actually I am developing first time IOS Application with the help of xamarin. I am creating this Application on MAC. The Hello world Application has been Created. I have take Referenced from Xamarin Hello World Tutorial . But I have not getting the IOS Simulator Option in devices drop down. It have only two option ,Ios Device and Default.For the simulator ,Is There need any Installation or something else.Please help me and any help will be Appreciated.
Does it find XCode in the right location? Check by clicking Xamarin Studio>Preferences>SDK Locations>Apple. If the Apple SDK was not found, you can manually specify XCode location path.
I had this problem because I was trying to create and use an iOS project using the "Unified API." I suggest not using this and sticking with the "Classic API." The former does not work (it won't build) if you want to use the simulator rather than a real device.
Are you not getting screen like below.???
go through below link , it may help you my friend..
http://docs.xamarin.com/guides/ios/getting_started/installation/mac/
I think you don't have iOS SDKs for your Xcode, usually it comes with the Xcode but if for some reasons you don't find it, simply follow the steps listed below:
Go to Finder > Applications > XCode (Right Click) > Show Package Content
A new finder window will open with Contents folder
Content > Developer > Platforms > iPhoneSimulator.platform > Developer > SDKs > Here you should get the list of *.sdk files
If there are no files then download the SDK file and paste it here, close the Xcode, Monotouch, and again Open it, you should find the iOS simulators in the dropdown.
You should be able to get the Xcode and SDk here
Please verify if you have installed Xcode correctly because it usually contains atleast 1 SDK
It was the Issue of xcode version.I have updated the version Now ots working fine.Thanks JAL.
select Debug-iPhoneSimulator option Image1
Right click on the project in your solution pane
select Run with iPhoneSimulator Image2

How do I deploy to a jailbroken device running ios 6.1?

I am learning iOS programming, is it possible to deploy my app to a jailbroken ios 6.1 device? if so please advice, thanks. btw,im using Xcode 4.6 on Mac OS X Mountain Lion 10.8.2
Install appsync 5.0+ on your jailbroken device.
Download jailcoder from HERE.
Right click on JailCoder.app -> Show Package Contents, then from folder Resource.
Copy two certificate iPhone Developer.cer and iPhone Developer.p12 to your desktop.
Then CMD+Space and type Keychain ENTER (to open Keychain Access), from left view select login.
Click on File menu click on Import Items, choose iPhone Developer.cer to import. Choose always trust and give your system passward it asked.
Again click on File menu Click on import items, choose iPhone Developer.p12 to import.
now enter the password "jailcoder" and ignore error msg.
That's it! Now try to build or archive your project.
Good Luck

Resources