rupertvdb
I hate code!
Profile
Posts: 6
Reg: Mar 15, 2013
London
360
03/15/13 11:38 AM (12 years ago)

Foiled at the first, xcode 4.2

Hi there, I have just started an online course that helps people to use buzztouch and i'm having huge problems right from the get go. The course suggests that once you name an app and give it an icon in the buzztouch control panel you can download the project source files and open them with xcode straight away, you won't get much but if you run a simulator you should at least see something. The first problem I came across was that when I loaded up the project the only option I had was to run it on iOS device, I didn't have any simulators. I did some internet research and found that I needed to go into build settings and change the deployment target to a lower version than 6.0. I did this and can now choose between simulators for whatever version of the platform I want from 5.0 down. Hurray. I went back to the run button thinking all would be well but as soon as I clicked it I got a build failed message. It tells me there are seven issues. Here's a photo: https://dl.dropbox.com/u/31293023/Screen%20shot%202013-03-15%20at%2018.31.26.png I tried clicking through the automatic corrections (basically it wants the word Mask removed from 4 different sections) and that got me down to three problems but the other issues don't have automatic corrections suggested. Also, it'd be good to know why this is happening rather than immediately get the computer to fix it. I have Xcode 4.2 (I am running snow leopard 10.6.8 and do not wish to upgrade to Lion). Any help at all would be greatly appreciated.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
03/15/13 11:51 AM (12 years ago)
Hi @rupertvdb, Welcome to buzztouch! I'm super bummed that you're having problems right out of the chute, but it's almost certainly related to your version of Xcode and iOS SDK. Currently, buzztouch is optimized to take advantage of the latest iOS SDK, and that runs on the more recent versions of Xcode, which, unfortunately, require Lion or Mountain Lion to on. I'm sure there's a way to "fix" your code so it's supported on your current version of Xcode, but that would take a bit of doing by @David, the creator of buzztouch. Are you sure you don't want to upgrade Xcode? That'll ensure your apps are compatible with the most recent versions of iOS. Mark
 
rupertvdb
I hate code!
Profile
Posts: 6
Reg: Mar 15, 2013
London
360
like
03/15/13 12:58 PM (12 years ago)
Hi Mark, Thanks for getting in touch with me. I had a feeling that this would be the case but unfortunately I am not able to upgrade to the latest version of the iOS. What do you suggest I do? Some begging to @David? R
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
03/15/13 01:10 PM (12 years ago)
I'll bring his attention to this post and we'll see what he thinks. It could be just a matter of changing a couple variable names. I had a similar problem before I was able to upgrade, and I just changed the variables as suggested by Xcode, and it at least compiled. Not sure if there would have been future implications of that move. Mark
 
rupertvdb
I hate code!
Profile
Posts: 6
Reg: Mar 15, 2013
London
360
like
03/15/13 02:57 PM (12 years ago)
Really appreciate that Mark, thank you.
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
03/15/13 04:35 PM (12 years ago)
If you don't mind me asking, what's the online course? If it's free then fair enough, but if you're paying, there's more than enough free info on this site to get apps to market.
 
rupertvdb
I hate code!
Profile
Posts: 6
Reg: Mar 15, 2013
London
360
like
03/16/13 06:49 AM (12 years ago)
It's through something called the Blue Mountain training group. It does seem a little cheeky how they've taken my cash and pointed me towards your guys site. And they are no use with regards getting help for my problem. They didn't even tell me about the minimum requirements program-wise the course needed. I wouldn't have been so hasty to sign up to their discount if i'd have known my operating system wasn't fully supported.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
03/16/13 12:32 PM (12 years ago)
Hi gang... @rupertvdb: Glad to meet you. It does sound like you're running into an operating system / iOS SDK / Xcode gotcha. I'll do my best to explain. @GoNorthWest did a great job but here's a bit more detail... When you download your project from the Buzztouch control panel, it's assumed that you're running the latest iOS SDK and the latest Xcode. These two packages work hand in hand when making iOS apps. Apple provides these software downloads. It's common for folks new to all of this (steep learning curve) to not understand how all of this works and it's OK to be frustrated or unsure what direction to take. In your case, because you're running an older operating system, I'll be you're unable to use the latest version of the iOS SDK and Xcode. Another bummer. This is a tough case because lots of the code you'll be using, compiling, taking advantage of is written to support iOS 6 - something your machine can't understand (because it came out prior to iOS 6). The errors and warnings you're seeing are related to recent changes to iOS and the SDK. Example: If you searched your project for the word: NSTextAlignmentCenter you would see an error or warning next to it. This is because that iOS "instruction" used to be called UITextAlignmentCenter. See the difference? It's slight but important. There are a few other examples of this type of issue you'll see. From memory, I'll bet you're seeing issues around these words in you project... NSTextAlignmentCenter NSTextAlignmentLeft UIInterfaceOrientationMaskLandscapePortrait UIInterfaceOrientationMaskLandscapeLeft UIInterfaceOrientationMaskLandscapeRight UIInterfaceOrientationMaskLandscapeUpsideDown presentViewController and lots more I can't recall... If you were an iOS ninja you could find all of these "new" uses and change them to their "old" counterparts. Old meaning something your machine and iOS SDK version understands. We've been working out a way to try to support older machines so folks that download projects that don't have newer machines don't have these issues. It's an engineering feat to pull this off but we have begun trying to do it. The first step is allowing users to "tell us what they have" and you'll see that in your control panel. A simply way to tell our backend what version of the iOS SDK you have. The next step will be for us to customize your download to match the machine you have. We have not accomplished this yet so everyone is getting a package usable on the latest iOS release - iOS 6. Lastly: I'm not sure what the best way forward for you is. If you can't update your machine, and you're new, you'll for sure have a bumpy ride trying to figure all this out. For some folks this is fun. For others, a nightmare. I agree that the dozens and dozens of "training courses" you'll find online are generally outdated and not a good value. For some it makes sense to take these structured learning course, for others not so much. If you have a link to this Blue Mountain thing I'de love to see it? We welcome you to our community and will do what we can to help but for sure you'll want to find a way to get up to speed hardware / software wise so you're not forced to compile "old apps." Cheers from Monterey... David
 
shenry
Aspiring developer
Profile
Posts: 469
Reg: Jan 10, 2012
Orange County, ...
13,390
like
03/16/13 05:29 PM (12 years ago)
 
rupertvdb
I hate code!
Profile
Posts: 6
Reg: Mar 15, 2013
London
360
like
03/18/13 05:38 AM (12 years ago)
Hi there David, Thanks very much for the in-depth answer. You hit the nail on the head when it came to your guesses at where the problems lie. Those terms all had issues when I attempted to run the build. Some of them can be autocorrected by the program, some of them not. If I understand correctly you are saying that it would be possible to replace the terms that aren't being autocorrected with valid terms, i'll just need to find out what they are. I am very new to this so it seems a bit of a daunting task but not one that I am totally opposed to going through. Is there a resource where I might be able to look up the changes that have been made to the terms used? That might be a stupid question now I read it, i'll bet it's more complicated than a ''this word' has become 'this word'' issue but if that does exist I could happily spend a bit of time working through the code finding all the things I need to change. The course that Shenry has highlighted is the correct one, I think. Mine was a £300 one that got reduced to £40 as part of a living social deal.
 

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.