Friday, September 18, 2009

Frameworks missing in iPhoneSDK xcode

Try if you miss some Frameworks like
UIkit.framework,
Foundation.framework,
CoreGraphics.framework
in iPhone SDK with xcode 3.2/3.1.4/3.1.X for snow leopard/leopard.
You just lost frameworks reference.

First, you make a directory in your iPhone project directory.
/iphone2.2/System/Library/Frameworks

/*The "iphone2.2" maybe depends on your environment.
*To check, move mouse pointer to missing frameworks (red colored) filename in xcode window.
*/

The frameworks are here
/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/System/Library/Frameworks

/*The "iPhoneSimulator3.0.sdk" can be replaced "iPhoneSimulator2.2.1.sdk" or "iPhoneSimulator3.1.sdk".
*Whichever, same frameworks, maybe.
*/

Just copy frameworks to directory you made.
enjoy developing!

日本語
iPhoneSDKで
UIkit.framework,
Foundation.framework,
CoreGraphics.framework
等が見えなくなってしまった,無くなった時の対処法

iPhoneSDKのプロジェクトディレクトリの中にさらにディレクトリを作ります.
/iphone2.2/System/Library/Frameworks

/*このiphone2.2は環境によって違うかもしれませんので,
xcode上で赤くなっているframeworkの上にマウスポインタを持っていって確認します
*/

frameworksはここにあります
/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/System/Library/Frameworks

で,さっき作ったディレクトリにコピーしてくるだけです.

ちなみにiPhone Dev SDK forumにもあった.
Lost Framework - UIKit.Framework
http://www.iphonedevsdk.com/forum/iphone-sdk-tools-utilities/17588-lost-framework-uikit-framework.html

No comments: