Pyobjc project in Xcode 3.2+
XCode 3.2 拿掉了所有 python 和 ruby 的project樣本,也就是說不能直接開啟python 的專案了,原因是因為這些專案都沒有跟上xcode update的腳步,事實上除了新功能pyobjc一樣 可以運作無誤的。
不過想要開啟pyobjc的專案必須手動安裝 project template
下面是原文連結: http://ioanna.me/2009/09/installing-pyobjc-xcode-templates-in-snow-leopard/
這邊是懶人步驟說明:
check out tempate file
svn co http://svn.red-bean.com/pyobjc/trunk/pyobjc/pyobjc-xcode
進入check的專案目錄下 Project Templates 子目錄。
cd pyobjc-xcode/Project\ Templates/
確認你有下列目錄:
~/Library/Application\ Support/Developer/Shared/Xcode/Project\ Templates/AA\ Testing
輸入下面命令 (在 pyobjc-xcode/ProjectTemplates/ 下輸入) 安裝project type
./project-tool.py -k -v --template Cocoa-Python\ Application/CocoaApp.xcodeproj/TemplateInfo.plist Cocoa-Python\ Application ~/Library/Application\ Support/Developer/Shared/Xcode/Project\ Templates/CocoaPython/Cocoa-Python\ Application ./project-tool.py -k -v --template Cocoa-Python\ Document-based\ Application/CocoaDocApp.xcodeproj/TemplateInfo.plist Cocoa-Python\ Document-based\ Application/ ~/Library/Application\ Support/Developer/Shared/Xcode/Project\ Templates/CocoaPython/Cocoa-Python\ Document-based\ Application ./project-tool.py -k -v --template Cocoa-Python\ Core\ Data\ Application/CocoaApp.xcodeproj/TemplateInfo.plist Cocoa-Python\ Core\ Data\ Application/ ~/Library/Application\ Support/Developer/Shared/Xcode/Project\ Templates/CocoaPython/Cocoa-Python\ Core\ Data\ Application ./project-tool.py -k -v --template Cocoa-Python\ Core\ Data\ Document-based\ Application/CocoaDocApp.xcodeproj/TemplateInfo.plist Cocoa-Python\ Core\ Data\ Document-based\ Application/ ~/Library/Application\ Support/Developer/Shared/Xcode/Project\ Templates/CocoaPython/Cocoa-Python\ Core\ Data\ Document-based\ Application
Copy Template (目的目錄不存在的話請自行建立)
cd pyobjc-xcode/File\ Templates/Cocoa/ cp -r * ~/Library/Application\ Support/Developer/Shared/Xcode/File\ Templates/.
沒有留言:
張貼留言