v69 Rename Xcode Project = error

Monkey Forums/Monkey Bug Reports/v69 Rename Xcode Project = error

Difference(Posted 2013) [#1]
When I rename my xcode project, to set it up with my app name, I get:

TRANS monkey compiler V1.46
Parsing...
Semanting...
Translating...
Building...
FOPEN 'rb' for LoadString 'MonkeyGame.xcodeproj/project.pbxproj' failed
Can't find /* Begin PBXBuildFile section */
TRANS FAILED: Failed to mung XCode project file


(I rename in Xcode to let Xcode change the various filenames)

This used to work.

[EDIT]: The problem seems to come from the hardcoded path in:

Method MungProj:Void()
Local path:="MonkeyGame.xcodeproj/project.pbxproj"


benmc(Posted 2013) [#2]
Yes, I posted about this in the v69 release thread a couple days ago, same is happening for me. You go into XCode and change the name from MonkeyGame and you have to completely delete the build folder every time now, and re-setup the XCode project again when testing.


Difference(Posted 2013) [#3]
I'm REALLY missing this!
Can't anything be done?
(I'm on v70f)


marksibly(Posted 2013) [#4]
Why do you need to be able to change the name of the project? It doesn't affect the 'product_name' does it?

The issue is that recent versions of Monkey need to 'hack' the project file, and to be able to do this they need to know it's name. Other targets have to do this too, and also have their project name 'hardcoded' in.

I guess trans could scan for a file ending in pbxproj, but I'm not sure this is a road I want to go down - ie: just how flexible should an 'auto generated' project be? If there's a good reason for this though...


Difference(Posted 2013) [#5]
Honestly I didn't know I could change only the product name.

I have always used the "Rename project" method as explaned by Apple here:

http://developer.apple.com/library/ios/#qa/qa1625/_index.html
I almost always test on a physical device, so I'm always compiling from xcode.

It ok that I can now compile and test on a device without renaming (by only changing the PRODUCT_NAME in build settings) , but it ain't pretty, and it's generally confusing.

Look at this screendump from my Archive page, what part of this gets sent to iTunes Connect?
And where do I change that "MonkeyGame" identifier without messing up Monkeys Build?

Can't you put the Project name in a config file / variable?

[img http:/scheutz.dk/temp/mbxcode.png]

[EDIT]: If I open up the archive bundle - Info.Plist, I still see MonkeyGame