I am trying to submit an application via the application loader. I get this error. But I already checked in the build settings and all three architectures are included in the Valid Architectures settings.
Asked
Active
Viewed 3,638 times
10
-
valid archtictures is fine but what about the architectures field? – Daij-Djan Mar 15 '14 at 08:04
-
and you can check the architectures with the commandline tool `lipo` if you think the uploader is wrong – Daij-Djan Mar 15 '14 at 08:05
-
its the same, includes all three architectures. – devdev101 Mar 15 '14 at 08:12
-
@Daij-Djan how can i use lipo? – devdev101 Mar 15 '14 at 11:35
-
in terminal type: `lipa -info %PATH_TO_YOUR_EXECUTABLE' – Daij-Djan Mar 15 '14 at 15:02
-
the executable is in your app. – Daij-Djan Mar 15 '14 at 15:02
-
here what it returns: non fat file, application is arm64! does that mean that the application loader is wrong? – devdev101 Mar 15 '14 at 17:07
-
no ;) it means it is right - there is no armv7 and no armv7s – Daij-Djan Mar 15 '14 at 17:12
-
maybe share the project file at least... you only build for armv64 – Daij-Djan Mar 15 '14 at 17:13
-
@Daij-Djan Legaly i cant share the files, im working for a client under a contract that requires the project not to be shared anywhere :( do u think removing the armv7 and armv7s will solve the problem? – devdev101 Mar 15 '14 at 17:25
-
no. only the 5s on ios7 has arm64 so you need armv7 – Daij-Djan Mar 15 '14 at 17:44
-
try setting up a new app, compile it, check it with lipo and then 'spot the differences' in the settings – Daij-Djan Mar 15 '14 at 17:46
-
@Daij-Djan I had another project that i just submitted for review. It has exactly the same settings but in lipo it says that it includes all three architectures! Is there a way to add the architectures manually? – devdev101 Mar 15 '14 at 17:53
-
you have to figure out why your xcode for thisapp doesnt compile them – Daij-Djan Mar 15 '14 at 17:55
-
you can use lipo to combine N executables of different architecutre but you have to HAVE those in the first place. – Daij-Djan Mar 15 '14 at 17:57
2 Answers
28
Disconnect any device and just leave the option in "iOS Device" and archive it.

Abel7x
- 461
- 4
- 4
-
i'd love to know why that works (when previously i'd been able to still archive with device intact), but for now, it has solved my problem, therefore grateful. – Jon Madison Oct 30 '14 at 03:32
-
Hi Jon. I'm sorry I don't have the answer for that, I was just struggling with my archive and then I realized that just the arch for the 5s (the model of my device) was been included and so I tried disconnecting and it worked. I'm glad that it solved your problem. – Abel7x Oct 31 '14 at 13:56
-
It is because of the comment made by Alfahad. When your device is plugged in it is building for the active architecture (i.e. your device). When you unplug your device or change the build active architecture only to 'NO' it fixes this issue. – krut Mar 03 '15 at 03:04