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

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.

Related

Could I submit app to appstore without ios device?

Today I want submit my app to app store, I created apple ID and prepared app for upload. I created Distribution Provisioning Profile and I prepared everything in xcode but when I change
iPhone Simulator 6.1 -> iOS Device (button archive is unavaible)
Check dependencies
Code Sign error: A valid provisioning profile matching the
application's Identifier 'com.etomek.Ukladanka' could not be found
I thought that I need Developer Provisioning Profile? But I don't have any iPhone/iPad
So Could I submit app to appstore without ios device ?
You do not need a device, and can archive when it's set to iOS Device. The best bet is to test on as many devices as you can, and archive when it's plugged in. Although when it says iOS Device, you can archive. The reason it's grayed out is probably an error in your provisioning profile or certificate. You may want to look under Organizer under profiles or under your build settings.
You need a development certificate for testing locally and distribution certificate for submission to the app store. You need to create a request in keychain then submit it using iTunes Connect, and then download the proper provisioning profiles and certs, and install it in XCode Organizer.
Best bet is to purchase a cheap device like an iPod Touch or iPhone, that can test most of your capabilities (iPod doesn't have most capabilities). You can compile for iPad with iPod or iPhone. So you just need an iOS device that can support your version 4.3+ or 5,6,7.
My previous answer was not correct, but this one is. Trausti was actually correct.
From Official Apple Documentation
To create an archive
For iOS, tvOS, and watchOS apps, choose a generic device or your device name from the Scheme toolbar menu in the project editor.
You can’t create an archive of a simulator build. If a device is connected to your Mac, the device name appears in the Scheme toolbar menu. When you disconnect the device, the menu item changes to the generic device.
Choose Product > Archive.
The Archives organizer appears and displays the new archive.
So you don't need an iOS Device to create an archive and distribute it on the App Store or for beta/ad-hoc testing.
Yes, you can submit your app to app store without having a device.
The error you have is most likely because of incorrect name of your application.
No you can not. Also if you are wanting to do a clean distribution you will need to get a distribution license so you can do the distribution directly from xcode. Here is a good tutorial.
http://docs.xamarin.com/guides/ios/deployment,_testing,_and_metrics/app_distribution_overview/publishing_to_the_app_store
You will need to have a device in order to submit:
You cannot archive the app if xcode is set to simulator
You do not have to run the app on the device, but you must connect
it in order to archive it. That is why the menu is not
avalaible(grayed out)
PS: Also , you do not want to submit an app wihtout testing it on a real
device, that's just my opinion though.

test iPhone app without an iPhone

I've been sent an iPhone app package (.zip file) that I would like to test. The app is not yet available in the app store and I don't own an iPhone. What are my options for testing this app? I can probably get my hands on a Mac (with some difficulty), but ideally I'm looking for a way of running the app under windows/Linux.
I was hoping to find a website that would allow me to upload the package, and I could then test the app in a browser, but haven't found anything like this so far.
You try what you want, the app code will not run on any other platform then an iOS device.
The best option is the get the source code so you can run the app on a Mac with Xcode and the iOS simulator.
But this is no real replacement for device testing.
Also be aware that iOS ad-hoc app arre linked to device and can there not be installed on device which are not in the profile with which the app is build. The devices are identified by there UDID.
The app you linked is indeed an ARM only binnary and can only be installed on devices that are in the profile used to build the app.
Festivals.ie: Mach-O executable arm
I also took a look at the app bundle and it seems that the app is native, there for you can not simply extract any thing an present it as a webpage. There is no known app to HTML tool available.
In order to test an iOS app the developer of the app must add your UDID to his Member Center under devices. Without that limit everyone could share apps around the globe with no real use for the appstore.
There's no way for you to test it, even if you'll get a Mac and an iPhone.
If not an iPhone, you can test it on an iPad or an IOS simulator... NO other way possible at all...

No provisioned iOS devices are available with a compatible iOS version

I'm trying to test my app on an iPhone 3G, however I'm getting this error:
No provisioned iOS devices are available with a compatible iOS version. Connect an iOS device with a recent enough version of iOS to run your application or choose an iOS simulator as the destination.
Note that:
The 3G has version 4.2.1 of iOS installed
The iOS deployment target is set to version 4.2
The device has valid development profiles installed
I'm using the latest Xcode 4
I'm at a loss. Can anyone help?
Tim
Solved this problem by closing and re-opening xcode.
Xcode... it's the new Windows.
Try clicking "Use for Development" on your device in the Xcode Organizer. I got this same error and that was the only way I fixed it.
I finally found a solution to this.
If anyone else has this problem then it might be useful to know that Xcode now creates applications for ARM7 by default.
To support the iPhone 3G and other arm6 devices, you need to specify arm6 and arm7 in in the Architectures list, and set the device requirements to only arm6 in the plist.
Another observation for anyone who still has the problem after adding armv6: I found that Xcode was still listing "iOS Device" in the Scheme dropdown rather than filling in the name of my 3G. When I clicked on the dropdown, I saw that there was another slot that listed my 3G. (Presumably the "iOS Device" slot only applies to my other development device, an iPhone 4). I'm curious whether this is intended functionality, so leave a comment if you develop with multiple phones and have seen this.
I have Xcode 5.0, and try to build for my iPad with iOS 5.1.1. And I get the message: No provisioned iOS devices are available with a compatible iOS version. Connect an iOS device with a recent enough version of iOS to run your application or choose an iOS simulator as the destination.
The solution you can see in 4 step:
(1) Select project settings > project settings > Info. Choose deployment target instead of 7.0 i.e. 6.1.
(2) Select project settings > project settings > Build Settings. Change architecture . Don't compile for 64bit.
(3) Select project settings > target settings > General. Set Deployment Target according your device iOS version. Afterwards the device name IPad appear after IOS Device to run on.
(4) Finally I selected IPad.
Maybe you have set the minimum required iOS to a higher version than your 3G has. Could you try to change the iOS Deployment Target in the build settings to the version of your 3G?
I develop on multiple devices and multiple generations of each device. Look at the scheme. In the case of an iOS 5 device, at least, if it does not have the specific device name, but instead shows iOS Device, then eject the device in iTunes and unplug the device. Plug it back in and try to run/install. The device name should show up and the device should have a green dot in Organizer and everyone will be happy. I believe the 3G iPhone just shows up as iOS Device, and I'm not sure about the 3GS, but an iPhone 4 or 4S will show its device name. This is what I get for trying to continue supporting old iPod Touches and 3G phones with 4.2.1. At some time I'll just cut them off and move on.
Not sure, i understand your settings right. But, the rules are:
Base SDK Version >= Development device iOS version
Deployment Target version = Lowest iOS version to be supported.
Hence, i guess, setting base SDK version equal or above 4.2.1 might help.
i also get this case:
when i reset iphone, plugin to xcode again, xcode dont recognized iphone in schema, iphone still have full provision
I go to Organizer window, check device again and see that my iphone dont have green light and have button that ask to use this device for development. Click on button and all work well again
When I changed my app from iPhone to Universal, automatically xCode changed the Deployment Target from 4.3 to 6.1, my device had 6.0 so it wasn't recognized.
Changing the value back to 4.3 solved the problem.
When the first time , your new test iOS connected to you Mac, you can't see it in the pop-up menu. only "IOS Device"
You may try From menu: Window->Organizer->Devices ; then Choose you connected iPad and click “Use for development" ; So it appears .
In Organizer, I had to copy (drag and drop) the provisioning profile from the general 'Profiles' section to the device's 'Profile' section.
This can also happen because you've started to use your device on a computer that's never used it before. Once you've plugged in your device via USB, you'll need to choose to "trust" the device. You'll see a message like the following on the device itself:
Your settings and data will be accessible from this computer when
connected via USB or Wi-Fi
Choose "Trust" when prompted, and then XCode will be able to use the device.
More info here at Apple's site:
http://support.apple.com/kb/HT5868
"No provisioned iOS devices are available with a compatible iOS version. Connect an iOS device with a recent enough version of iOS to run your application or choose an iOS simulator as the destination."
I had this same problem when trying to build on my device.
Then I realised I was using an aftermarket lead.
Changed the lead to the original iPhone lead and... Hey Presto!
I solve this problem just change iOS Device of the following image to iPhone Retine ....,
I had a similar problem, with this error message: "No provisioned iOS devices are available with a compatible iOS version. Connect an iOS device with a recent enough version of iOS to run your application or choose an iOS simulator as the destination."
I solved it by simply going to the "jump bar" and changing it from "iOS device" to iPad 6.0 Simulator."

submit an app to iTunes without owning the device?

Can I submit an iPad app without owning a iPad? In other words can I build and compile an app without the device and submit it. Obviously without the device the build will Fail. Or is there a way around this with the simulator builds?
thanks
You can.
You can't submit simulator builds because they are compiled for Intel and not ARM, but you don't need an iPad to build and iPad app.
If you set up your certificates and provisioning profiles properly, the build will NOT fail even if you don't have the device.
You should be able to build with "iOS Device" and get a working app.

iPad distribution question

I just updated our app to an universal app for iPhone and iPad. I made all the changes (classes, nib, targeted device family, icons and so on) and it worked just fine on the simulator and my iPhone/iPad developer devices. I submitted the app to the app store and yesterday it got 'ready for sale'. The problem is that it shows just the iPhone Version and Screenshots in the app store and when I install the app on the iPad it just shows the iPhone version.
I have no clue what I've could make wrong?
Does anyone know what it could be? Does it need a special certificate/provisiong profile or something else? I found nothing on google about that.
try to check the "Release" target configuration of your build to check if the Target Device Family field (TARGETED_DEVICE_FAMILY) is set to iPhone/iPad.
Check to see if your Distribution configuration settings match your Release configuration settings for your Build Target, except for codesigning and verification, of course.