Mega Search
23.2 Million


Sign Up

Make a donation  
XE2 TO XCODE: FATAL: CAN'T OPEN FILE  
News Group: embarcadero.public.delphi.firemonkey

I've created a FireMonkey HD for iOS application using Delphi XE2. I used dpr2xcode.exe to convert it to XCode. I've copied all the necessary files to my Mac and opened the xcodeproj file in XCode. When I try to compile the project, XCode tells me that it can't find file iPhoneTest.pas. iPhoneTest is the Delphi project (dpr) file that gets converted to a PAS file by dpr2xcode.
Has anyone run into this situation and if so, how do I go about fixing it? Keep in mind I'm a total noob when it comes to Mac and XCode so please be detailed and specific in your responses.

Thanks.

Vote for best question.
Score: 0  # Vote:  0
Date Posted: 11-Jan-2012, at 3:23 PM EST
From: Barry Dirks
 
Re: XE2 TO XCODE: FATAL: CAN'T OPEN FILE  
News Group: embarcadero.public.delphi.firemonkey
> {quote:title=Lars Meyer wrote:}{quote}
> Do you have any spaces in the path to the project directory?
> 
> If yes, move the projet to somewhere else without using spaces in the path
> 
> "Barry Dirks" wrote in message news:435063@forums.embarcadero.com...


Nope, no spaces. I found that in my first Google searches on this issue.

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 12-Jan-2012, at 2:05 PM EST
From: Barry Dirks
 
Re: XE2 TO XCODE: FATAL: CAN'T OPEN FILE  
News Group: embarcadero.public.delphi.firemonkey
> {quote:title=Barry Dirks wrote:}{quote}
> I've created a FireMonkey HD for iOS application using Delphi XE2. I used dpr2xcode.exe to convert it to XCode. I've copied all the necessary files to my Mac and opened the xcodeproj file in XCode. When I try to compile the project, XCode tells me that it can't find file iPhoneTest.pas. iPhoneTest is the Delphi project (dpr) file that gets converted to a PAS file by dpr2xcode.
> Has anyone run into this situation and if so, how do I go about fixing it? Keep in mind I'm a total noob when it comes to Mac and XCode so please be detailed and specific in your responses.
> 
> Thanks.

One thing that I would try and make sure that the file is generally accessible on your Mac machine. Can you type (cat or more) it in console or open it for edit in xcode or any other editor and save the changes back?

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 12-Jan-2012, at 5:34 PM EST
From: Karu Kaarigar
 
Re: XE2 TO XCODE: FATAL: CAN'T OPEN FILE [Edit]  
News Group: embarcadero.public.delphi.firemonkey
> One thing that I would try and make sure that the file is generally accessible on your Mac machine. Can you type (cat or more) it in console or open it for edit in xcode or any other editor and save the changes back?

I can open it with TextEdit, DashCode and XCode and modify and change and reload it. I can click on the file in XCode and it comes up in the editor.

What I don't understand is the path in this error message has /../iPhoneTest.pas.

+Compiling /Users/User/Documents/Development/DelphiXE2/xcode/../iPhoneTest.pas+
+Fatal: Can't open file "iPhoneTest.pas"+

iPhoneTest.pas is in the xcode folder. Why does XCode put /../ in the path? Is something screwed up there maybe?

Edited by: Barry Dirks on Jan 13, 2012 12:24 PM

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 13-Jan-2012, at 4:25 PM EST
From: Barry Dirks
 
Re: XE2 TO XCODE: FATAL: CAN'T OPEN FILE  
News Group: embarcadero.public.delphi.firemonkey
> {quote:title=Barry Dirks wrote:}{quote}
> > One thing that I would try and make sure that the file is generally accessible on your Mac machine. Can you type (cat or more) it in console or open it for edit in xcode or any other editor and save the changes back?
> 
> I can open it with TextEdit, DashCode and XCode and modify and change and reload it. I can click on the file in XCode and it comes up in the editor.
> 
> What I don't understand is the path in this error message has /../iPhoneTest.pas.
> 
> +Compiling /Users/User/Documents/Development/DelphiXE2/xcode/../iPhoneTest.pas+
> +Fatal: Can't open file "iPhoneTest.pas"+
> 
> iPhoneTest.pas is in the xcode folder. Why does XCode put /../ in the path? Is something screwed up there maybe?
> 
> Edited by: Barry Dirks on Jan 13, 2012 12:24 PM


i also have this problem, and i am confused.

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 2-May-2012, at 5:56 AM EST
From: bzhkl jelly
 
Re: XE2 TO XCODE: FATAL: CAN'T OPEN FILE  
News Group: embarcadero.public.delphi.firemonkey
> {quote:title=bzhkl jelly wrote:}{quote}
> > {quote:title=Barry Dirks wrote:}{quote}
> > > One thing that I would try and make sure that the file is generally accessible on your Mac machine. Can you type (cat or more) it in console or open it for edit in xcode or any other editor and save the changes back?
> > 
> > I can open it with TextEdit, DashCode and XCode and modify and change and reload it. I can click on the file in XCode and it comes up in the editor.
> > 
> > What I don't understand is the path in this error message has /../iPhoneTest.pas.
> > 
> > +Compiling /Users/User/Documents/Development/DelphiXE2/xcode/../iPhoneTest.pas+
> > +Fatal: Can't open file "iPhoneTest.pas"+
> > 
> > iPhoneTest.pas is in the xcode folder. Why does XCode put /../ in the path? Is something screwed up there maybe?
> > 
> > Edited by: Barry Dirks on Jan 13, 2012 12:24 PM
> 
> 
> i also have this problem, and i am confused.

And I also have this problem..is it a sharing issue?, not sure how to check in mac

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 23-May-2012, at 3:34 PM EST
From: bob meyer