I’m using Xamarin Forms 3.4 and VSTS to build and deploy to iTunes and Google Play.
During February (perhaps a bit earlier) I was getting a warning when I was trying to deploy to iTunes. The warning was the following
SDK Version Issue - This app was built with the iOS 11.4 SDK.
Starting March 2019, all iOS apps submitted to the App Store must be built
with the iOS 12.1 SDK or later, included in Xcode 10.1 or later
Everything that I tried so far didn’t work.
So I added a “Bash script” step before the build step and added the following 2 lines in the script
sudo $AGENT_HOMEDIRECTORY/scripts/select-xamarin-sdk.sh 5_16_0
echo '##vso[task.setvariable variable=MD_APPLE_SDK_ROOT;]'/Applications/Xcode_10.1.app;sudo xcode-select --switch /Applications/Xcode_10.1.app/Contents/Developer
I found the previous script and guideline in https://learn.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops&tabs=yaml&viewFallbackFrom=vsts#xcode
The build is successful but the deployment to iTunes fails with the error
ERROR ITMS-90596: "Invalid Bundle. The asset catalog at 'Payload/MyApp.iOS.app/Assets.car' can't be processed. Rebuild your app, and all included extensions and frameworks, with the latest GM version of Xcode and resubmit."
Before adding the “Bash script” step, I didn’t have this problem in iTunes deployment.
So I guess that the question is obvious… what am I doing wrong?
Go to This Link And look at
Apple has indicated that starting in March 2019, all apps and updates
submitted to the App Store must have been built with the iOS 12.1 SDK
or later, included in Xcode 10.1 or later. Apps should also support
the iPhone XS and 12.9" iPad Pro screen sizes.
I think in your case maybe updating Visual studio will solve your issue, Because updating VS will update your Xamarin.iOS sdk version to 12.1+ if it is lower than this.
And also if you have Xcode 9.4 installed then you will need to install Xcode 10.1 to provide support for iOS 12.0 and above for Visual Studio
You can download latest version of Xcode from following link
How to download Xcode DMG or XIP file?
Related
ERROR ITMS-90725: "SDK Version Issue. This app was built with the iOS 14.4 SDK. All iOS apps submitted to the App Store must be built with the iOS 15 SDK or later, included in Xcode 13 or later."
In my case, I have a Mid 2012 MacBook Pro .. so max support Xcode version 12.x and
Mac OS Catalina. SO cannot install Xcode 13.x
If there's a way to run a build on XCode 12, that has the iOS Deployment Target set to 15 - that would be greatly appreciated. Any suggestions?
Thanks
We also recently got this message from Apple, which is quite an issue for us as our build nodes were not capable of running Xcode 13, and further their own previous posts on the issue only suggested that in order to upload to the App Store apps were required to be built with Xcode 13 after Apr 25, not that they also required linking against the iOS 15 SDK, or that apps already uploaded to the app store before the deadline would require this to be approved for release.
We're half way through upgrading our build machines to run a version of MacOS that supports Xcode 13 (causing various issues with other parts of our build of course), installing Xcode 13, and now we have to work out how to upgrade our Xcode project to use the iOS 15 SDK without it breaking even more stuff (actually, initial investigation suggests we don't need to change our project settings at all, it will happen automatically). Happy days, but that's Apple for you (in contrast, most of our MS-stack-based and Android-based applications are using quite old and in some cases out-of-LTS versions of various libraries and build tools, as we haven't had the resources to upgrade yet, but certainly haven't any issues with publishing or running them).
https://developer.apple.com/news/?id=2t1chhp3
Check your iOS SDK version using command
xcodebuild -showsdks
and xcode version with command
/usr/bin/xcodebuild -version
If your xcode is less than 13 and iOS Sdk less than 15 - you need to update it.
By the way, here is a useful link, it will help you with dependencies https://developer.apple.com/support/xcode
I have the latest Xcode 11.1
iOS is updated to the latest release 13.2
I'm getting error:
Could not locate device support files.
This iPhone 6s is running iOS 13.2 (17B84), which may
not be supported by this version of Xcode. An updated
version of Xcode may be found on the
App Store or at developer.apple.com.
This happens to all iOS devices running 13.2
What I'm missing here?
That's easy.
Those files are contained in Xcode itself.
Thus, all you have to do to use devices with a newer iOS version - create junction folder (hard link) of those support files from new Xcode (in our case - the beta 11.2) to older Xcode (11.1).
And yes, before that you have to download beta Xcode 11.2.
Otherwise, you also can download only support files from the Internet, if someone already shared them and just toss 'em to Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
P.S. to create junction folder use this command in terminal:
ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/13.2 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
It allows you to not to duplicate the same files across your Mac
P.S. Be aware! You have to launch newer Xcode (Beta) you downloaded at least one time to install updated Xcode Tools before you can use symlinks (hard links, junction folder) to Device Support files in older Xcode, otherwise you'll get an error and will not be able to build your app.
I've been reading about hacks to get it to work on the current version of Xcode. Honestly not interested in going down that path. Bottom line, Apple released iOS/iPadOS 13.2 but did not release Xcode 11.2 (still in beta). Gotta go to developer.apple.com and download the latest beta of Xcode 11.2 to run apps on both iOS and iPadOS 13.2 devices. Hopefully they release Xcode 11.2 soon. The last beta was from Oct 11.
I have installed both Catalina and Xcode 11 from store and they are up to date:
Catalina: 10.15.1 (19B88)
Xcode: 11.2 (11B52)
Yesterday I have uploaded a new binary using fastlane. Today I got this message from Apple:
Dear Developer,
We identified one or more issues with a recent submission for App
Store review for your app, "Gözen Security" 7.3.2 (67). Please correct
the following issues, then upload again.
ITMS-90534: Invalid Toolchain - Your app was built with an unsupported
version of Xcode or SDK. If you plan to submit this build to the App
Store, make sure you are using the GM version of Xcode 10.1 and the
SDK for iOS 12.1 and watchOS 5.1, Xcode 7.1 and the SDK for tvOS 9, or
Xcode 6 and the SDK for macOS 10.9 or later. If you are using an Xcode
beta version to test your app, make sure you are using the latest
supported version. For more information about supported beta versions,
view the App Store Connect What's New page
(https://developer.apple.com/app-store-connect/whats-new/).
Best regards,
The App Store Team
Since Catalina and Xcode 11 are officially released why Apple still want me to use Xcode 10 and iOS 12?
Xcode was updated to 11.2.1 version. Builds made in Xcode ver 11.2 are not valid anymore. If you do not see the update in the Mac App Store then go to your developer account and download new Xcode manually.
Xcode 11.2 is deprecated by Apple on November 5, 2019
Always working workaround (Manual download)
Download the xip file from here
Also:
Latest Release version (Xcode 11.2.1)
or
Latest Beta version (Xcode 11.3 Beta)
or
Any version you need. And all other downloadable contents
Then extract and move it where you like.
You can find all workaround histry of the issue here.
I am trying to run the sample example for Xamarin.Forms. I have made the sample application. I have added the required packages in the project.But for some reason I am getting the the error
Failed to launch the simulator: Could not load the framework 'libswiftCore.dylib' (path:
/Applications/Xcode8beta.app/Contents/Frameworks/libswiftCore.dylib):
not found. error MT1008: Failed to launch the simulator: Could not
load the framework 'libswiftCore.dylib' (path:
/Applications/Xcode8beta.app/Contents/Frameworks/libswiftCore.dylib):
not found.
I am using XCode 8 beta on my Mac
Xamarin studio 6.1.1
I have set the paths for the SDK correctly in the Xamarin preferences and it is saying that the SDK is available at the path that has been mentioned.
Whenever I try to run the application it compiles well but just before the simulator is expected to start it shows the above message.
How should I resolve this issue ?
You need to update Xamarin Studio (and/or Visual Studio). This is the release that fixes it. Here is the post about the issue with the corresponding bugs that match your exactly.
Summary, Xcode 8.1 changed the location of the library so it caused Xamarin to error. Xamarin released a hotfix to the stable channel that resolves it.
Try updating to a stable version of Xcode.
From the Xamarin.iOS 10.0 release notes:
The latest features and API requires Xcode 8.0 GM and the bundled iOS, tvOS and watchOS SDKs
Apple Xcode 8.0 requires a Mac running OSX 10.11.5 (El Capitan) or newer
Builds supporting the final release of Xcode 8.1 have just been released, so that is also an option.
Prior to submit an app to the AppStore we must generate an Archive, and have an iPhone or an iPad connected to Xcode during that time.
If I upgrade to the iOS 9 beta, will I still be able to do this (generate the archive from Xcode 6)? Or will I encounter any issues if I upgrade?
Thank you!
You can install two (or more) versions of Xcode on your Mac, beta versions of Xcode for testing, and the official released version for App Store build and submission purposes. Currently, for instance, install Xcode-beta 7.x to directly run and debug test builds on an iPhone running an iOS 9 beta, and install Xcode 6.x to build with the iOS 8 SDK and submit to the App Store. You can (and should) also still test the latter build using Ad Hoc deployment.
Dont do that ! It is risky.
XCode cannot run an app into your iPhone/iPad, if the iPhone OS version is greater than the higher iOS version in XCode.
It is risky. If you install iOS 9 bêta on iPhone, and XCode has only iOS 8.3, you wont be able to run an app from XCode--to-->iPhone
Ok running is not publishing.
But you know Apple/XCode... So strict, minimize the risk. Dont do that.
Beta is NOT for publishing & public releases.