AppCode targeted device families not valid (iPad iOS 8.1) - ios

I keep getting this error in AppCode, but usually it runs just fine with Xcode:
Error:xcodebuild: error: The run destination iPad Mini is not valid
for Running the scheme 'Appname'. Error:iPad Mini doesn't match any of
Appname.app's targeted device families. You can expand Appname.app's
targeted device families to support iPad Mini. Error:Build failed with
2 errors and 0 warnings in 7 sec Note:Building for 2 architectures.
Double click to set 'ONLY_ACTIVE_ARCH=YES' to speed up compilation.
Target sdk is 7.1 in AppCode 3.0.6 (Xcode 6.1)
TARGETED_DEVICE_FAMILY = 2 (iPad)
VALID_ARCHS = armv7 armv7s i386 arm64
Architectures = Standard architectures (armv7, arm64)
I have the problem with both an iPad Mini with iOS 8.1 and a iPad 4 with iOS 7.1.
Any idea why it will not work from AppCode?

According to JetBrains, it's a problem with the xcodebuild tool in Xcode 6 rather than being an issue with AppCode. Hopefully something Apple will fix soon!
https://youtrack.jetbrains.com/issue/OC-11204

I had that as well: Xcode builds fine, Appcode does not. There is no evident reason for that - the target etc looks fine. It seems to be a bug in AppCode 3.0.6 that seems to be fixed in the 3.1 EAP version. With 3.1 the project builds fine here.

Just had this problem as well in Appcode. If you set "Targeted Device Family" in Appcode's target to "1,2" (iPhone and iPad), it worked here.

Go To Build Settings ->
in search bar, search "targeted"
change in Universal

You need to check Development info like development target, Device and match with the simulator device.

Related

Universal iOS 9.1 app is not compatible

I have a Universal App for iPad and iPhone.
the old versions of my app are working fine. I build the project with Xcode 7 and iOS 9.1 and it worked fine on my iPhone 6S and my iPad 2.
but after i upload the app to the AppStore i tried to update with my ipad and i get this message:
That my App "is not compatible with this iPad"
here screenshot of the appstore:
What i doing wrong?
UPDATE 1:
My iPad version is iOS 9.1 and the target in XCode is Universal
Since the compatibility list doesn't show iPhone4S or iPhone5, I assume that you limited the architecture to arm64.
For further information, see Setting Architectures for iOS Apps.
The problem was that for some reason the value of Build Active Architecture Only was YES instead of NO!!!!

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.)

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).

Error MT0014: iOS 6 does not support building applications targeting ARMv6

Just upgraded xcode and monodevelop/monotouch to latest versions (see below) and suddenly I get this error when building for the IPhone as target (compiles well for the simulator). I've tried all combinations of setting "Supported architetures" in the project options dialog to ARMv6, ARMv7 and ARMv6 + ARMv7 as well as setting "deployment target" to 5.0, but it doesn't seem to matter - I always get the same error:
Error MT0014: iOS 6 does not support building applications targeting ARMv6 (MT0014)
MonoDevelop 3.0.4.7
Monotouch: 6.0.2
Mac OS X 10.7.5
Xcode 4.5 (1839)
That's because Xcode 4.5 does not allow you to build for ARMv6 (the binaries are missing).
You can still build for ARMv6 if you use an older Xcode version (e.g. 4.4). This older version of Xcode can co-exists (side-by-side) with 4.5.
Note that you'll need to change the SDK location (inside MD preferences) to point to your Xcode 4.4 installation for this to work properly.
Unless you really care about ancient devices (armv6 = iPhone 2G/3G, iPod 1G/2G) don't bother with armv6 anymore.

Bad CPU type in executable

I have to update an application for iOS, which is running from iOS 3.1.3 to the latest 5.1.
When I build the code on the new Xcode 4.3.1 and try to test this app on an old device with iOS 3.1.3 I get an error "Bad CPU type on executable".
iOS Deployment Target = 3.1.3
Architectures = armv6 $(ARCHS_STANDARD_32_BIT) - armv6 $
Valid Architectures = armv6 armv7
If I add armv5 to the list of valid architectures, the code is installed on the device, but the application starts with a black screen and nothing happens.
Then I can stop the program and start it on the device. It seems to be working then.
Is it allowed to add armv5 to the list of valid architectures? Is this the solution to get rid of the error?
I saw the same problem today with iOS 4.1 and Xcode 4.3.3. The fix - just re-open Xcode and re-connect the phone.
I resolve this magic problem after "Reset network settings" in device (on iPad2 and iPhone3GS). It's pure magic!

Resources