iphone-info.plist "only read"

Previous topic - Next topic

ampos

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:

Millerszone

Hardware: iMac 27", MacBook Air, PC 3.5Ghz Quad
Developing Tools: GLBasic SDK, Gideros Studio, PureBasic
Developing for: iOS, Android, Windows, OS X, webOS, HTML5

Kitty Hello

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.

Ian Price

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.
I came. I saw. I played.

ampos

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.

matchy

#5
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

Kitty Hello

OK, will do. I won't overwrite existing files in the next version.

ampos

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:

Ian Price

I came. I saw. I played.

Leginus

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.

ampos

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.

Kitty Hello

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.

Ian Price

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
I came. I saw. I played.

ampos

I have my Mac on & in a window in pc using vnc so I have not to have 2 monitors. Just an idea, Ian.

Ian Price

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.
I came. I saw. I played.