In android studio, if you connect android phone to laptop, phone gets auto selected. Now if you run your project, it runs on auto selected phone.
Is there similar functionality in xcode? Currently if i connect a device to laptop, in xcode i need to always select the connected device manually to run the project on that device.
I don't think XCode will automatically select the connected device. Before connecting the device one of the simulator is our default device. After connecting your physical device you have to change it manually.
It's also mentioned in Developer Documentation, you can check it here : https://developer.apple.com/library/archive/documentation/ToolsLanguages/Conceptual/Xcode_Overview/RunningonaDevice.html
Related
I am working on ionic application. I am able to debug app in real android device.
So, is it possible to debug ionic app in iPhone by connecting it through USB cable from CPU?
You require an iPhone and a mac with XCode installed.
If you are building for iOS, you’ll need to sign up for an Apple
Developer account to test as a native app on an iPhone or iPad.
Unfortunately, this costs $99 per year (don’t blame us!). Once you
have an account and you have set up Xcode with your certificates to
enable device testing, you’ll want to open the Xcode project from
platforms/ios/ and do your testing from Xcode.
Source
As you have mentioned you do have an iPhone and Mac with XCode, see the steps below:
Run ionic cordova prepare ios
Copy across your platform/ios folder to your Mac
Open the XCode project on your Mac that is located in the platform/ios folder.
Select a device or target simulator in XCode and then click on the play button to start debugging.
I want to use the iOS Simulator from a Mac and run the Emulator as stated here: http://www.smartface.io/developer/guides/advanced/debug/
iOS Simulator
The Mac PC which is hosting the iOS Simulator and the Windows PC which is running the Smartface App Studio can communicate directly over TCP/IP.
This is not working.
Can anyone explain me step by step how can this be achieved?
iOS Emulator of Smartface App Studio requires directly USB connection to your Windows PC with your iOS Device in order to make emulation and debug.
You should use real iOS device which is connected to Windows Machine.
For more information :
http://www.smartface.io/developer/guides/tips/ios-emulator-troubleshooting/
http://www.smartface.io/developer/guides/advanced/debug/
http://www.smartface.io/ios-and-android-emulator-on-windows/
Please bear with the question (I know there are many repeats but I am sure this is unique) and read this first before you think of downvoting due to duplicity:
This is pertaining to iPhone connected to my local desktop and XCode running on remote VM
The USB gate software is connecting my iPhone to the VM
It's not that XCode fails to detect it altogether.
It's an iPhone 3GS running iOS 5.1. XCode version is 4.6.
Now the issue:
I have the iPhone UDID added to my Apple developer Profile.
I can very well detect the iphone connected into XCode once I do all the necessary sharing for the USB Gate software. I see the yellow light.
It shows yellow light, shows some of the apps installed while some process is running in background. It shows the UDID and usual stuff.
After few moments though, XCode displays the message Device not connected.
I have already added support for armv6 inside my app, so that possibility is ruled out.
What to do?
PS: for the first time it launched iTunes after detection. However then onwards I disabled auto-syncing from iTunes. And now iTunes doesn't detect it even if I launch it explicitly. XCode does detect it, but after some time disconnects it automatically.
I successfully connected to remote VM installing Logmein's Hamachi VPN software on both my host and VM. Using it, XCode could detect my iPhone device once shared via USB Network Gate.
I am testing a BlackBerry app on the BB Simulator with MDS simulator. The app uses this line of code to get the BB email address and then use it as a parameter to call a webservice.
String emailAddress = Session.getDefaultInstance().getServiceConfiguration().getEmailAddress();
Then problem is that getEmailAddress method always returns: 'simulation#this.machine', and the webservice not works with that address. I havent control over bb app source code or webservice source code, so I want to configure the BB simulator or MDS simulator to return a different email address when I call: getEmailAddress.
Is that posible?
The email address of the BlackBerry Smartphone Simulator is not configurable within the simulator itself.
However, if you connect the BlackBerry Smartphone Simulator to a BlackBerry Enterprise Server it email address will change to the one specified in the BES account.
You can follow the steps here:
Connect the BlackBerry Device Simulator to a BlackBerry Enterprise Server
Apply:
BlackBerry® Enterprise Server software version 4.0 and later
BlackBerry Device Simulator 4.0 and later
Procedure:
Using the BlackBerry JDE 4.0 (or BlackBerry Device Simulator 4.0), the BlackBerry Device Simulator can be connected to an account on the BlackBerry Enterprise Server.
1)Run the BlackBerry Device Simulator from the BlackBerry JDE or from the Start menu.
2)In the BlackBerry Device Simulator, click Turn Wireless Off.
3)Open BlackBerry® Desktop Manager 4.0 or later.
4)Open BlackBerry® Device Manager 4.0 or later.
5)From the BlackBerry Device Simulator, click Simulate and select USB Connected or Serial Connected.
6)Select YES to switch to the new BlackBerry device.
7)Follow the instructions to generate a new encryption key.
8)On the Initial Plug-in: Verifying Applications dialog box, click Cancel.
9)Once the initial synchronization is complete, the enterprise activation process begins.
After the enterprise activation process is complete, you will be able to use the BlackBerry Device Simulator like a regular BlackBerry device.
Note: Additionally, you may need to remove the net_rim_sdk_simulationSB.cod file from the BlackBerry Device Simulator directory. However, do not delete this COD file because you will need to restore it if you use the BlackBerry Device Simulator with the Email Server Simulator (ESS). After doing so, delete the DMP files from the BlackBerry Device Simulator directory, start the BlackBerry Device Simulator, and repeat the steps above.
To verify that the BlackBerry Device Simulator has connected to the BlackBerry Enterprise Server using serial bypass, click the Statistics tab in BlackBerry Device Manager.
If the BlackBerry Device Simulator is connected, you should see Bypass. Expand this menu to view statistics (for example, packets sent/received).
Or
If only the Time Connected statistic appears, without the Bypass statistics, the BlackBerry Device Simulator is not connected to the BlackBerry Enterprise Server over serial bypass and the enterprise activation process cannot occur. Delete the DMP files from the BlackBerry Device Simulator directory and complete the above steps in order to remove the net_rim_sdk_simulationSB.cod file from the BlackBerry Simulator directory. Alternatively, you can attempt this procedure with a BlackBerry device to verify that your BlackBerry Enterprise Server configuration supports serial bypass.
all the best
I've recently set up an app id and provisioning profile and was able to test my app on the device successfully. I then downloaded some sample iOS XCode projects and upon deploying one of them and deleting the sample app from the phone have since been unable to sync the phone with iTunes or see it as connected in the Xcode organizer window (the device is still listed in the lefthand pane, but shows up as disconnected). All new projects created in Xcode are now greeted with the following message when I attempt to build and run on the device.
No provisioned iOS device is connected.
I'm running Xcode 3.2.5 and iOS 4.2.
Any ideas?
Many thanks.
Typically when I run across this issue I will
Disconnect the device
Clean the projects
Delete the device from the Organizer
Restart Xcode
Reconnect the device
Then the majority of the time the device will be recognized again. I do find it strange that even iTunes can't recognize it though. Maybe try restarting the device even?
I had the same problem and posted about it over at Apple.SE. Reinstalling iTunes fixed it for me.
On Xcode 5.1.1
Unplug device, remove device from Window->Organizer, Product->Clean, close Xcode, plug in device, start Xcode - Window->Organizer and add to Member Center
Hope this helps. The issue occurred for me when I enabled iCloud and there was a sync issue on iTunes.