GLBasic forum

Main forum => GLBasic - en => Topic started by: ampos on 2010-Oct-22

Title: iphone-info.plist "only read"
Post by: ampos on 2010-Oct-22
Can GLB ignore the file "iphone-info.plist" if the flag "only read" is set?

I mean, for next version of GLB.

Currently, GLB always overwrites such file, so it has to be modified each time we compile in xcode.

If my idea is set, we can compile in GLB, change content from xcode, set the "only read" in win, et voilĂ ! no more changes  :giveup:
Title: Re: iphone-info.plist "only read"
Post by: Millerszone on 2010-Oct-22
That would be nice!
Title: Re: iphone-info.plist "only read"
Post by: Kitty Hello on 2010-Oct-22
oh. You compile directly from the XCode directory? I used an scp job to copy things over. Will it overwrite even with readonly flag set? Very strange. I'll fix that.
Title: Re: iphone-info.plist "only read"
Post by: Ian Price on 2010-Oct-22
I'm totally fed up with having to reset the iOS to 4.1 (and RELEASE) everytime I use XCode - if this solves that niggle then I'll be an even happier bunny.
Title: Re: iphone-info.plist "only read"
Post by: ampos on 2010-Oct-22
Quote from: Kitty Hello on 2010-Oct-22
oh. You compile directly from the XCode directory? I used an scp job to copy things over. Will it overwrite even with readonly flag set? Very strange. I'll fix that.

Yes, I do. I tried the macro-thing on GLB, but it didnt work for me.

Anyway, GLB compiler could ignore any file with "read only" flag. Doesnt matter if compiler give back an error... as Ian said, it is a pain to change also the "use 4.1 SDK" thing each time you compile. I didnt mention it because I dont know where in the xcode files this setting is saved.

If the readonly thing can not be done, maybe a "ignore this files if they are present" could do the job.
Title: Re: iphone-info.plist "only read"
Post by: matchy on 2010-Oct-22
Speaking of easy compiling, I use a USB drive by copying over the whole xcode project folder and then opening it and compiling up the xcode project on the mac. Then unplug it from the mac (ignoring errors) and leaving xcode (to keep frameworks and settings), plug it back in to the pc and compile for iphone again, hit the green macro which I have set to copy only 2 folders. Back over to the mac, clean and compile....easy! It's not too much of an issue moving the usb drive back and forth. I discovered this method when my network was playing up.

Code (glbasic) Select

:: dos cmdprompt J: is USB drive
xcopy %GLB_PROJ_PATH%\XCode\GLBasic\Lib\libPROGRAM.a J:\\XCode\GLBasic\Lib\ /Y
xcopy %GLB_PROJ_PATH%\XCode\GLBasic\iPhone.xcodeproj\project.pbxproj J:\\XCode\GLBasic\iPhone.xcodeproj\ /Y
Title: Re: iphone-info.plist "only read"
Post by: Kitty Hello on 2010-Oct-22
OK, will do. I won't overwrite existing files in the next version.
Title: Re: iphone-info.plist "only read"
Post by: ampos on 2010-Oct-22
Quote from: Kitty Hello on 2010-Oct-22
OK, will do. I won't overwrite existing files in the next version.

remember to overwrite "main" file  :nana:
Title: Re: iphone-info.plist "only read"
Post by: Ian Price on 2010-Oct-22
:)
Title: Re: iphone-info.plist "only read"
Post by: Leginus on 2010-Oct-22
I have to be honest I don't find this an issue. I am networked between mac and pc. I compile glbasic as necessary and then copy Xcode file to mac, excluding the media folder and project file. If you leave to finder windows open on mac it's very quick.
Title: Re: iphone-info.plist "only read"
Post by: ampos on 2010-Oct-22
Yes, it is very quick, but a bit anoying. Each time you compile: open info.plist, modify 2 lines, save, edit "use base sdk" to "4.1", save and build.

If you need to test something (like multitouch) on a real idevice, you have to make all this way everytime. I did it yesterday a ton of times.

I just ask if it could be done. If so, I will be happy. If not, I could live without it.

Anyway, thanks Gernoit for your efforts.
Title: Re: iphone-info.plist "only read"
Post by: Kitty Hello on 2010-Oct-22
Try to get the ssh connection running. That way you can click on the green macro, then hit compile on the mac and it runs. It's really a lot faster then on Wiz in my case. Just click, click, click runs.
Title: Re: iphone-info.plist "only read"
Post by: Ian Price on 2010-Oct-22
Quote from: Leginus on 2010-Oct-22
I have to be honest I don't find this an issue. I am networked between mac and pc. I compile glbasic as necessary and then copy Xcode file to mac, excluding the media folder and project file. If you leave to finder windows open on mac it's very quick.

You might have your Mac and pc networked, but not everyone does.

I can't leave my Mac on as I use it through the family tv. I don't have Parallels or any other Virtual Machine or spare copy of Windows anyway. I have to compile on pc, use a USB drive to transfer the GLB project to Mac and run XCode - I would use the Mac IDE, but it's currently slower than the whole process I just mentioned.

Then I have to alter the Base SDK and click RELEASE - every single time I want to test an app on my iPod. yes it's no big deal, and a minor niggle, as I originally stated, but it's one that looks like it could be sorted easily. maybe. If not, well we'll have to put up and shut up. :P
Title: Re: iphone-info.plist "only read"
Post by: ampos on 2010-Oct-22
I have my Mac on & in a window in pc using vnc so I have not to have 2 monitors. Just an idea, Ian.
Title: Re: iphone-info.plist "only read"
Post by: Ian Price on 2010-Oct-22
Quote from: ampos on 2010-Oct-22
I have my Mac on & in a window in pc using vnc so I have not to have 2 monitors. Just an idea, Ian.

No can do - I'm using a laptop.
Title: Re: iphone-info.plist "only read"
Post by: ampos on 2010-Oct-22
Quote from: Ian Price on 2010-Oct-22
Quote from: ampos on 2010-Oct-22
I have my Mac on & in a window in pc using vnc so I have not to have 2 monitors. Just an idea, Ian.

No can do - I'm using a laptop.

mee too. I have both computers in the home network, a VNC server installed on the Mac (I dont like the macos one) and a VNC viewer in the PC. I code on the Win, and in the same win desktop I can se see&manage the Mac. The laptop mac is on the floor, almost closed. No need to touch the mac keyboard.
Title: Re: iphone-info.plist "only read"
Post by: Ian Price on 2010-Oct-22
Quote from: ampos on 2010-Oct-22
Quote from: Ian Price on 2010-Oct-22
Quote from: ampos on 2010-Oct-22
I have my Mac on & in a window in pc using vnc so I have not to have 2 monitors. Just an idea, Ian.

No can do - I'm using a laptop.

mee too. I have both computers in the home network, a VNC server installed on the Mac (I dont like the macos one) and a VNC viewer in the PC. I code on the Win, and in the same win desktop I can se see&manage the Mac. The laptop mac is on the floor, almost closed. No need to touch the mac keyboard.

Oooh, that sounds good :) Can you send me details on how you set it up and run the whole shebang? I didn;t want wires running from the mac to laptop, but if it can be done wirelessly, and more importantly, easily, then I'll give it a try :)
Title: Re: iphone-info.plist "only read"
Post by: ampos on 2010-Oct-22
Quote from: Ian Price on 2010-Oct-22
Quote from: ampos on 2010-Oct-22
Quote from: Ian Price on 2010-Oct-22
Quote from: ampos on 2010-Oct-22
I have my Mac on & in a window in pc using vnc so I have not to have 2 monitors. Just an idea, Ian.

No can do - I'm using a laptop.

mee too. I have both computers in the home network, a VNC server installed on the Mac (I dont like the macos one) and a VNC viewer in the PC. I code on the Win, and in the same win desktop I can se see&manage the Mac. The laptop mac is on the floor, almost closed. No need to touch the mac keyboard.

Oooh, that sounds good :) Can you send me details on how you set it up and run the whole shebang? I didn;t want wires running from the mac to laptop, but if it can be done wirelessly, and more importantly, easily, then I'll give it a try :)

I like a lot realVNC, you have a full free client&server for windows. On Mac, there is a 1 month demo. I found a free one also for Mac, but my 1 month license has not expired yet, and I dont remember its name right now.

Install client on PC and server in Mac. Remember to change the listen-port for realVNC on each machine. By default it is 5900, but on my 192.168.1.2 machine (win) I have 5902 and in the mac, 1.3, I has 5903.

I have my PS3 on the TV, with PS3MediaServer, so I can see all my PC media content (films, photos,...). If PS3MS stop working on the win machine, I can connect there from the iphone to restart it, without moving from the chair  :noggin:

If you plan to access your computers over the internet, you have also to forward the ports on the router. You can install VNC clients on your iThing (I love iTeleport), it works like a charm.

It is really easy.
Title: Re: iphone-info.plist "only read"
Post by: Millerszone on 2010-Oct-22
I've been using "TightVNC" it's free and no need to install a separate server on the Mac OS X.
Get it here:
www.tightvnc.com (http://www.tightvnc.com)

Read this first:
http://lifehacker.com/319528/remote-control-leopard-with-tightvnc (http://lifehacker.com/319528/remote-control-leopard-with-tightvnc)

Title: Re: iphone-info.plist "only read"
Post by: Slydog on 2010-Oct-22
How about TeamViewer:
http://teamviewer.com/download/index.aspx

Its free and has Windows, Mac, Linux, and iPhone clients available.
I haven't tried it yet on the Mac, but on the PC it looks promising.

I think it keeps everything simple without needing to know ports etc.
It defaults to a generated password / code to use between clients, but I think you can sign up for a free account to customize your login and password.
And, i think you can remote to your computers from the web.
Title: Re: iphone-info.plist "only read"
Post by: ampos on 2010-Oct-22
Quote from: Kitty Hello on 2010-Oct-22
OK, will do. I won't overwrite existing files in the next version.

Yeah, because although not-overwriting the file with read-only status can be a solution (in the win side) it is not in the mac side, as xcode has to write it again even after being saved by hand.
Title: Re: iphone-info.plist "only read"
Post by: Ian Price on 2010-Oct-22
Cheers for the info chaps (my how this topic has deviated!)

:)
Title: Re: iphone-info.plist "only read"
Post by: BdR on 2010-Nov-01
Do you copy the entire XCode folder to mac everytime you re-compile it in GLBasic? When I change some GLBasic code, I only copy the new libPROGRAM.a file to the Lib folder on Mac (networked pc and mac).

Then in XCode at first Build and Run it gives this weird error "libPROGRAM.a was built for unsupported file format which is not the architecture being linked (i386)" see screenshot in attachement.

But when I close the project and reopen it, then it builds just fine. Any idea how this can be, or is it a bug in XCode?

[attachment deleted by admin]
Title: Re: iphone-info.plist "only read"
Post by: Ian Price on 2010-Nov-02
I copy the whole folder, including any new Media - it's a good habit to get into, as it's too easy to add stuff, then play around and forget that you've added new stuff. Try to run it on an iPhone and stuff you added isn't visible/audible. Bugger!

Anyway your errors.

For a start you are trying to run a GLB game under iPhone emulator - this doesn't work.You need to have the iPhone as an actual device. It's got to be in Release Mode too, not DEBUG.

Alter those settings and see what happens.

If you have set up your keychains and certs correctly you might still get a BASE SDK MISSING error - that's easy to sort and I've documented that clearly a couple of times elsewhere.

:)
Title: Re: iphone-info.plist "only read"
Post by: ampos on 2010-Nov-02
Since 8.148, I love to compile for iPhone. It is so fast that you even dont need to test on PC, you can test directly on iPhone  :nw:

-Compile for iPhone in GLB
-Build&Run in XCode

You even dont need to close XCode if you make changes&compile in GLB. Always this 2 steps.