Testing an app on device; Installing Xcode - ios

I am trying to test my app on a device but am unable to do it as says that
"The version of iOS on “iPhone” does not match any of the versions of iOS supported for development with this installation of the iOS SDK. Please restore the device to a version of the OS listed below, or update to the latest version of the iOS SDK; which is available here.
OS Installed on iPhone
5.1 (9B179)
Xcode Supported iOS Versions
Latest
5.0 (9A334)
4.3
4.2"
Now I know that i have the latest iOS deployed in the iPhone. But my installed Xcode's version is "4.2.1" whereas in App Store the latest version is "4.3.2". Also, in App Store it shows up as "Installed" which means that I need to run the "Install Xcode" app from my applications.
Now, when I run "Install Xcode", it fails saying that there was an error encountered. In install.log file, the message logged is as below
"Failed install preflight: Error Domain=PKInstallErrorDomain Code=102
"The package “DeveloperTools.pkg” is untrusted."
UserInfo=0x7fc3c9e602a0 {NSLocalizedDescription=The package
“DeveloperTools.pkg” is untrusted.,
NSURL=../Packages/DeveloperTools.pkg --
file://localhost/Applications/Install%20Xcode.app/Contents/Resources/Xcode.mpkg/,
PKInstallPackageIdentifier=com.apple.pkg.DeveloperToolsLeo,
NSUnderlyingError=0x7fc3cbdc42d0 "The operation couldn’t be completed.
CSSMERR_TP_CERT_EXPIRED"}"
Now, how to fix it. I have ensured that there is no other software update pending in the system which may have potentially caused any issues in Xcode installation.
PS - I am using Lion, current Xcode version is Version 4.2.1 and the issue occurs on all iOS devices.

There was a problem with updating from 4.2 in the app store as noted here: https://developer.apple.com/xcode/ - which is why the app store is not letting you update eventhough you do not have the latest version.
It sounds from your question as if you are trying to reinstall using the installer you already have. If you have not done so already you should log into the apple dev center and download the installer from there (from full tools download list - main screen just links to app store). once on 4.3 updating from app store for future updates should work fine.

Related

xcode-select: error: tool 'actool' requires Xcode

I used XCode 12 in Big Sur 11, downloaded from App Store. But today, Apple doesn't allow me to upload my game through XCode anymore with this message:
all ios apps submitted to the app store must be built with the ios 15 sdk Xcode 13
So I tried to update XCode to 13, but App Store doesn't allow me because my macOS is not 12.
But I found on the official apple website that XCode 13.2 is available in Big Sur 11.3, so I just updated my macOS to Big Sur 11.6.
https://developer.apple.com/support/xcode/
But still, I was not allowed to download XCode 13 from App Store and I found apple's official webpage that can download XCode versions manually.
So I downloaded 13.2.1 with something called command-line-interface, uninstall the XCode 12, and install both. I put the XCode.app into the Applications directory.
Launching XCode 13.2 was successful without any error, but the build of my project always failed with this message:
xcode-select: error: tool 'actool' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
So I searched about it, but nothing related was found. I already tried this:
$ sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
But nothing changed. Still, I see the same error message. I'm pretty sure that installing XCode by downloading it causes this trouble. But there's no OS update available on my MacBook because Big Sur is my last supported version, and App Store does not allow me to download XCode 13.
How do I solve this issue? What am I missing?

ERROR ITMS-90596: "Invalid Bundle. The asset catalog at 'Payload/ExpoKitApp.app/.bundle/Assets.car' can't be processed."

Problem summary : I would like to submit an app to the Apple App store (TestFlight). I am using Transporter v1.1 to submit the app. I am getting the following error in Transporter during the submission process. Please note that I am not using Xcode in this process.
Actual result:
ERROR ITMS-90596: "Invalid Bundle. The asset catalog at 'Payload/ExpoKitApp.app/GoogleMaps.bundle/GMSCoreResources.bundle/Assets.car' can't be processed. Rebuild your app, and all included extensions and frameworks, with the latest GM version of Xcode and resubmit."
Expected result : successful submission to the app store.
Development environment : Expo 36.0.0 / macOS High Sierra v 10.13.6 / Processor 2,3 GHz Intel Core i5 / Transporter v 1.1
What have I tried ? :
Deleting all node modules and installing them again (npm install).
Deleting any old Xcode folders on my mac. Please note that I am not using Xcode.
Checked the version of xcode in package-lock.json. It is 2.0.0 but it is being used as dependancy and not as a direct tool in the submission process.
Generate a new build thrice and submitting it once more in Transporter.
Can anyone please help me in this process ? I know this question has been asked before but the case is not applicable to me because I am not using xcode or application loader to submit the app.
This could help someone in a similar situation. Here is how I solved my problem with the advice of a senior developer.
Using expo diagnostics I found out the version of Xcode that my expo toolkit was using. The answer was undefined because I wasn't using Xcode at all.
Being on macOS High Sierra 10.13.6, I needed Xcode 10.1 for compatibility.
I downloaded Xcode 10.1 and also the compatible command line tools.
I transferred the installed Xcode from the downloads folder to applications folder.
Again ran expo diagnostics and noted that expo has taken into account the associated Xcode version.
Ran expo build:ios
Downloaded the .ipa file generated by expo on their server.
Submitted the .ipa file using Transporter to the Apple app store (TestFlight).
Successful submission.

Submit to App Store built with iOS 12.1 SDK

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?

Xcode version update

I currently use xcode version 8.2.1. I would like to update it to the latest version or at least to a version that is supported by iOS 10.3.2.
The app store doesn't show any available update for my xode and when I try to update it on the terminal, I get a message saying that I am at the latest version. I'm guessing this is because I am using the latest version of xcode8.2 or something?
I have seen this and it says I need to reinstall my xcode. So, could I update my existing xcode without having to install another version?
App-store is the only way to update the Xcode to the latest one.
First, make sure that you are running on the required version of OSX (macOS 10.12 or later) to support the version of Xcode 8.3.3.
If you are on the required version of OSX and the App-store not showing any updates, that should be a bug with the App-store app. Reinstall is the only option in this case.
Note:
The Xcode update (to 8.3.3) will take almost 4.5 GB of data
Direct Xcode 8.3.3 download will take exact 4.54 GB of data
So, I really not seeing any differences in both except the way of downloading.
App store is the only source to updating (through Commandline or
directly) Xcode or others apps.If store itself no updation of app.Then
probably have to wait for it instead of installing another version
from Apple download section.
Yes.Sometimes it happens to me.App store not showing new version of Xcode in Updates Tab.So i m going directly to search Xcode.
My current Xcode version is Xcode 8.3.3
But App store shows only stable version as latest version (currently
Xcode 8.3.3)
If you wanna more latest beta version product You can get from below
From Apple Downloads section
i checked via command line also using below command But the result is same.
softwareupdate --list to see what's available.
Result :
Apples-Mac-mini:~ apple$ softwareupdate --list
Software Update Tool
Finding available software
Software Update found the following new or updated software:
* macOS Sierra Update-10.12.5
macOS Sierra Update (10.12.5), 873261K [recommended] [restart]
* RemoteDesktopClient-3.9.3
Remote Desktop Client Update (3.9.3), 8587K [recommended]
* iTunesXPatch-12.6.1
iTunes (12.6.1), 179760K [recommended]
Apples-Mac-mini:~ apple$
You can updated Xcode or other software if it's available using below command
softwareupdate --install <product name>
You can get more comments from here Software update tool
Just login to your Apple developer account and in download section download the latest Xcode and install it. Then from now whenever the new Xcode will available you'll get notify for an update.
OR
check here

What does "unsupported architecture" mean when loading app via Application Loader?

I'm using phonegap build service for our iOS application, (the app is built on HTML5), and the delivered ipa file from phonegap works fine using a development provisioning profile on our devices. However, when attempting to load the app to the app store (using a release provisioning profile for itunes), we get this from the application loader
ERROR ITMS-9000: "Unsupported Architectures. Your executable contains
unsupported architectures '[12-11]'." at SoftwareAssets/SoftwareAsset
(MZItmspSoftwareAssetPackage)
This happens for versions 2.8 and 2.9 of Application loader. We're using Phonegap build service 2.7, 2.9 and 3.0. How can we determine what the "unsupported architectures" are from PhonegapBuild ? is there a method for identifying what features we are using that may be contributing to this error ?
I have managed to successfully upload the app. The issues was that I was running OSX 10.7.5 and running Application Loader 2.8 (AL), which seems to be compatible with Moutain Lion (10.8). Once upgrading to Mountain Lion you can do another update to 10.8.5 which will install Application Loader 2.9. (You can upgrade to 10.8 via the Apple=>"App Store" option on your Mac. It is a paid upgrade.)
If you downloaded the latest AL from the itunes connect portal and install it, it doesn't tell you that it's incompatible with older verions of Mac OSX before 10.8. All you'll get is an obscure message that your ipa is an "unsupported architecture" which in "Appleonean" means "You need to upgrade your version of OSX". Extremely misleading as it's nothing to do with your IPA, it's your OS. Even reading the PDF from Apple about AL there is no indication for minimum system requirements..
same here - this app previously uploaded fine but when I try a support update I get this error along with a warning about a missing icon of 120px, 76px, and 152px

Resources