简体   繁体   中英

Visual studio 2017 Info.plist lose Distribution Destination after tab change

I've a problem when release IOS app with Visual Studio 2017 that i can reproduce doing the following opertions:

1) I need to change the IOS destination version to 9.0 because i must support olders device, so i edit the Info.plist like below:

图片1

2) I publish my ipa file as usual and my destination version of the builded ipa is 11 (i can see it uploading on diawi but even trying to install on a ios8 device that show me the error "Unable to download {app-name} at this time")... mh nice... i go back to Info.plist and i see that the Destination version is blank:

图2

3) I try to edit it again but when i change "tab" or build .ipa file I come back to point 2.

I've just tried the standard things like delete bin/obj and rebuild or disconnect-reconnect the mac but nothing works :(

Some useful things:

  1. On IOS 11 the ipa file works perfectly.
  2. I'm using an Enterprise realease Certificate.
  3. My Mac XCode Version is 9.2 (I've not enought free disk space to upgrade. Updated but no success.
  4. I've Already change the data inside the info.plist but seems that it will be ignored:

 <key>MinimumOSVersion</key> <string>9.0</string> 

  1. I do a clean install on my mac of Hight Sierra + XCode + VS2017 at the last version but nothing has changed :(

Try to edit your info.plist outside of the IDE. I faced a bug in the past that VS2017 overwrote some settings with default values when I used the GUI editor, and because of this I started making all my changes to the plist file manually.

The setting name you need to set manually is probably "MinimumOSVersion" in the file.

<key>MinimumOSVersion</key>
<string>9.0</string>

Was a Visual studio bug..... Installing the last released VS update fix my problem (Visual studio professional 2017 v15.8.7). Thanks Evryone for your time :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM