RandyJ
Lost but trying
Profile
Posts: 34
Reg: Dec 25, 2012
Alabama
6,840
03/28/13 03:51 PM (12 years ago)

Lexical or preprocessor issue

I have an error that Says Lexical or preprocessor issue 'foundation/foundation.h' file not found. It happens only when I run on my iPhone, works fine on the simulator. Can anyone help me find the issue? Thanks
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
03/28/13 04:58 PM (12 years ago)
What is the Xcode version? Is there any added API? (Scringo?) Jake
 
RandyJ
Lost but trying
Profile
Posts: 34
Reg: Dec 25, 2012
Alabama
6,840
like
03/29/13 07:10 AM (12 years ago)
Jake, thanks for your reply. I have Xcode version 4.6. You're right about the added api. After I got it running on my phone, I was attempting to add Apsalar which is an analytics program to count page views. This is my first app so I'm struggling with a few things that are probably simple for most people. Per their instructions, it's supposed to be very simple to install and take about 10 minutes, but I obviously did it wrong. So I went back and deleted the Apsalar files, and reloaded the project which brought me to where I am now.
 
ATRAIN53
Code is Art
Profile
Posts: 1755
Reg: Nov 17, 2011
Chicago
26,450
like
03/29/13 07:29 AM (12 years ago)
Nice tip on Apsalar! I use Flurry myself. Pretty much the same thing, analytics - but I'm going to give Apsalar a good look. You followed the instructions here? http://support.apsalar.com/customer/portal/articles/717510-integrating-the-ios-sdk That one actually looks a little tricky to integrate, esp for a novice. You were able to link all those libraries and removed that compile source? And then remove the .js from Compile sources? Lexical/preprocessor issues are usually framework issues and those take some time to understand. maybe Flurry might be a littler easier....? http://www.flurry.com/ and some good posts here on how to add it.
 
RandyJ
Lost but trying
Profile
Posts: 34
Reg: Dec 25, 2012
Alabama
6,840
like
03/29/13 02:40 PM (12 years ago)
Thanks, I'm going to try flurry. Any advise on how to be sure I'm rid of all the Apsalar files, framework issues before I add Flurry?
 
RandyJ
Lost but trying
Profile
Posts: 34
Reg: Dec 25, 2012
Alabama
6,840
like
03/30/13 09:13 AM (12 years ago)
I have now completely deleted my project and Workspace from Xcode and re-downloaded from the control panel and started over just to be sure I had no issues left over from the api that I attempted to install. It runs on the simulator but I still get the same error when I run it on my device: Lexical or preprocessor issue 'foundation/foundation.h' file not found. It is in the first import command in the BT_navigationController.m Thanks in advance for your help Randy
 
RandyJ
Lost but trying
Profile
Posts: 34
Reg: Dec 25, 2012
Alabama
6,840
like
03/30/13 09:40 AM (12 years ago)
I have now completely deleted my project and Workspace from Xcode and re-downloaded from the control panel and started over just to be sure I had no issues left over from the api that I attempted to install. It runs on the simulator but I still get the same error when I run it on my device: Lexical or preprocessor issue 'foundation/foundation.h' file not found. It is in the first import command in the BT_navigationController.m Thanks in advance for your help Randy
 

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.