DevEcoStudio: DOWNLOAD_SDK_ERROR after upgrading to SDK 6 - sdk

I have another issue after related question
DevEcoStudio Version: 2.1 Release and 3.0 Beta 1
SDK: 6
Already updated compileSDKVersion version in project level and module level build.gradle files
ohos {
compileSdkVersion 6
defaultConfig {
compatibleSdkVersion 5
}
buildTypes {
release {
proguardOpt {
proguardEnabled false
rulesFiles 'proguard-rules.pro'
}
}
}
}
Error Screenshot:

As the solution in error suggests:
SdkError: DOWNLOAD_SDK_ERROR
> Cause: Unable to find the toolchains component.
> Solution:
1.Open SDK Manager and download toolchains.
2.Alternatively, modify the compileSdkVersion settings in the project- and module-level build.gradle files.
Navigate to Tools-> SDK Manager -> Select "SDK Tools" tab under HarmonyOS SDK. Check "Toolchains" for the installation. Confirm. Accept the agreement and Download.
Sync and re-build the project successfully.
EDIT: In case, someone is facing the same issue with the new DevEco IDE (details below) and SDK 6, follow these steps:
DevEco Studio Version:
DevEco Studio 3.0 Beta1
Build Version: 3.0.0.601, built on October 19, 2021
Solution:
Open project-level and module-level build.gradle files and change:
compileSdkVersion to 6 (by default it is 7)
compatibleSdkVersion to 5 (by default it is 4)

Related

Xamarin - Error: dsymutil exited with code 72

Recently upgraded to VS for Mac 8.10.21, when building apps, I'm getting:
/Xamarin.Shared.targets(3,3): Error: dsymutil exited with code 72
This is with Xcode 13.3.
Full version details below:
Visual Studio Community 2019 for Mac
Version 8.10.21 (build 4)
Installation UUID: b7d9f3e8-a2eb-4a6a-a2fa-6a53e9637a56
GTK+ 2.24.23 (Raleigh theme)
Xamarin.Mac 6.18.0.23 (d16-6 / 088c73638)
Package version: 612000162
Mono Framework MDK
Runtime:
Mono 6.12.0.162 (2020-02/2ca650f1f62) (64-bit)
Package version: 612000162
Roslyn (Language Service)
3.10.0-4.21269.26+029847714208ebe49668667c60ea5b0a294e0fcb
NuGet
Version: 5.9.0.7134
.NET SDK (x64)
SDK: Not installed
MSBuild SDKs: /Applications/Visual Studio.app/Contents/Resources/lib/monodevelop/bin/MSBuild/Current/bin/Sdks
.NET Core Runtime
Runtime: Not installed
Xamarin.Profiler
Version: 1.6.15.68
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler
Updater
Version: 11
Apple Developer Tools
Xcode 13.3 (20102)
Build 13E113
Xamarin.Mac
Xamarin.Mac not installed. Can't find /Library/Frameworks/Xamarin.Mac.framework/Versions/Current/Version.
Xamarin.iOS
Version: 15.8.0.0 (Visual Studio Community)
Hash: f10d9e023
Branch: xcode13.3
Build date: 2022-03-15 11:47:35-0400
Xamarin Designer
Version: 16.11.0.60
Hash: 56f9b80b0
Branch: remotes/origin/d16-11
Build date: 2021-12-15 01:44:16 UTC
Xamarin.Android
Version: 12.0.0.3 (Visual Studio Community)
Commit: xamarin-android/d16-11/f0e3c2d
Android SDK: /Users/jon/Library/Android/sdk
Supported Android versions:
4.4 (API level 19)
5.0 (API level 21)
6.0 (API level 23)
7.0 (API level 24)
7.1 (API level 25)
8.0 (API level 26)
8.1 (API level 27)
SDK Tools Version: 26.1.1
SDK Platform Tools Version: 32.0.0
SDK Build Tools Version: 31.0.0
Build Information:
Mono: c633fe9
Java.Interop: xamarin/java.interop/d16-11#476bb5b
ProGuard: Guardsquare/proguard/v7.0.1#912d149
SQLite: xamarin/sqlite/3.35.4#85460d3
Xamarin.Android Tools: xamarin/xamarin-android-tools/d16-11#87af37b
Eclipse Temurin JDK
Java SDK: /Library/Java/JavaVirtualMachines/temurin-8.jdk/Contents/Home
1.8.0.302
Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL
Android SDK Manager
Version: 16.10.0.13
Hash: 1b81df5
Branch: remotes/origin/d16-10
Build date: 2021-11-12 00:17:32 UTC
Android Device Manager
Version: 16.10.0.15
Hash: 89dcc0b
Branch: remotes/origin/d16-10
Build date: 2021-11-12 00:17:52 UTC
Build Information
Release ID: 810210004
Git revision: eb0b2f7259d35b7d767c79d91d356881227e0985
Build date: 2022-03-17 17:18:28-04
Build branch: release-8.10
Operating System
Mac OS X 12.1.0
Darwin 21.2.0 Darwin Kernel Version 21.2.0
Sun Nov 28 20:29:10 PST 2021
root:xnu-8019.61.5~1/RELEASE_ARM64_T8101 x86_64
Any ideas? Can't find any reference to "code 72" anywhere else.
I had this exact error.
I went inside Xcode.
Preferences>Locations> Command Line Tools. Mine was on 13.2, needed to upgrade to 13.3 (Thought I already had but it must not have done it automatically)
Thanks bro!! I actually had to downgrade my xcode version from 13.3.1 to 13.3 and it fixed my issue! I was getting this error when trying to run my ios app on a physical device in release mode. /Xamarin.Shared.targets(3,3): Error: dsymutil exited with code 72

Error Running Gradle on Flutter with Visual Studio Code

i'm using windows 10 Visual Studio Code and i'm trying to run my code after writing them and this is what it shows me afterwards.
Launching lib\main.dart on TECNO Camon CX in debug mode...
* Error running Gradle:
ProcessException: Process "C:\Users\IB\Desktop\Android\myapp\berry_networks\Dart test\Flutter App\first_flutter_app\android\gradlew.bat" exited abnormally:
FAILURE: Build failed with an exception.
Where:
Build file 'C:\Users\IB\Desktop\Android\myapp\berry_networks\Dart test\Flutter App\first_flutter_app\android\app\build.gradle' line: 24
What went wrong:
A problem occurred evaluating project ':app'.
Failed to apply plugin [id 'com.android.application']
Illegal char <<> at index 9: C:/users//.android\analytics.settings
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 7s
Command: C:\Users\IB\Desktop\Android\myapp\berry_networks\Dart test\Flutter App\first_flutter_app\android\gradlew.bat app:properties
Please review your Gradle project setup in the android/ folder.
Exited (sigterm)
how do i fix this?
#iRuth
This is my app/build.gradle on Visual Studio Code
def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
localPropertiesFile.withReader('UTF-8') { reader ->
localProperties.load(reader)
}
}
def flutterRoot = localProperties.getProperty('flutter.sdk')
if (flutterRoot == null) {
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
}
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null) {
flutterVersionCode = '1'
}
def flutterVersionName = localProperties.getProperty('flutter.versionName')
if (flutterVersionName == null) {
flutterVersionName = '1.0'
}
apply plugin: 'com.android.application' (This is line 24)
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android {
compileSdkVersion 28
lintOptions {
disable 'InvalidPackage'
}
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.example.kkkkkkkk"
minSdkVersion 16
targetSdkVersion 28
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig signingConfigs.debug
}
}
}
flutter {
source '../..'
}
dependencies {
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}
After many researches on how to fix my debugging issue with visual studio code proves abortive then i tried switching to android studio and downgrading my windows 10 to 8, but still that didn't solve it, it worsen the case.
I tried to have deep sleep and do nothing about it just to have some days off, i watch movies and making little researches.
eventually after boxing my head and loosing the tightened knot, i upgrade my system back to windows 10 and install everything one after the other:
Step 1: i install ADB
Step 2: i install Android Studio code
Step 3: i install Dart and Flutter
Step 4: i install SDK for android studio and set the environmental variables
Step 5: i install SDK platform tools and as well as setting the path in environmental variables.
Step 6: i install JDK for android studio and set the environmental variables as well
It wasn't easy for me as a beginner because i spent almost 2 month fixing this and i eventually find the answer through self taught and self motivation.
I want to thank everyone that contributed to the cause which i laid down here.
#IRuth i really appreciate your effort...
to fix all of gradle errors on vscode you need to update your gradle to last version for this first go to
android > app > src > main > click on java folder and then click on plugins then debug the plugins with F5
or install this extension https://marketplace.visualstudio.com/items?itemName=redhat.java
so after this vscode ask you to update plugins click on update and wait till it end to update your gradle project and java project so after this
flutter clean
and debuge your project it will install your build again with last version
hope this helpfull.

Problem with "multi_image_picker" in dart

I have the problem with library minSdk: Suggestion: use a compatible library with a minSdk of at most 16, or increase this project's minSdk version to at least 19
I Changed the build.gradle in the section minSdkVersion but show this:
D8: Program type already present: android.support.v4.app.INotificationSideChannel$Stub
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.example.prueba_2"
minSdkVersion 19
targetSdkVersion 28
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
D8: Program type already present: android.support.v4.app.INotificationSideChannel$Stub
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
> com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\6.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\7.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\8.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\9.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\10.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\11.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\12.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\13.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\14.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\15.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\16.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\17.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\18.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\19.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\20.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\21.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\22.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\23.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\24.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\25.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\26.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\27.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\28.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\29.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\30.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\31.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\32.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\33.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\34.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\35.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\36.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\37.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\38.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\39.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\40.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\41.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\42.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\43.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\44.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\45.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\46.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\47.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\48.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\49.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\50.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\51.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\52.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\53.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\54.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\55.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\56.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\57.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\58.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\59.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\60.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\61.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\62.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\63.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\64.jar, C:\Users\ANALYSIC-NABLA\Documents\Flutter\Development\prueba_2\build\app\intermediates\transforms\dexBuilder\debug\65.jar
Learn how to resolve the issue at https://developer.android.com/studio/build/dependencies#duplicate_classes.
Program type already present: android.support.v4.app.INotificationSideChannel$Stub
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, v1.2.1, on Microsoft Windows [Version 10.0.17134.706], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[√] Android Studio (version 3.3)
[√] VS Code (version 1.33.1)
[√] Connected device (1 available)
• No issues found!
This plugin was migrated from using the deprecated Android Support Library to AndroidX. If your project was migrated to use it as well you should install version 4.X.X of the plugin. If you are using the old project structure please use version 2.4.11
Had the same problem.
tried to migrate to AndroidX using this method as suggested by flutter documentation :
1.tried menu Refactor > Migrate to AndroidX
2.got "No usages found"
I still had the error , so i tried the solution in this link (using the selected answer) :
[Flutter Projects & Android X Migration Issues
And it worked perfectly

Gradle build error with SDK tools version 27

When I create a new project with my android studio 3.0.1 build.gradle (module:app) is configured automatically as bellow:
android {
compileSdkVersion 26
defaultConfig {
applicationId "com.example.android.myapplication"
minSdkVersion 17
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:26.0.0-alpha1'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:0.5'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:2.2.2'
and build.gradle (project:my application) is configured automatically as bellow:
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
I've done nothing unless creating a new project but at this point an error appears with red line under appcompat implementation saying:
When using a compileSdkVersion android-O revision 2 or higher, the support library version should be 26.0.0-beta1 or higher (was 26.0.0-alpha1)
Also test:runner implementation is highlighted with following hint:
A newer version of com.android.support.test:runner than 0.5 is available: 1.0.1
and espresso-core implementation is highlighted with following hint:
A newer version of com.android.support.test.espresso:espresso-core than 2.2.2 is available: 3.0.1
QUESTION 1- I have SDK tools versions 27.0.0 and 27.0.1 and 27.0.3 installed on my system. Why android studio uses 26.0.0-alpha1 as a default which causes error?
QUESTION 2- How can I change this default to proper 27 version?
When I try changing compileSdkVersion and targetSdkVersion to 27 and changing appcompat version to v7:27.0.0 then I come up with following errors after syncing:
image description
QUESTION 3- Why this error is happening and how to rectify it?
I revert back to SDK 26 and try to upgrade test:runner and test.espresso:espresso-core to what android studio suggests. It ends up with this error:
image description
QUESTION 4- Why android studio cannot resolve the upgrading which it suggests?
QUESTION 5- What is a sample working gradle build configuration using latest SDK version (27)?
After too many investigations, I regretfully found that all errors were due to unfair sanctions by Google against my country's people (not against the government as they claim!).
My Android Studio was not able to contact jcenter and maven repositories.
After using a VPN program everything was settled and all errors were vanished!!

Xamarin.iOS Error: The Apple iOS SDK is not installed. (iOS9, XCode 7 beta)

I have installed XCode 7 beta, Xamarin.iOS 8.99.4 and Xamarin Studio 5.9 on Mac OSX 10.10.5.
I refer this article. https://developer.xamarin.com/guides/ios/platform_features/introduction_to_ios9/ .
If I debug/run a Xamarin.iOS app on iOS Simulator (iOS9), it works well.
But when I debug/run it on my iPhone5s device (iOS9), Xamarin shows this error message.
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets: Error: The Apple iOS SDK is not installed. (ex33.iOS)
The "Build Output" window show following message.
__________________________________________________
Project "/Users/username/Projects/ex33/iOS/ex33.iOS.csproj" (Build target(s)):
Target PrepareForBuild:
Configuration: Debug Platform: iPhone
Target _DetectAppManifest:
FindItemWithLogicalName Task
Items:
Info.plist
Entitlements.plist
packages.config
LogicalName: Info.plist
ProjectDir: /Users/username/Projects/ex33/iOS
ResourcePrefix: Resources
Target _DetectSdkLocations:
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets: error : The Apple iOS SDK is not installed.
DetectSdkLocations Task
TargetFrameworkIdentifier: Xamarin.iOS
TargetArchitectures: ARMv7, ARM64
SdkVersion: <null>
XamarinSdkRoot: /Library/Frameworks/Xamarin.iOS.framework/Versions/Current
SdkRoot: <null>
SdkDevPath: /Applications/Xcode-beta.app/Contents/Developer
SdkUsrPath: <null>
SdkPlatform: <null>
SdkIsSimulator: False
Task "DetectSdkLocations" execution -- FAILED
Done building target "_DetectSdkLocations" in project "/Users/username/Projects/ex33/iOS/ex33.iOS.csproj".-- FAILED
Done building project "/Users/username/Projects/ex33/iOS/ex33.iOS.csproj".-- FAILED
Build FAILED.
Errors:
/Users/username/Projects/ex33/iOS/ex33.iOS.csproj (Build) ->
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets (_DetectSdkLocations target) ->
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets: error : The Apple iOS SDK is not installed.
0 Warning(s)
1 Error(s)
---------------------- Done ----------------------
What can I do?
P.S. When I debug/run a app in XCode 7 beta, it works on my iPhone well.
Check the preferences in Xamarin Studio.. you may need to change the Apple SDK path to point to the Beta location.
By default, it should be looking in the default location, but that will only be present if you have the General Release (non Beta) Xcode and iOS SDK installed too.

Resources