iPhone doesn’t support any of architectures. (Unsupported Architectures) - ios

Recently I have purchased iPhone XS (iOS 12) and since I build my app on iPhone 6S I get an error when I try to run the app I'm developing.
Error:
User’s iPhone doesn’t support any of appname.app’s
architectures. You can add User’s iPhone’s arm64e
architecture to appname.app’s Architectures build setting.
I try to add arm64e as mentioned above to Project>Build Settings>Valid Architectures, but still same error. Also to mention that Architectures is Standard architectures - $(ARCHS_STANDARD).
What am I doing wrong and how can I resolve this? I know this is due to the A12 chip as I read through the Web, but no one suggests a fix.

Upgrade to Xcode 10.0
The problem can be solved by simply upgrading your Xcode to 10.0.

Upgrade to Xcode 10.1
You can find it here

Related

Itunes archive upload issue ITMS-90530 and ITMS 90098

I am having the following issue when i start uploading the app. i have added armv7, arm64 to Required device capabilities but still its giving issue. Here are the errors:
These are the steps i did for my problem. Problem solved.
before you archive the app do the following steps,
Un-plug the device from mac.
Clean and build the project.
Archive the project.
Validate.
Upload.
Solution:
Change the device to Generic iOS Device or unplug your 64bit phone
.
Reason:
Check Build Active Architecture Only in Build Settings > Architectures
if YES, xcode will determine the architecture of the test device selected and it will build for that only.
if NO, xcode will build for all architectures considering your minimumOSVersion
NOTE: setting Build Active Architecture to YES is faster when building, so use it when you need it fast
Those keys don't work the way you think they do : it's an AND not an OR. By including the arm64 key you are saying your app is for 64-bit devices only, which is not allowed on iOS 8. Delete the arm64 key.
Apple said at WWDC that 64-bit-only iOS apps will be allowed on iOS 9, but you'd need to be building with XCode 7 and targeting iOS 9.
You can also give those keys true and false values, which makes things more complicated. See Apple's docs if you want to know more. https://developer.apple.com/library/ios/qa/qa1397/_index.html

TestFlight build no longer compatible with iPhone 4S

Since a few weeks it seems that my app no longer supports the iPhone 4S hardware.
The deployment target is set to iOS 8.0. The iPhone 4S can have iOS 9... What am I missing here?
It seems the build was only made for 64 bit architectures???
Although my build settings request both arm64,armv7 and armv7s
TestFlight build states:
I'll rebuild the app and upload it again.
Re-Adding armv7 and armv7s with a new build solved the issue. (Still don't know why the architectures were removed.)

Validation error for iPhone app using ZBar SDK

I have an iPhone app (for iOS 7 & above) which uses the ZBar SDK. I'm struggling to update it for iOS 7 using Xcode 5.1.1.
I was getting this arm64 build error, but I've managed to fix that by recompiling libzbar.a according to the instructions here.
The app now archives successfully. However, when I try to validate it in the Xcode Organizer I get the following error: "This bundle is invalid. Apps that include an arm64 architecture are required to include both armv7 and armv7s architectures."
I have "Standard architectures (armv7, armv7s, arm64)" set for my project's Architectures and "arm64 armv7 armv7s" for the Valid Architectures.
I not sure what else to try at the moment, so any help would be much appreciated.
Unplugging my iOS device and re-archiving the build helped me.
I could not find anything that would solve this problem. After going around in circles for several days, I removed every trace of the ZBar SDK from my app and instead used Apple's AVFoundation for QRCode support. This option was not available prior to iOS 7, but now that it is life becomes a whole lot easier!

Cannot compile for armv7s here valid architectures are armv6, armv7 and i386

I tried debugging my ios 6.1 project on the new iPad 4 (A6X, armv7s instruction set). However the build failed with
No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=armv7s, VALID_ARCHS=armv6 armv7 i386).
I'm using XCode5-DP6. App debugs on the latest iPod touch (armv7) and on both iPad and iPhone simulators (both iOS 6.1 and 7.0).
It was my understanding that code built for arm7 should build and run on arm7s, since apps between iPad3 and iPad4 are the same? Any clue what I'm doing wrong?
The last product I know of with armv6 is iPhone 3G, even iPhone 3GS is with armv7.
Apple has removed the support for armv6 in a way you cannot compile to that processor architecture and even if you would successfully compile you would have a problem submitting the app to Apple (the build won't be accepted automatically). Moreover, You cannot compile to an OS below 4.3 (it would give you errors also) so there are some restrictions - I'm saying that because I think old devices also can't support new OS. So, it is just a matter of days that there won't be any old iPhone with an OS you can support with Apple's platform.
So, my recommendation is to change the build and valid architectures to armv7, armv7s & i386 (if you need it).
This shall work and you really don't have a choice. you should know that most users doesn't own those old devices. If you still want to support those maybe you should consider add a new app specific for "new" devices, but know that you couldn't update the old version because of what explained earlier.

No architectures to compile for (ARCHS=, VALID_ARCHS=armv7 armv7s)

I am using Xcode 4.5.2 and have a project which cannot be compiled for an iPhone running iOS 6.0.1 though other projects compile fine with the same settings as shown in the picture below.
Any ideas on how to solve this?
You're probably using some third party lib that doesn't yet support armv7s architecture. You can just remove armv7s from your settings. Your app will still be able to run on iPhone 5 although it might not be taking full advantage of the new architecture.
If on XCODE 12 just goto Build Settings search for VALID_ARCHS. Under the User-Defined section select Valid Architectures and click Delete.
Set valid architecture for iOs simulator to armv7 and armv7s.( simulators are 32 bit ).
for device set to arm64 (64 bit all new ios device).

Resources