Two changes to Xcode4 templates
Starting from scratch with the Xcode4 MacRuby application template, I had to make a couple changes for Archiving to work: 1. Project -> Build Settings -> Valid Architectures * change to X86_64 only (remove the i386 default) * if you don't make this change, you get the error "ld: warning: ignoring file /Developer/SDKs/MacOSX10.6.sdk/Library/Frameworks//MacRuby.framework/MacRuby, file was built for unsupported file format which is not the architecture being linked (i386)" when archiving or doing a "build for => archiving" with the Deployment scheme. Building with the non-Deployment scheme would still work. 2. Deployment Scheme -> Edit Scheme -> Build * Add the default target to build before the Deployment target. (so you have two targets building under the Deployment scheme) * if you don't make this change, you get the error "Path does not exist `/Users/andre/Library/Developer/Xcode/DerivedData/Tango-duvzaijhkvprmzdhkzkydcudwljf/ArchiveIntermediates/Deployment/BuildProductsPath/Release/Tango.app'" I'm still getting up to speed on Xcode4 schemes and build settings. Are these changes that should be made in the Xcode4 templates? Andre
I'm still getting up to speed on Xcode4 schemes and build settings. Are these changes that should be made in the Xcode4 templates?
Looks like it, could you send us a GitHub pull request please? Thanks, - Matt On Mon, Mar 28, 2011 at 6:09 PM, Andre Lewis <andre.lewis@gmail.com> wrote:
Starting from scratch with the Xcode4 MacRuby application template, I had to make a couple changes for Archiving to work:
1. Project -> Build Settings -> Valid Architectures * change to X86_64 only (remove the i386 default) * if you don't make this change, you get the error "ld: warning: ignoring file /Developer/SDKs/MacOSX10.6.sdk/Library/Frameworks//MacRuby.framework/MacRuby, file was built for unsupported file format which is not the architecture being linked (i386)" when archiving or doing a "build for => archiving" with the Deployment scheme. Building with the non-Deployment scheme would still work.
2. Deployment Scheme -> Edit Scheme -> Build * Add the default target to build before the Deployment target. (so you have two targets building under the Deployment scheme) * if you don't make this change, you get the error "Path does not exist `/Users/andre/Library/Developer/Xcode/DerivedData/Tango-duvzaijhkvprmzdhkzkydcudwljf/ArchiveIntermediates/Deployment/BuildProductsPath/Release/Tango.app'"
I'm still getting up to speed on Xcode4 schemes and build settings. Are these changes that should be made in the Xcode4 templates?
Andre
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
On Mon, Mar 28, 2011 at 6:21 PM, Matt Aimonetti <mattaimonetti@gmail.com>wrote:
I'm still getting up to speed on Xcode4 schemes and build settings. Are these changes that should be made in the Xcode4 templates?
Looks like it, could you send us a GitHub pull request please?
This is the first time I've looked at XCode templates. I found the MacRuby project templates, and it I see the Deployment target definition in /Developer/Library/Xcode/Templates/Project Templates/Base/MacRuby Application.xctemplate/TemplateInfo.plist. I'm stuck from there though - can anyone point me in the right direction?
participants (2)
-
Andre Lewis
-
Matt Aimonetti