Friday, 20 February 2009

XCode - iPhone SDK - CoreGraphics Library issue

If you're creating an iPhone app and want to use the CoreGraphics framework (and you're having trouble finding it anywhere), it seems to be located in:
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.0.sdk/System/Library/Frameworks/CoreGraphics.framework
(See: http://forums.pragprog.com/forums/83/topics/1032)

You can also try this (and check to make sure it's set as a target):

- expand Targets in Xcode
- double click on you app
- select general tab
- in the bottom left corner click "+"
- scroll through the list and select "CoreGraphics.framework"

(See: http://www.iphonedevsdk.com/forum/iphone-sdk-development/2981-error-i-am-having-xcode.html)

If you're getting build errors that start with _GG, try:

1) XCode Menu: ->Project -> Edit Active Target
2) Select Build Tab
3) Find "Framework Search Paths" under Search Paths section
4) Double Click to Edit
5) Delete all lines.
6) Rebuild Project

(See: http://discussions.apple.com/message.jspa?messageID=7428822)

This fix worked for me.

2 comments:

Alex Goldberg said...

This saved me from the depths of frustration...Thanks!

Lauraine said...

Thanks for sharing your info. I really appreciate your efforts and I will be waiting for your further write ups thanks once again.
youtube html5 player