Xcode 8 - How can I give the .app file to someone else to test - swift

I have an Android developer, who has downloaded XCode. I just want to give him the app file to run in his XCode simulator.
How would I get that to him and how would he "install" it in his iOS simulator?

These were all good ideas in their own right.
I found the answer here:
https://medium.com/#hollanderbart/new-features-in-xcode-8-2-simulator-fc64a4014a5f#.68c92c2or
This appears to be a new feature in 8.2.

Related

I am getting an error in Xcode : "Could not find Developer disk image" [duplicate]

This question already has answers here:
Xcode error "Could not find Developer Disk Image"
(25 answers)
Closed 6 years ago.
I am trying to install application in my iPhone but right now i'm facing critical problem during installation. It works perfectly in Xcode simulator but when I am testing it on my iPhone it gives me error message like "Could not find developer disk image". I have Xcode version 7.2 and iOS 9.3.1(13E38) version in iPhone. So what I need to do to install the application in iPhone?
You need to update Xcode to run your apps on software that new. Xcode 7.2 does not include iOS 9.3.1 beta sdk.
Xcode download
Maybe you need to wait for the Xcode's update for iOS9.3.1 that your Xcode could support your iPhone. Commonly I don't update my testing phone to avoid trouble.
Upload Xcode to the latest version as the IOS Updated you need to update Xcode as well, or you can generate an Url for your build and install it on ur phone/pad
The best way is to update the Xcode to it's latest version. But if you don't want to update there is other way to do it is get disk image from any of your other developer friend for iOS 9.3 and install it at the Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport path just you need to change at Xcode-beta.app to your current Xcode app name.
Happy Coding :)

Xcode 4 will no longer run apps on 4.2.10 device (CDMA iPhone)

Up until today, I have been able to test my app on my CDMA iPhone, running 4.2.10. I am building against the 4.3 SDK, with a deployment target of 4.0.
After restarting my phone today, Xcode will no longer allow me to test the app on my phone, with this message in the Organizer window: "The version of iOS on "iPhone" does not match any of the versions of iOS supported for development with this installation of the iOS SDK. Please restore the device to a version of the OS listed, or update to the latest version of the iOS SDK"
Unfortunately there are some bugs with location services in the simulator, so I can't use that for testing either.
Can I even install the 4.2 SDK in Xcode 4? Is anyone else having this problem, or (hopefully) does anyone know how to fix it? Thanks for any help!
If you install xcode 4 it will actually gather the build chain from your phone and use it for compiling. You can see this in the organizer window (Window->Organizer?).
You know I had that same issue i found that I had to download the latest xcode and reinstall because for some reason the ios that came with xcode knew how to build on my phone. Sorry man.

iOS simulator only list the latest iOS version. How can I set earlier versions

According to the documentation should be able to choose which iOS version the simulator should run, however only the latest 4.3.2 is listed under "Hardware/Version".
The helps says:
"To set the iOS release used in the simulation environment, choose Hardware > Version, and choose the version you want to test on."
I don't want to support 3.x (although it would be nice) but at least I want to simulate my app on 4.2, 4.1 and 4.0.
What's going on? Why aren't they listed?
UPDATE:
I'm on Lion so I cannot install an earlier version of Xcode. Before my Upgrade I could test different versions easily.
the problem is that you have no other Simulator SDK installed which can be used. As #dorada has mentioned you have to install an older Xcode which in fact doesn't work because you're using Lion. I haven't tried it with Lion but principally it should work like before with Snow Leopard.
I'm referencing to my other answer how to get an older Xcode (don't know if it's still working)
After you have an older Xcode version, mount the image an navigate with terminal to that volume. There should be a hidden folder Packages. open that folder with open . and locate the two .pkg files you need (e.g. iPhoneSDK4_0.pkg and iPhoneSimulatorSDK4_0.pkg) and install both.
They will appear in your root directory and you have to move them to your Developer dir (don't simply overwrite, it will delete all other SDKs. go to the last different folder it should be iPhoneSimulator4.0.sdk\ and copy that one)
DONE (and at that point I have verified it: it works on my Lion. I used the dvd image which I have started backup'ing since 3.2.1)
Although iPortable has the correct answer I decided to post a step-by-step guide which is easer to follow:
Download Xcode 3.1
Mount the dmg file
In Finder menu select "Go\Go to folder" and enter "/Volumes/Xcode and iOS SDK/Packages"
Install the simulators you need (Double click)
Copy the simulation folders from /Platforms/iPhoneSimulator.platform/Developer/SDKs/ to /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/
If your have some SDK missing Install the missing SDK from "/Volumes/Xcode and iOS SDK/Packages" and copy subfolders from /Platforms/iPhoneOS.platform/DeviceSupport/ to /Developer/Platforms/iPhoneOS.platform/DeviceSupport/ (for me they were all there from 3.1 to 4.3)
you may download the older ios sdk / xcode from . https://developer.apple.com/downloads/index.action
(i found this answer in another stack overflow topic actually, but now i can not seem to find that question!)
Open Xcode and in the menu at the top left, where you select what device to run on, click "More Simulators..."
The download section of Xcode preferences will open,
Click the "Components" tab.
You will see a list of simulators that can be installed, click install on version you need.
The simulator will need to restart to install.
To run the newly installed version of the simulator just select it from the run menu in Xcode.
You actually have to install previous simulator versions, they aren't there on a new install.
Maybe you can search and download them somewhere? - we keep them on a shared drive at the office.
After installing the Xcode 4.2 for Snow Leopard, I noticed there was a choice for iPad 3.2 Simulator, but using it just brings up some alerts that say "iOS Simulator could not find the SDK. The SDK may need to be reinstalled." and another alert that says "Simulated application quit. Click Relaunch to try again." with Quit, Switch SDK, and Relaunch buttons.
I can successfully use iPhone 4.0 Simulator, iPhone 4.1 Simulator, iPad 4.2 Simulator, etc up to iPad/iPhone 5.0 Simulator, but really would like to have iPad 3.2 Simulator and iPhone 3.1.3 Simulator and earlier down to 3.0 if possible.
Our apps generally run all the way back to 3.0 and we occasionally receive bug reports from earlier iOS users, and would love to be able to debug these issues more effectively.
I tried the technique summarized by Tibidabo and although I am able to copy the simulator folders as mentioned, and though they show up as choices in Xcode, I cannot get them to actually run as simulators and I get the same problem alerts mentioned above.
What are other developers doing to support debugging of older iOS versions?
Go to Project Settings -> Summary an change Deployment Target.

iPhone: iOS 4.3 SDK Simulators stuck up and crashing:

I have updated my Mac to 10.6.7 with Xcode 4. I am trying to build and run some projects which has downloaded from Internet. I set the deployment target as 4.1/4.2/4.3 and device family as 'iPhone' and trying to build and run the application in Simulator. For ex: i downloaded a project from the following link from GitHub:
http://www.icodeblog.com/2010/10/07/cloning-uiimagepickercontroller-using-the-assets-library-framework/
I set the deployment target as 4.1 or 4.2 or 4.3 and device family as 'iPhone' and trying to build and run the application in Simulator. But Simulator launches and stuck up infinitely. I had to do force quit of simulator, i checked so many times, but the same result. But at the same time, i'm able to build and run some other my projects without any issues. This is happening only for few projects when i run.
What could be the reason here? Is there any settings that i need to make-up?
Please advise me.
Thank you in Advance!
Trash your /Users/{Your name}/Library/Application Support/iPhone Simulator/ directory and rebuild the projects you are having trouble with.
#Kirby Todd Answer perfectly correct with a small change
notifications doesn't show/ doesn't scheduled in Simulator but works in device Problm on Simulator 4.3?
Make Sure we put a copy of "User's" folder existed in iPhone Simulator folder
Thank U #Kirby Todd

Run a compiled iPhone Simulator App Build? (.app) without Xcode?

So have a complete build of my app compatible for the iOS Simulator on Snow Leopard. Now I don't want to install Xcode on my other Mac to run this.
The question: Is there a way to only install the iOS Simulator? I could install the app on my iOS Simulator on my primary Mac and then just copy the iPhone Simulator folder from the Library folder and paste it on my secondary Mac.
Or is there any other app?
Try Simulator Launcher:
Simulator Launcher builds custom executables to automatically launch an
embedded iPhone Simulator application using the correct iPhone SDK.
The Simulator app depends on other directories and files in the SDK/Xcode installation. Best bet is to install the full iOS SDK and then try deleting Xcode and other stuff until you find the minimum required.
There is no other app.
ios-sim seems to be the only one that works with xcode 6.3
https://github.com/phonegap/ios-sim
Try using app.io, worked great for me, and it's free