Unlock iPhone device to continue? - iphone

Even if my iPhone is connected using cable and unlocked, it is shows an alert "Xcode 9.3 can not launch app on iPhone because of device is locked". I don't know what to do? Any one have proper solution for this? Please

Just replug you iPhone and have another try.
A better option is to use wireless debugging. Open Xcode menu > Window > Devices & Simulators and set your device to debug via network.

Related

Visual Studio for Mac - Configuration doesn't target device. Your configuration doesn't target a valid iOS device

Error Message:
Configuration doesn't target device.
Your configuration doesn't target a valid iOS device
I want to publish an iPhone app to App Store. So, I tried to perform Archive for Publish an iPhone App by selecting at the top main menu bar:
Build > Archive for Publishing
I have already select a device from the drop down menu at the main top menu bar. But I still receive above error message. What should I do?
I don't have a physical real iPhone. All I use is the iPhone Simulator. Is it a must to use a real iPhone to sign the App and submit to App Store?
Update
A physical iOS (iPhone) device is no more needed to archive and submit app to AppStore.
You need to plug in a real physical iPhone into the Mac Laptop.
and target it as target deploy device. Then, this problem will solve.
Update: A physical iOS (iPhone) device is no more needed to archive and submit app to AppStore.
For build device, select "Any iOS Device (arm64, armv7)" or Generic Device
The last option in the list of build devices is a Generic Device, under the heading Build Only Devices. This option works fine for those without a physical iPhone.
Dont know if this is still an issue, but I ran into that issue today: the problemn was that in the fourth column it didnt say "remote device". Click on in so it reads: Release, iPhone, APPNAM.ios, Remote device.
Than your good.

iPhone doesn't show up using Adobe Animate CC

Hey everyone so I have an iPhone 4(I know old) and I am trying to publish my app using Adobe Air for IOS 26.0. My computer and iTunes recognizes the apple device perfectly but when I try to publish it in Animate where it says "Install application on connected IOS device" mine doesn't show up at all. I tried restarting the device and computer and tried multiple USB cables as well. Nothing is working. Please any help is appreciated.
Updating AIR won't fix this as the process of detecting a device is through Animate, not AIR. I can confirm Animate can still detect iPhone 4. Mine is running iOS 7.1.2
Try connecting in this order:
Launch Animate
Unlock your iPhone
Connect your iPhone via USB
Debug Menu > Debug Movie > On Device via USB > Refresh Device List

Is it possible in xcode to run an application in both the *iphone device* and *iphone simulator* at the same time?

I want to be able to sync up the simulator with my iphone device so that if I were to do something on the simulator while it's running, it would perform the same on the device that's connected to my mac.
Is this possible? Thank you in advance.
Yes. It is possible. First of all you install project in simulator and another device whatever it is like iPad, iPod. After that you connect via bluetooth, wifi and internet connection. See this
witap sample code.
You can do the opposite:
http://www.vimov.com/isimulate/
Perhaps you can contact them on ideas on how to do the opposite.

iPhone - Cannot run apps from XCode on iOS 5.0.1 device, since iOS update from 5.0

I have just updated my iPhone to iOS 5.0.1 and XCode doesn't recognize it anymore as a valid device to run applications.
I have gone to the organizer, reset the device as a development device, updated my components and library... but still nothing. The device doesn't appear in the available destinations into the main window popup...
How can I do to test again on the device ?
Disconnect your iPhone.
Quit iTunes & XCode.
Turn off and restart your iPhone.
Connect your iPhone, wait for itunes to finish syncing (if you have it set to launch automatically).
Close iTunes, then open XCode.
Go to organizer and see if it recognizes the iPhone for development or will let you re-enable use for development.
If all that fails, reset your iPhone (gasp!) then do all this again. =(
Select your device in Xcode's organizer, and the click "Add to Portal". Xcode will communicate with the mothership, decide your device is OK after all, and it will then once again become available for testing.
Also if your deployment target is higher than the OS version of the device, it will not show up as a valid device.
it worked for me like this:
select the main project on the left window of Xcode
select the "summary" tab on the central window.
change "deployment target" to 5.0
click "validate settings"
that's it. Now my device is on the list!
select the device and click Run
Xcode 4.3.2, Lion 10.7.3, iPhone4 iOS 5.0.1, (using Jailcoder)

What does the Xcode 4.2 preference "Support Wirelessly Connected Devices" do?

In Xcode 4.2, there is a new preference under the General tab called "iOS Device Discovery" with the checkbox option "Support Wirelessly Connected Devices."
What does this option do? Once checked, how can we use this new capability?
Plug your device into your machine.
Go to iTunes -> device -> Summary page and check the "Sync with this XXXX over Wi-Fi" option
In XCode, XCode menu -> Preferences -> General check the "Support Wirelessly Connected Devices"
Unplug your Device
On the device, go to Settings -> General -> iTunes Wi-Fi Sync and click "Sync Now"
In XCode, to go to Organizer -> Devices and cross your fingers.
Step 5 is what did it for me. I've been struggling for days unable to get my devices to appear, but when I wirelessly synced them from the device itself, the little wirelessly connected symbol popped up in the Organizer in XCode. Hopefully it will work you too.
Edit: The device has to awake for XCode to see it. When my device sleeps, it vanishes off the Organizer
Edit: This feature allows you to do all actions you could do on a device plug into your machine via a USB cable... only now without the cable. I've found this very useful to build to local testers with almost no effort on their part, run instruments like Leaks or Zombies to help track down pesky issues while your test is still comfortable sitting at their desk (instead of tethered to your machine).
Edit: This feature is no longer available as of Xcode 4.3.1 It will re-appear later when it has less issues (they are estimating in version 4.4).
2/2012 - This feature is still gone as of Xcode 4.6. There is currently no sign of it returning in near future, if ever.
10/2013 - Xcode 5.0 is here and there is still no sign the feature will return. We can pretty much assume it's dead for the foreseeable future at this point.
9/2014 - I have a report that wifi device capability does exist in Xcode 6.0. The hypothesis is having a device which is set up to wirelessly sync with iTunes. I have started testing, but so far have been unable to get positive results. Thanks to Steven Kramer for raising this possibility and the image.
In some future Xcode release, the "Support Wirelessly Connected Devices" option will allow you to debug your apps on your devices without connecting them to a USB port of your development Mac. I find this feature isn't ready for production use yet, but you may have better luck with it. Here is what you need to do to set it up:
Connect your device using USB, start iTunes, check "Sync with this iPod/iPhone/iPad over Wi-Fi" under its entry in Devices.
Start Xcode. Open the Devices tab of the Organizer window, and verify that your device has a green dot beside its name.
Disconnect your device from your Mac; verify that iTunes still sees it and can sync with it wirelessly.
Check "Support Wirelessly Connected Devices" under Xcode's Preferences. Wait a few seconds.
Your device should now have a green Wi-Fi symbol beside it. If not, toggle the "Support Wirelessly Connected Devices" checkbox off/on or restart Xcode, iTunes, and/or your device until it does.
You should now be able to select the device in the Scheme pop-up menu. Try selecting it and start debugging your app wirelessly. Good luck!
In my case, Xcode is able to install new development builds on the device, but it is not yet able to reliably run & debug it. Both LLDB and GDB have lots of trouble connecting to the device. Sometimes they do succeed, but it's not reliable enough for convenient development.
Please note that if you are using XCode 4.3, they have have removed wireless support, so following these steps will be in vain. Someone else also figured out they have silently removed the wirelessly connected devices feature: http://www.thomashajcak.com/wireless-support-in-xcode-4-3/
This allows the device to appear in the organizer if the device and computer are on the same wireless network even when not plugged in via a usb cord.
go to itunes, press sync, the device will be "re-connected", wait for a few sec, it should be showed in xcode
Another use for this switch is to address when Xcode is showing 100% CPU utilization when wireless syncing is enabled. By disabling wireless sync support, Xcode will only use hard wired devices for code deployment.