JimmySaver
Aspiring developer
Profile
Posts: 187
Reg: Apr 09, 2012
location unknow...
5,870
05/31/12 01:49 AM (13 years ago)

Build for Archiving, Archiving & Architecture Issues

Hello all, and thanks in advance for all the helpful solutions I'm about to receive!! I'm having a bit of a stress-out, but remaining calm and positive! I've built and tested my first app and all is working fine. I've got my profiles all correct (I think) including my distribution profile. (I think I may have made an error in the iTunes connect with my bundle suffix, but that's for another post, unless this is important for this problem?). My issue is that I'm struggling to build for archive. I have 'iOS device' selected and the 'build for archive' option is available. On clicking this, it builds and the following error / warning is given (only the one!): "warning: iPhone/iPod Touch: application executable is missing a required architecture. At least one of the following architecture(s) must be present: armv6 (-19033)" Now, this seems to be relatively common problem (using the OSX 10.7.3 with Xcode 4.3.2) and there's quite a bit on stackoverflow surrounding this warning message. I've looked at most of the posts on this and followed all of their advice. I'll let you know what I AM doing and then maybe someone knows if there's a step wrong in this or if there's an additional step to take: - I have selected 'project' not 'targets' when changing the build settings (though I also applied all of these changes to the target's build settings too). - I have selected 'no' for the build active architecture only option. - I have changed the 'architectures' field to read 'armv6 armv7' instead of the incumbent wording. - I have changed the base SDK to iOS 4.1 (though, I've never installed this SDK?) from 'latest iOS 5.1' and then changed it back again. - I have changed my valid architectures settings from 'i386 x86_64' to 'i386 x86_64 armv6' And that, my friends, seems to be all of the advice I can find. I've combined every iteration of the above changes I think and I can't seem to build for archive with any of them (I took a chance and then archived the project anyway and it does show up in the organiser, without the icon strangely). I've also cleaned after every build. Any help is greatly appreciated. Next step is throwing money at the problem and I really don't wan't to do that! Thanks, Stephen. PS. Here is a screen shot of my Xcode screen: http://i1121.photobucket.com/albums/l501/everybox/ScreenShot2012-05-31at094022.png
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
05/31/12 06:35 AM (13 years ago)
I can fix this for you no problem-o! (free) Do you have team viewer? David buzztouchmods.com
 
JimmySaver
Aspiring developer
Profile
Posts: 187
Reg: Apr 09, 2012
location unknow...
5,870
like
05/31/12 06:47 AM (13 years ago)
Hi David, Thanks so much for your reply (my post was feeling a little lonely!). This is a good example of how green I am... What's a team viewer?! Seriously, I've now downloaded Teamviewer. What time is good for you? And what's your email? (If you're sure you don't mind!) Regards, Stephen.
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
05/31/12 06:52 AM (13 years ago)
[email protected] send your teamviewer email and password to me and I will be able to see and help you on your own screen :) Take care, David buzztouchmods.com
 
JimmySaver
Aspiring developer
Profile
Posts: 187
Reg: Apr 09, 2012
location unknow...
5,870
like
05/31/12 07:12 AM (13 years ago)
Thanks David, Have emailed. Regards, Stephen.
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
05/31/12 09:19 AM (13 years ago)
We got the errors resolved after a bit of work and coffee... and set up on itunes - his first app was submitted successfully! Good luck! David buzztouchmods.com
 
JimmySaver
Aspiring developer
Profile
Posts: 187
Reg: Apr 09, 2012
location unknow...
5,870
like
06/01/12 12:33 AM (13 years ago)
So, David (off of buzztouhmods.com) turns out to be incredibly generous with both his time and skill and I really can't thank him enough. The app is now sitting awaiting approval and, even if there's further errors, I now have a MUCH better understanding of the submission process. Hopefully, should anyone come across this post in a similar position, the steps I took below should be of some assistance: Looking at Xcode build settings, I can see that… - Architectures are set to '$(ARCHS_STANDARD_32_BIT) armv6' I see that the armv6 was added manually. This was done so that the build would operate on a iOS 3.0 build target. - I notice that it was NOT necessary to amend the info.plist file (that came with the bundled BT project) as is mentioned in some forums. EDIT: I now know that by editing the build settings and info that I WAS editing the info.plist, clever! - The Base SDK was not altered. - The supported platforms were NOT altered. - The valid architectures all read 'armv6 armv7' which was done, like the architectures, by adding these manually using the pop-over box. - That the code signing was changed to iPhone distribution for ALL identities (not just debugging, as I thought). I'm now reliably informed (thanks David!) that it's safest to sign it with all entities, then nothing will be missed. - That we did NOT skip install (as suggested in several forums). - That the iOS deployment target was set to iOS 3.0 for debug and iOS 5.1 for release. - That all of this was done whilst the 'PROJECT' element was selected, not the 'TARGETS' element. EDIT: I'm again reliably informed that it's wise to edit both the PROJECT and TARGET and see that they're both the same. There's more info on this here: http://stackoverflow.com/questions/5881048/what-is-the-difference-between-target-and-project I've attached screen shots below for reference: http://i1121.photobucket.com/albums/l501/everybox/ScreenShot2012-05-31at192157.png http://i1121.photobucket.com/albums/l501/everybox/ScreenShot2012-05-31at192219.png http://i1121.photobucket.com/albums/l501/everybox/ScreenShot2012-05-31at192229.png http://i1121.photobucket.com/albums/l501/everybox/ScreenShot2012-05-31at192237.png http://i1121.photobucket.com/albums/l501/everybox/ScreenShot2012-05-31at192246.png http://i1121.photobucket.com/albums/l501/everybox/ScreenShot2012-05-31at192253.png Thanks again to David and to the BT team. Stephen.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.