Discussion Forums  >  Uncategorized

Replies: 8    Views: 177

kw1330
Code is Art
Profile
Posts: 28
Reg: Nov 14, 2011
london
780
11/18/11 04:09 PM (14 years ago)

error meesage on compiling

Hi, Guys, on my first App, so on a bit of a learning curve! When running Build & Run, I get one error: seems to be this: #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> Any ideas what this refers too, and how I can fix it? Using Xcode 3 with Mac Os 10.6.8 (can't upgrade to Lion and xcode 4 yet does that matter?)
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
11/18/11 04:13 PM (14 years ago)
First, you should be able to run Xcode 4 I believe. I'm running it on Snow Leopard. What is the exact error you are seeing? And does it prevent the app from compiling? Finally...you might want to sign up for the v1.5 early adopter program...much better and perhaps this issue goes away? You can request access from your My Account tab. Mark
 
kw1330
Code is Art
Profile
Posts: 28
Reg: Nov 14, 2011
london
780
like
11/18/11 04:32 PM (14 years ago)
OK, I thought xcode 4 was only for Lion? It just says, 'Build failed' with these lines highlighted in red: #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> Yes stops building so I can't see it in the simulator. thanks
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
11/18/11 04:44 PM (14 years ago)
Nope...Xcode 4 also works on Snow Leopard! I'm not sure what this error is, but perhaps it's related to your SDK. Might be a good thing to download the latest SDK and Xcode, and see if that helps. Mark
 
kw1330
Code is Art
Profile
Posts: 28
Reg: Nov 14, 2011
london
780
like
11/18/11 05:05 PM (14 years ago)
I can only see xcode 4.2.1 which runs as an App in 10.7, it says I can't install it on anything earlier. Will keep looking I guess.
 
kw1330
Code is Art
Profile
Posts: 28
Reg: Nov 14, 2011
london
780
like
11/18/11 05:09 PM (14 years ago)
I see you can download xcode 4 if you're in the developer programme, but 4.2.1 for free from the App store. Apple are maddening sometimes! Didn't really want to sign up for the developer programme yet, until I know it works.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
11/18/11 05:11 PM (14 years ago)
Here's a link for Xcode 4.2 on Snow Leopard. You'll have to be an Apple Developer in order to get it, but you need to be to design iOS apps anyway! http://developer.apple.com/devcenter/download.action?path=/Developer_Tools/xcode_4.2_with_ios_5_sdk/xcode_4.2_and_ios_5_sdk_for_snow_leopard.dmg Mark
 
kw1330
Code is Art
Profile
Posts: 28
Reg: Nov 14, 2011
london
780
like
11/19/11 04:59 AM (14 years ago)
Hi, I think I found the problem. When creating the code on BT it sets it to ios 4, but it needs to be 'latest ios'. so in Xcode, when I click on info, you have the facility to change it to use latest ios, as soon as that's done, it'll export to the simulator perfectly. lots more to learn... but getting there. thanks for your help.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
11/19/11 02:15 PM (14 years ago)
BT actually doesn't set any of that information. You can see everything that BT sets by checking out the BT_Config.txt file that ships with your project. But, you are right, on the Build Summary tab for your project in Xcode, it should be set to Latest iOS under Base SDK. This will change depending on what SDK you have installed. Last couple things...I would encourage you to sign up for the v1.5 Early Adopter program, which can be found on your My Account tab. BT v1.5 is much better than v1.4 with a lot more functionality. Also...I would encourage you to download the latest Xcode and iOS5 SDK so you can compile your programs for iOS5 support, which keeps you current and allows people to install your app if they are running iOS 5. Mark
 

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.